aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-23 12:09:01 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-23 12:09:01 +0200
commit289fca0976071eabaeccedb7caf9125f70740ef8 (patch)
treefa182d79e8dc25625fce57dac7756a093a6cf730 /ice40/arch_place.cc
parent2e6916ecabeb9b4e4df23e68378a0c4fc608c6ec (diff)
downloadnextpnr-289fca0976071eabaeccedb7caf9125f70740ef8.tar.gz
nextpnr-289fca0976071eabaeccedb7caf9125f70740ef8.tar.bz2
nextpnr-289fca0976071eabaeccedb7caf9125f70740ef8.zip
ice40: Move global net test to Arch
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r--ice40/arch_place.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc
index 60fa928e..7b79e031 100644
--- a/ice40/arch_place.cc
+++ b/ice40/arch_place.cc
@@ -58,11 +58,11 @@ bool PlaceValidityChecker::logicCellsCompatible(
clk = get_net_or_empty(cell, id_clk);
sr = get_net_or_empty(cell, id_sr);
- if (!is_global_net(ctx, cen) && cen != nullptr)
+ if (!ctx->isGlobalNet(cen) && cen != nullptr)
locals_count++;
- if (!is_global_net(ctx, clk) && clk != nullptr)
+ if (!ctx->isGlobalNet(clk) && clk != nullptr)
locals_count++;
- if (!is_global_net(ctx, sr) && sr != nullptr)
+ if (!ctx->isGlobalNet(sr) && sr != nullptr)
locals_count++;
if (bool_or_default(cell->params, id_neg_clk)) {
@@ -140,7 +140,8 @@ bool PlaceValidityChecker::isValidBelForCell(CellInfo *cell, BelId bel)
} else if (cell->type == id_sb_gb) {
bool is_reset = false, is_cen = false;
assert(cell->ports.at(ctx->id("GLOBAL_BUFFER_OUTPUT")).net != nullptr);
- for (auto user : cell->ports.at(ctx->id("GLOBAL_BUFFER_OUTPUT")).net->users) {
+ 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))