write_verilog: dump $mem cell attributes.
authorwhitequark <whitequark@whitequark.org>
Thu, 6 Feb 2020 16:22:22 +0000 (16:22 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 6 Feb 2020 16:22:42 +0000 (16:22 +0000)
The Verilog backend already dumps attributes on RTLIL::Memory objects
but not on `$mem` cells.

backends/verilog/verilog_backend.cc

index 54d0f61486b90700354b58ea591de9fcd9d54cd2..682c47a1f1510304a650da808db42bc3f57055ce 100644 (file)
@@ -1066,6 +1066,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
                //  initial begin
                //    memid[0] = ...
                //  end
+               dump_attributes(f, indent.c_str(), cell->attributes);
                f << stringf("%s" "reg [%d:%d] %s [%d:%d];\n", indent.c_str(), width-1, 0, mem_id.c_str(), size+offset-1, offset);
                if (use_init)
                {