mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1411 from aman-goel/YosysHQ-master
Corrects BTOR2 backend
This commit is contained in:
commit
178c67ea22
|
@ -897,9 +897,12 @@ struct BtorWorker
|
||||||
|
|
||||||
int sid = get_bv_sid(GetSize(s));
|
int sid = get_bv_sid(GetSize(s));
|
||||||
int nid = next_nid++;
|
int nid = next_nid++;
|
||||||
btorf("%d input %d %s\n", nid, sid);
|
btorf("%d input %d\n", nid, sid);
|
||||||
nid_width[nid] = GetSize(s);
|
nid_width[nid] = GetSize(s);
|
||||||
|
|
||||||
|
for (int j = 0; j < GetSize(s); j++)
|
||||||
|
nidbits.push_back(make_pair(nid, j));
|
||||||
|
|
||||||
i += GetSize(s)-1;
|
i += GetSize(s)-1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue