diff options
author | David Shah <dave@ds0.me> | 2020-12-27 20:11:08 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-12-27 20:11:08 +0000 |
commit | 74c4fa67510d4438b72b59897b750dd9bbf4ac5a (patch) | |
tree | 2376c6dd64c2dc29eebf4bfbee1c8eca06c87b9a /ice40 | |
parent | a40829fef3c35fc9d0b34a38a8f6becf97dddb44 (diff) | |
download | nextpnr-74c4fa67510d4438b72b59897b750dd9bbf4ac5a.tar.gz nextpnr-74c4fa67510d4438b72b59897b750dd9bbf4ac5a.tar.bz2 nextpnr-74c4fa67510d4438b72b59897b750dd9bbf4ac5a.zip |
ice40: Nicer error for unconstrained SB_GB_IO
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/pack.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc index 7b03939a..9eb7d7c1 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -433,6 +433,8 @@ static std::unique_ptr<CellInfo> create_padin_gbuf(Context *ctx, CellInfo *cell, std::string gbuf_name) { // Find the matching SB_GB BEL connected to the same global network + if (!cell->attrs.count(ctx->id("BEL"))) + log_error("Unconstrained SB_GB_IO %s is not supported.\n", ctx->nameOf(cell)); BelId bel = ctx->getBelByName(ctx->id(cell->attrs[ctx->id("BEL")].as_string())); BelId gb_bel = find_padin_gbuf(ctx, bel, port_name); NPNR_ASSERT(gb_bel != BelId()); |