aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-23 09:42:48 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-23 09:42:48 +0200
commitcb92c10b9919b53505d1805773935bb6c1679b7c (patch)
treee9b20156621e51182b87e6cf62d71019d88fc1f7 /ice40/arch_place.cc
parent761e28ce67600495075f55783bec1a90abca7172 (diff)
downloadnextpnr-cb92c10b9919b53505d1805773935bb6c1679b7c.tar.gz
nextpnr-cb92c10b9919b53505d1805773935bb6c1679b7c.tar.bz2
nextpnr-cb92c10b9919b53505d1805773935bb6c1679b7c.zip
Cleanup almost all deprecation warnings
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r--ice40/arch_place.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc
index 25044525..60fa928e 100644
--- a/ice40/arch_place.cc
+++ b/ice40/arch_place.cc
@@ -139,8 +139,8 @@ bool PlaceValidityChecker::isValidBelForCell(CellInfo *cell, BelId bel)
return ctx->getBelPackagePin(bel) != "";
} else if (cell->type == id_sb_gb) {
bool is_reset = false, is_cen = false;
- assert(cell->ports.at("GLOBAL_BUFFER_OUTPUT").net != nullptr);
- for (auto user : cell->ports.at("GLOBAL_BUFFER_OUTPUT").net->users) {
+ assert(cell->ports.at(ctx->id("GLOBAL_BUFFER_OUTPUT")).net != nullptr);
+ for (auto user : cell->ports.at(ctx->id("GLOBAL_BUFFER_OUTPUT")).net->users) {
if (is_reset_port(ctx, user))
is_reset = true;
if (is_enable_port(ctx, user))
@@ -148,7 +148,7 @@ bool PlaceValidityChecker::isValidBelForCell(CellInfo *cell, BelId bel)
}
IdString glb_net = ctx->getWireName(
ctx->getWireBelPin(bel, PIN_GLOBAL_BUFFER_OUTPUT));
- int glb_id = std::stoi(std::string("") + glb_net.str().back());
+ int glb_id = std::stoi(std::string("") + glb_net.str(ctx).back());
if (is_reset && is_cen)
return false;
else if (is_reset)