mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-10 09:15:49 +00:00
rtlil: enable single-bit vector wires
This commit is contained in:
parent
f60bbe64ac
commit
ab112b9b6b
12 changed files with 121 additions and 9 deletions
|
@ -419,6 +419,9 @@ void dump_wire(std::ostream &f, std::string indent, RTLIL::Wire *wire)
|
|||
range = stringf(" [%d:%d]", wire->start_offset, wire->width - 1 + wire->start_offset);
|
||||
else
|
||||
range = stringf(" [%d:%d]", wire->width - 1 + wire->start_offset, wire->start_offset);
|
||||
} else {
|
||||
if (wire->sbvector)
|
||||
range = stringf(" [%d:%d]", wire->start_offset, wire->start_offset);
|
||||
}
|
||||
if (wire->port_input && !wire->port_output)
|
||||
f << stringf("%s" "input%s %s;\n", indent.c_str(), range.c_str(), id(wire->name).c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue