diff options
author | David Shah <davey1576@gmail.com> | 2018-06-23 12:09:01 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-23 12:09:01 +0200 |
commit | 289fca0976071eabaeccedb7caf9125f70740ef8 (patch) | |
tree | fa182d79e8dc25625fce57dac7756a093a6cf730 /ice40/cells.cc | |
parent | 2e6916ecabeb9b4e4df23e68378a0c4fc608c6ec (diff) | |
download | nextpnr-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/cells.cc')
-rw-r--r-- | ice40/cells.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ice40/cells.cc b/ice40/cells.cc index 056c33f8..f34b7511 100644 --- a/ice40/cells.cc +++ b/ice40/cells.cc @@ -36,8 +36,8 @@ CellInfo *create_ice_cell(Context *ctx, IdString type, std::string name) static int auto_idx = 0; CellInfo *new_cell = new CellInfo(); if (name.empty()) { - new_cell->name = ctx->id( "$nextpnr_" + type.str(ctx) + "_" + - std::to_string(auto_idx++)); + new_cell->name = ctx->id("$nextpnr_" + type.str(ctx) + "_" + + std::to_string(auto_idx++)); } else { new_cell->name = ctx->id(name); } @@ -269,10 +269,4 @@ bool is_enable_port(const Context *ctx, const PortRef &port) return false; } -bool is_global_net(const Context *ctx, const NetInfo *net) -{ - return bool( - net_driven_by(ctx, net, is_gbuf, ctx->id("GLOBAL_BUFFER_OUTPUT"))); -} - NEXTPNR_NAMESPACE_END |