From: Clifford Wolf Date: Wed, 23 Nov 2016 12:49:25 +0000 (+0100) Subject: Added wire start_offset and upto handling BLIF back-end X-Git-Tag: yosys-0.8~577 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c2c78e2dd12a860f830dafd73fbed8edf1a3823;p=yosys.git Added wire start_offset and upto handling BLIF back-end --- diff --git a/backends/blif/blif.cc b/backends/blif/blif.cc index d9d0cc177..4dbaca0bd 100644 --- a/backends/blif/blif.cc +++ b/backends/blif/blif.cc @@ -112,7 +112,7 @@ struct BlifDumper str[i] = '?'; 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); return cstr_buf.back().c_str();