aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-04 13:04:31 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-04 13:04:31 +0200
commit2e8c0c872f99276602f9cd0daf06bfaf11832a08 (patch)
tree84badae08d0cc8593374560717dcfe8c1ff722a2 /ice40
parent6eaae6196cca762ed4e46f6f4011000e07e6577b (diff)
downloadnextpnr-2e8c0c872f99276602f9cd0daf06bfaf11832a08.tar.gz
nextpnr-2e8c0c872f99276602f9cd0daf06bfaf11832a08.tar.bz2
nextpnr-2e8c0c872f99276602f9cd0daf06bfaf11832a08.zip
Add NPNR_ASSERT_FALSE, use in bitstream.cc
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/bitstream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index 33c4d97b..98a7a0e4 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -36,7 +36,7 @@ const ConfigEntryPOD &find_config(const TileInfoPOD &tile, const std::string &na
return tile.entries[i];
}
}
- NPNR_ASSERT(false);
+ NPNR_ASSERT_FALSE("unable to find config bit " + name);
}
std::tuple<int8_t, int8_t, int8_t> get_ieren(const BitstreamInfoPOD &bi, int8_t x, int8_t y, int8_t z)
@@ -124,7 +124,7 @@ void write_asc(const Context *ctx, std::ostream &out)
out << ".device 5k" << std::endl;
break;
default:
- NPNR_ASSERT(false);
+ NPNR_ASSERT_FALSE("unsupported device type");
}
// Set pips
for (auto pip : ctx->getPips()) {