Skip to content

Commit 86fad8f

Browse files
authored
Merge pull request #4803 from povik/write_verilog-buf
write_verilog: Use assign for `$buf`
2 parents f7ad003 + e7b21d2 commit 86fad8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/verilog/verilog_backend.cc

+1-1
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))) {
10751075
f << stringf("%s" "assign ", indent.c_str());
10761076
dump_sigspec(f, cell->getPort(ID::Y));
10771077
f << stringf(" = ");

0 commit comments

Comments
 (0)