diff options
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r-- | ecp5/arch.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 82ebfba1..6b701a32 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -579,4 +579,10 @@ std::vector<std::pair<std::string, std::string>> Arch::getTilesAtLocation(int ro return ret; } +GlobalInfoPOD Arch::globalInfoAtLoc(Location loc) +{ + int locidx = loc.y * chip_info->width + loc.x; + return chip_info->location_glbinfo[locidx]; +} + NEXTPNR_NAMESPACE_END |