diff options
Diffstat (limited to 'common/route/router2.cc')
-rw-r--r-- | common/route/router2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/route/router2.cc b/common/route/router2.cc index e943e493..1153f054 100644 --- a/common/route/router2.cc +++ b/common/route/router2.cc @@ -128,7 +128,7 @@ struct Router2 nets.at(i).cy = 0; if (ni->driver.cell != nullptr) { - Loc drv_loc = ctx->getBelLocation(ni->driver.cell->bel); + Loc drv_loc = ni->driver.cell->getLocation(); nets.at(i).cx += drv_loc.x; nets.at(i).cy += drv_loc.y; } @@ -159,7 +159,7 @@ struct Router2 nets.at(i).bb.y1 = std::max(nets.at(i).bb.y1, ad.bb.y1); } // Add location to centroid sum - Loc usr_loc = ctx->getBelLocation(usr.value.cell->bel); + Loc usr_loc = usr.value.cell->getLocation(); nets.at(i).cx += usr_loc.x; nets.at(i).cy += usr_loc.y; } |