Skip to content

Commit

Permalink
write_verilog: support $buf and $barrier
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Nov 20, 2024
1 parent 70e1381 commit f7b4b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/verilog/verilog_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(" = ");
Expand Down

0 comments on commit f7b4b5c

Please sign in to comment.