Skip to content

Commit 0465fe0

Browse files
committed
write_verilog: support $buf and $barrier
1 parent a5ee7ef commit 0465fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/verilog/verilog_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
10711071
return true;
10721072
}
10731073

1074-
if (cell->type == ID($_BUF_)) {
1074+
if (cell->type.in(ID($buf), ID($_BUF_), ID($barrier))) {
10751075
f << stringf("%s" "assign ", indent.c_str());
10761076
dump_sigspec(f, cell->getPort(ID::Y));
10771077
f << stringf(" = ");

0 commit comments

Comments
 (0)