Skip to content

Commit

Permalink
write_verilog: emit zero width parameters as .PARAM().
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark authored and daglem committed Jan 11, 2024
1 parent 63c7da5 commit 55e0fb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/verilog/verilog_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,8 @@ void dump_cell(std::ostream &f, std::string indent, RTLIL::Cell *cell)
if (it != cell->parameters.begin())
f << stringf(",");
f << stringf("\n%s .%s(", indent.c_str(), id(it->first).c_str());
dump_const(f, it->second);
if (it->second.size() > 0)
dump_const(f, it->second);
f << stringf(")");
}
f << stringf("\n%s" ")", indent.c_str());
Expand Down

0 comments on commit 55e0fb2

Please sign in to comment.