projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07a657f
)
verilog backend: Emit a `wire` for ports as well.
author
Marcelina Kościelnicka
<mwk@0x04.net>
Sun, 30 Jan 2022 19:48:50 +0000
(20:48 +0100)
committer
Marcelina Kościelnicka
<mwk@0x04.net>
Mon, 31 Jan 2022 00:08:41 +0000
(
01:08
+0100)
Fixes #3177.
backends/verilog/verilog_backend.cc
patch
|
blob
|
history
diff --git
a/backends/verilog/verilog_backend.cc
b/backends/verilog/verilog_backend.cc
index 32003cf549d26f4b9f24eca890c86fa8096d8d7b..aa1d4558c34d51093c898d20207e28a49fab2b5d 100644
(file)
--- a/
backends/verilog/verilog_backend.cc
+++ b/
backends/verilog/verilog_backend.cc
@@
-432,7
+432,7
@@
void dump_wire(std::ostream &f, std::string indent, RTLIL::Wire *wire)
dump_const(f, wire->attributes.at(ID::init));
}
f << stringf(";\n");
- } else
if (!wire->port_input && !wire->port_output)
+ } else
f << stringf("%s" "wire%s %s;\n", indent.c_str(), range.c_str(), id(wire->name).c_str());
#endif
}