mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-15 18:36:17 +00:00
Only generate write-enable $and if WE is not constant 1 in memory_map
This commit is contained in:
parent
83fa652820
commit
67b0ce2578
1 changed files with 18 additions and 15 deletions
|
@ -273,6 +273,8 @@ static void handle_cell(RTLIL::Module *module, RTLIL::Cell *cell)
|
|||
module->wires[w->name] = w;
|
||||
c->connections["\\Y"] = RTLIL::SigSpec(w);
|
||||
|
||||
if (wr_en != RTLIL::SigSpec(1, 1))
|
||||
{
|
||||
c = new RTLIL::Cell;
|
||||
c->name = genid(cell->name, "$wren", i, "", j);
|
||||
c->type = "$and";
|
||||
|
@ -289,6 +291,7 @@ static void handle_cell(RTLIL::Module *module, RTLIL::Cell *cell)
|
|||
w->name = genid(cell->name, "$wren", i, "", j, "$y");
|
||||
module->wires[w->name] = w;
|
||||
c->connections["\\Y"] = RTLIL::SigSpec(w);
|
||||
}
|
||||
|
||||
c = new RTLIL::Cell;
|
||||
c->name = genid(cell->name, "$wrmux", i, "", j);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue