ice40: Don't assert on unknown extra_config bits if they are 0

Bits are 0 by default anyway, so if they are unknown (because icestorm
is too od) but we want them at 0 ... it's not much of an issue.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2023-02-01 15:00:44 +01:00
parent 49ae495344
commit 582410629b

View File

@ -153,7 +153,11 @@ static void set_ec_cbit(chipconfig_t &config, const Context *ctx, const BelConfi
return;
}
}
NPNR_ASSERT_FALSE_STR("failed to config extra cell config bit " + name);
if (value)
NPNR_ASSERT_FALSE_STR("failed to config extra cell config bit " + name);
else
log_warning("failed to config extra cell config bit %s to zero (ignored, maybe update icestorm ?)\n",
name.c_str());
}
void configure_extra_cell(chipconfig_t &config, const Context *ctx, CellInfo *cell,