mirror of https://github.com/YosysHQ/yosys.git
write_verilog: emit zero width parameters as `.PARAM()`.
This commit is contained in:
parent
3ed9030eb4
commit
0486f61a35
|
@ -1830,6 +1830,7 @@ void dump_cell(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
||||||
if (it != cell->parameters.begin())
|
if (it != cell->parameters.begin())
|
||||||
f << stringf(",");
|
f << stringf(",");
|
||||||
f << stringf("\n%s .%s(", indent.c_str(), id(it->first).c_str());
|
f << stringf("\n%s .%s(", indent.c_str(), id(it->first).c_str());
|
||||||
|
if (it->second.size() > 0)
|
||||||
dump_const(f, it->second);
|
dump_const(f, it->second);
|
||||||
f << stringf(")");
|
f << stringf(")");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue