mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
Added wire->upto flag for signals such as "wire [0:7] x;"
This commit is contained in:
parent
7bd2d1064f
commit
3c45277ee0
6 changed files with 13 additions and 2 deletions
|
@ -1019,6 +1019,7 @@ RTLIL::Wire *RTLIL::Module::addWire(RTLIL::IdString name, const RTLIL::Wire *oth
|
|||
wire->port_id = other->port_id;
|
||||
wire->port_input = other->port_input;
|
||||
wire->port_output = other->port_output;
|
||||
wire->upto = other->upto;
|
||||
wire->attributes = other->attributes;
|
||||
return wire;
|
||||
}
|
||||
|
@ -1443,6 +1444,7 @@ RTLIL::Wire::Wire()
|
|||
port_id = 0;
|
||||
port_input = false;
|
||||
port_output = false;
|
||||
upto = false;
|
||||
}
|
||||
|
||||
RTLIL::Memory::Memory()
|
||||
|
|
|
@ -602,7 +602,7 @@ public:
|
|||
|
||||
RTLIL::IdString name;
|
||||
int width, start_offset, port_id;
|
||||
bool port_input, port_output;
|
||||
bool port_input, port_output, upto;
|
||||
RTLIL_ATTRIBUTE_MEMBERS
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue