mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Merge pull request #1683 from whitequark/write_verilog-memattrs
write_verilog: dump $mem cell attributes
This commit is contained in:
commit
6f67dd8df5
|
@ -1066,6 +1066,7 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell)
|
||||||
// initial begin
|
// initial begin
|
||||||
// memid[0] = ...
|
// memid[0] = ...
|
||||||
// end
|
// 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);
|
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)
|
if (use_init)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue