ice40: Remove unnecessary RAM assertion
Fixes #121 Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
cfaa6c0e5d
commit
20aa0a0eed
@ -775,7 +775,6 @@ void write_asc(const Context *ctx, std::ostream &out)
|
|||||||
std::vector<bool> bits(256);
|
std::vector<bool> bits(256);
|
||||||
std::string init =
|
std::string init =
|
||||||
get_param_str_or_def(cell.second.get(), ctx->id(std::string("INIT_") + get_hexdigit(w)));
|
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++) {
|
for (size_t i = 0; i < init.size(); i++) {
|
||||||
bool val = (init.at((init.size() - 1) - i) == '1');
|
bool val = (init.at((init.size() - 1) - i) == '1');
|
||||||
bits.at(i) = val;
|
bits.at(i) = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user