write_verilog: support $buf and $barrier

This commit is contained in:
George Rennie 2024-11-20 14:00:18 +01:00
parent cbe86afd5c
commit 73ba5da10f
1 changed files with 1 additions and 1 deletions

View File

@ -1071,7 +1071,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
return true;
}
if (cell->type == ID($_BUF_)) {
if (cell->type.in(ID($buf), ID($_BUF_), ID($barrier))) {
f << stringf("%s" "assign ", indent.c_str());
dump_sigspec(f, cell->getPort(ID::Y));
f << stringf(" = ");