aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/site_router.cc
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-18 13:26:52 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-18 13:26:52 -0800
commit4766e889c0ecf50df5054b453a908b7a4c167355 (patch)
treef8231af4fed1eac0bae247cbd9aea5b669180b9d /fpga_interchange/site_router.cc
parent532954847ae9c4643dc068786ea78957a6d9bb36 (diff)
downloadnextpnr-4766e889c0ecf50df5054b453a908b7a4c167355.tar.gz
nextpnr-4766e889c0ecf50df5054b453a908b7a4c167355.tar.bz2
nextpnr-4766e889c0ecf50df5054b453a908b7a4c167355.zip
Add some utility methods for site instance access.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange/site_router.cc')
-rw-r--r--fpga_interchange/site_router.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/fpga_interchange/site_router.cc b/fpga_interchange/site_router.cc
index e643311d..917885bd 100644
--- a/fpga_interchange/site_router.cc
+++ b/fpga_interchange/site_router.cc
@@ -691,8 +691,7 @@ bool Arch::SiteRouter::checkSiteRouting(const Context *ctx, const Arch::TileStat
auto tile = (*iter)->bel.tile;
if (verbose_site_router(ctx)) {
- log_info("Checking site routing for site %s\n",
- ctx->chip_info->sites[ctx->chip_info->tiles[tile].sites[site]].name.get());
+ log_info("Checking site routing for site %s\n", ctx->get_site_name(tile, site));
}
for (CellInfo *cell : cells_in_site) {
@@ -739,11 +738,9 @@ bool Arch::SiteRouter::checkSiteRouting(const Context *ctx, const Arch::TileStat
if (site_ok) {
site_info.remove_routed_sources();
NPNR_ASSERT(site_info.is_fully_routed());
- log_info("Site %s is routable\n",
- ctx->chip_info->sites[ctx->chip_info->tiles[tile].sites[site]].name.get());
+ log_info("Site %s is routable\n", ctx->get_site_name(tile, site));
} else {
- log_info("Site %s is not routable\n",
- ctx->chip_info->sites[ctx->chip_info->tiles[tile].sites[site]].name.get());
+ log_info("Site %s is not routable\n", ctx->get_site_name(tile, site));
}
}