Added wire start_offset and upto handling BLIF back-end
authorClifford Wolf <clifford@clifford.at>
Wed, 23 Nov 2016 12:49:25 +0000 (13:49 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 23 Nov 2016 12:54:33 +0000 (13:54 +0100)
backends/blif/blif.cc

index d9d0cc177f50b9ed608017b37e5b9113d32d1534..4dbaca0bdf816275b510fe06fa09a2e0b2fa92e5 100644 (file)
@@ -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();