3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Added wire->upto flag for signals such as "wire [0:7] x;"

This commit is contained in:
Clifford Wolf 2014-07-28 12:12:13 +02:00
parent 7bd2d1064f
commit 3c45277ee0
6 changed files with 13 additions and 2 deletions

View file

@ -123,6 +123,8 @@ void ILANG_BACKEND::dump_wire(FILE *f, std::string indent, const RTLIL::Wire *wi
fprintf(f, "%s" "wire ", indent.c_str());
if (wire->width != 1)
fprintf(f, "width %d ", wire->width);
if (wire->upto)
fprintf(f, "upto ");
if (wire->start_offset != 0)
fprintf(f, "offset %d ", wire->start_offset);
if (wire->port_input && !wire->port_output)