mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 18:05:24 +00:00
Added wire start_offset and upto handling BLIF back-end
This commit is contained in:
parent
e444e59963
commit
5c2c78e2dd
|
@ -112,7 +112,7 @@ struct BlifDumper
|
||||||
str[i] = '?';
|
str[i] = '?';
|
||||||
|
|
||||||
if (sig.wire->width != 1)
|
if (sig.wire->width != 1)
|
||||||
str += stringf("[%d]", sig.offset);
|
str += stringf("[%d]", sig.wire->upto ? sig.wire->start_offset+sig.wire->width-sig.offset-1 : sig.wire->start_offset+sig.offset);
|
||||||
|
|
||||||
cstr_buf.push_back(str);
|
cstr_buf.push_back(str);
|
||||||
return cstr_buf.back().c_str();
|
return cstr_buf.back().c_str();
|
||||||
|
|
Loading…
Reference in a new issue