From 582410629bb45a55aa1a3b8258bd466e71b3a972 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 1 Feb 2023 15:00:44 +0100 Subject: [PATCH] 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 --- ice40/bitstream.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index 6794ecca..72343d75 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -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,