write_verilog: emit zero width parameters as `.PARAM()`.

This commit is contained in:
Catherine 2024-01-11 10:53:30 +00:00 committed by Dag Lem
parent 3ed9030eb4
commit 0486f61a35
1 changed files with 2 additions and 1 deletions

View File

@ -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(")");
} }