aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-01-21 11:10:11 +0000
committerGitHub <noreply@github.com>2019-01-21 11:10:11 +0000
commit00c0ce81ff668783749e929a22604b4bd2aa96ca (patch)
tree6499bf8395fce1da2cfbdc1db6eddde6eedc80ef
parentc1d15c749c2aa105ee7b38ebe1b60a27e3743e8c (diff)
parent830d462f9220737d628bd9409a653799583f83df (diff)
downloadnextpnr-00c0ce81ff668783749e929a22604b4bd2aa96ca.tar.gz
nextpnr-00c0ce81ff668783749e929a22604b4bd2aa96ca.tar.bz2
nextpnr-00c0ce81ff668783749e929a22604b4bd2aa96ca.zip
Merge pull request #213 from smunaut/ice40_gbuf_errmsg
ice40: Add error message if a selected site is not Global Buffer capable
-rw-r--r--ice40/pack.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 27387a75..b963f48a 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -388,6 +388,10 @@ static std::unique_ptr<CellInfo> create_padin_gbuf(Context *ctx, CellInfo *cell,
BelId gb_bel;
BelId bel = ctx->getBelByName(ctx->id(cell->attrs[ctx->id("BEL")]));
auto wire = ctx->getBelPinWire(bel, port_name);
+
+ if (wire == WireId())
+ log_error("BEL '%s' has no global buffer connection available\n", ctx->getBelName(bel).c_str(ctx));
+
for (auto src_bel : ctx->getWireBelPins(wire)) {
if (ctx->getBelType(src_bel.bel) == id_SB_GB && src_bel.pin == id_GLOBAL_BUFFER_OUTPUT) {
gb_bel = src_bel.bel;