diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-11-24 18:13:41 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-11-24 18:13:41 +0100 |
commit | e3a51b3e876e1bf41cf2e66d66a0e793b8e658d6 (patch) | |
tree | b0028f30e4dd687688be049a14358ee77bdd44d6 /backends | |
parent | 60d11295061956c56af5517272d0b58035c30ee6 (diff) | |
download | yosys-e3a51b3e876e1bf41cf2e66d66a0e793b8e658d6.tar.gz yosys-e3a51b3e876e1bf41cf2e66d66a0e793b8e658d6.tar.bz2 yosys-e3a51b3e876e1bf41cf2e66d66a0e793b8e658d6.zip |
Bugfixes in new BTOR back-end
Diffstat (limited to 'backends')
-rw-r--r-- | backends/btor/btor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/btor/btor.cc b/backends/btor/btor.cc index 2a98d1aba..51715ff25 100644 --- a/backends/btor/btor.cc +++ b/backends/btor/btor.cc @@ -334,7 +334,7 @@ struct BtorWorker if (nid >= 0) { int sid = get_bv_sid(width+upper-lower+1); - int nid4 = next_nid++; + nid4 = next_nid++; btorf("%d concat %d %d %d\n", nid4, sid, nid, nid3); } @@ -411,8 +411,9 @@ struct BtorWorker btorf_push(stringf("output %s", log_id(wire))); + int sid = get_bv_sid(GetSize(wire)); int nid = get_sig_nid(wire); - btorf("%d output %d %s\n", next_nid++, nid, log_id(wire)); + btorf("%d output %d %d %s\n", next_nid++, sid, nid, log_id(wire)); btorf_pop(stringf("output %s", log_id(wire))); } |