aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-09-29 10:36:25 +0200
committerGitHub <noreply@github.com>2019-09-29 10:36:25 +0200
commit178c67ea226b093cdbe101a69cb83cc8800aa702 (patch)
tree7460166269d06853099b24d8f75077c093d56374 /backends
parentc372e7baf9c48d41ebdbea4486a72e8dfaaddd3d (diff)
parent5eebfabe4286d47a75508677e2bc76e8b422a879 (diff)
downloadyosys-178c67ea226b093cdbe101a69cb83cc8800aa702.tar.gz
yosys-178c67ea226b093cdbe101a69cb83cc8800aa702.tar.bz2
yosys-178c67ea226b093cdbe101a69cb83cc8800aa702.zip
Merge pull request #1411 from aman-goel/YosysHQ-master
Corrects BTOR2 backend
Diffstat (limited to 'backends')
-rw-r--r--backends/btor/btor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/btor/btor.cc b/backends/btor/btor.cc
index 4472993d4..f617b7ec2 100644
--- a/backends/btor/btor.cc
+++ b/backends/btor/btor.cc
@@ -897,9 +897,12 @@ struct BtorWorker
int sid = get_bv_sid(GetSize(s));
int nid = next_nid++;
- btorf("%d input %d %s\n", nid, sid);
+ btorf("%d input %d\n", nid, sid);
nid_width[nid] = GetSize(s);
+ for (int j = 0; j < GetSize(s); j++)
+ nidbits.push_back(make_pair(nid, j));
+
i += GetSize(s)-1;
continue;
}