ice40: Nicer error for unconstrained SB_GB_IO

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-12-27 20:11:08 +00:00
parent a40829fef3
commit 74c4fa6751

View File

@ -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());