From 73ba5da10f9f754f6aabe0bf8cbb96f2e54df73a Mon Sep 17 00:00:00 2001 From: George Rennie Date: Wed, 20 Nov 2024 14:00:18 +0100 Subject: [PATCH] write_verilog: support $buf and $barrier --- backends/verilog/verilog_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index a8dd356bc..d2b3eba77 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -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(" = ");