aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/bitstream.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-16 13:18:53 +0000
committerDavid Shah <dave@ds0.me>2018-11-16 13:18:53 +0000
commit20aa0a0eedbce02f50e134772dcd2b4a5be830e4 (patch)
tree87c2f7505f2647dea64359091acebcf606dfa3b6 /ice40/bitstream.cc
parentcfaa6c0e5de72e25da996f1fcda1d9caa58e4d1f (diff)
downloadnextpnr-20aa0a0eedbce02f50e134772dcd2b4a5be830e4.tar.gz
nextpnr-20aa0a0eedbce02f50e134772dcd2b4a5be830e4.tar.bz2
nextpnr-20aa0a0eedbce02f50e134772dcd2b4a5be830e4.zip
ice40: Remove unnecessary RAM assertion
Fixes #121 Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40/bitstream.cc')
-rw-r--r--ice40/bitstream.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc
index 4cfed52d..4efb1091 100644
--- a/ice40/bitstream.cc
+++ b/ice40/bitstream.cc
@@ -775,7 +775,6 @@ void write_asc(const Context *ctx, std::ostream &out)
std::vector<bool> bits(256);
std::string init =
get_param_str_or_def(cell.second.get(), ctx->id(std::string("INIT_") + get_hexdigit(w)));
- NPNR_ASSERT(init != "");
for (size_t i = 0; i < init.size(); i++) {
bool val = (init.at((init.size() - 1) - i) == '1');
bits.at(i) = val;