mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #759 from whitequark/memory_collect_init_x
memory_collect: do not truncate 'x from \INIT
This commit is contained in:
commit
29a82acb2e
|
@ -184,9 +184,6 @@ Cell *handle_memory(Module *module, RTLIL::Memory *memory)
|
||||||
mem->parameters["\\OFFSET"] = Const(memory->start_offset);
|
mem->parameters["\\OFFSET"] = Const(memory->start_offset);
|
||||||
mem->parameters["\\SIZE"] = Const(memory->size);
|
mem->parameters["\\SIZE"] = Const(memory->size);
|
||||||
mem->parameters["\\ABITS"] = Const(addr_bits);
|
mem->parameters["\\ABITS"] = Const(addr_bits);
|
||||||
|
|
||||||
while (GetSize(init_data) > 1 && init_data.bits.back() == State::Sx && init_data.bits[GetSize(init_data)-2] == State::Sx)
|
|
||||||
init_data.bits.pop_back();
|
|
||||||
mem->parameters["\\INIT"] = init_data;
|
mem->parameters["\\INIT"] = init_data;
|
||||||
|
|
||||||
log_assert(sig_wr_clk.size() == wr_ports);
|
log_assert(sig_wr_clk.size() == wr_ports);
|
||||||
|
|
Loading…
Reference in New Issue