mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
memory_libmap: Fix params emitted for unused ports for consistency.
This commit is contained in:
parent
3046a06490
commit
25a4cd7020
|
@ -1706,10 +1706,11 @@ void MemMapping::emit_port(const MemConfig &cfg, std::vector<Cell*> &cells, cons
|
||||||
if (pdef.wrbe_separate) {
|
if (pdef.wrbe_separate) {
|
||||||
cell->setPort(stringf("\\PORT_%s_WR_EN", name), State::S0);
|
cell->setPort(stringf("\\PORT_%s_WR_EN", name), State::S0);
|
||||||
cell->setPort(stringf("\\PORT_%s_WR_BE", name), hw_wren);
|
cell->setPort(stringf("\\PORT_%s_WR_BE", name), hw_wren);
|
||||||
cell->setParam(stringf("\\PORT_%s_WR_BE_WIDTH", name), GetSize(hw_wren));
|
if (cfg.def->width_mode != WidthMode::Single)
|
||||||
|
cell->setParam(stringf("\\PORT_%s_WR_BE_WIDTH", name), GetSize(hw_wren));
|
||||||
} else {
|
} else {
|
||||||
cell->setPort(stringf("\\PORT_%s_WR_EN", name), hw_wren);
|
cell->setPort(stringf("\\PORT_%s_WR_EN", name), hw_wren);
|
||||||
if (cfg.def->byte != 0)
|
if (cfg.def->byte != 0 && cfg.def->width_mode != WidthMode::Single)
|
||||||
cell->setParam(stringf("\\PORT_%s_WR_EN_WIDTH", name), GetSize(hw_wren));
|
cell->setParam(stringf("\\PORT_%s_WR_EN_WIDTH", name), GetSize(hw_wren));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue