From 5c2c78e2dd12a860f830dafd73fbed8edf1a3823 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 23 Nov 2016 13:49:25 +0100 Subject: [PATCH] Added wire start_offset and upto handling BLIF back-end --- backends/blif/blif.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2