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
|
@ -130,10 +130,14 @@ void RTLIL_BACKEND::dump_wire(std::ostream &f, std::string indent, const RTLIL::
|
|||
wire->driverCell()->name.c_str(), wire->driverPort().c_str());
|
||||
}
|
||||
f << stringf("%s" "wire ", indent.c_str());
|
||||
if (wire->width != 1)
|
||||
if (wire->width == 1) {
|
||||
if (wire->sbvector)
|
||||
f << stringf("width %d ", wire->width);
|
||||
} else {
|
||||
f << stringf("width %d ", wire->width);
|
||||
if (wire->upto)
|
||||
f << stringf("upto ");
|
||||
if (wire->upto)
|
||||
f << stringf("upto ");
|
||||
}
|
||||
if (wire->start_offset != 0)
|
||||
f << stringf("offset %d ", wire->start_offset);
|
||||
if (wire->port_input && !wire->port_output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue