diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-11-23 13:49:25 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-11-23 13:54:33 +0100 |
commit | 5c2c78e2dd12a860f830dafd73fbed8edf1a3823 (patch) | |
tree | 6a5e65f98cb6931deeaccdf18ca0428be61d2749 /backends/blif | |
parent | e444e59963bae07df59f13af5cb52b3a3cae2720 (diff) | |
download | yosys-5c2c78e2dd12a860f830dafd73fbed8edf1a3823.tar.gz yosys-5c2c78e2dd12a860f830dafd73fbed8edf1a3823.tar.bz2 yosys-5c2c78e2dd12a860f830dafd73fbed8edf1a3823.zip |
Added wire start_offset and upto handling BLIF back-end
Diffstat (limited to 'backends/blif')
-rw-r--r-- | backends/blif/blif.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |