Skip to content

Commit

Permalink
Merge pull request #4803 from povik/write_verilog-buf
Browse files Browse the repository at this point in the history
write_verilog: Use assign for `$buf`
  • Loading branch information
povik authored Dec 10, 2024
2 parents f7ad003 + e7b21d2 commit 86fad8f
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 86fad8f

Please sign in to comment.