Skip to content

Commit

Permalink
write_verilog: Use assign for $buf
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Dec 5, 2024
1 parent 66734f5 commit e7b21d2
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))) {
f << stringf("%s" "assign ", indent.c_str());
dump_sigspec(f, cell->getPort(ID::Y));
f << stringf(" = ");
Expand Down

0 comments on commit e7b21d2

Please sign in to comment.