mirror of https://github.com/YosysHQ/yosys.git
memory_bram: Consider read enable for address expansion register
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
aaa2690a56
commit
6acbc016f4
|
@ -957,6 +957,8 @@ grow_read_ports:;
|
||||||
SigSpec addr_ok_q = addr_ok;
|
SigSpec addr_ok_q = addr_ok;
|
||||||
if ((pi.clocks || pi.make_outreg) && !addr_ok.empty()) {
|
if ((pi.clocks || pi.make_outreg) && !addr_ok.empty()) {
|
||||||
addr_ok_q = module->addWire(NEW_ID);
|
addr_ok_q = module->addWire(NEW_ID);
|
||||||
|
if (!pi.sig_en.empty())
|
||||||
|
addr_ok = module->Mux(NEW_ID, addr_ok_q, addr_ok, pi.sig_en);
|
||||||
module->addDff(NEW_ID, pi.sig_clock, addr_ok, addr_ok_q, pi.effective_clkpol);
|
module->addDff(NEW_ID, pi.sig_clock, addr_ok, addr_ok_q, pi.effective_clkpol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue