mirror of https://github.com/YosysHQ/yosys.git
Assign wires an smtoffset
Wires weren't being assigned an smtoffset value so when generating a yosys witness trace it would also use an offset of 0. Not sure if this has any other effects, but it fixes the bug I was having. @jix could you take a look at this?
This commit is contained in:
parent
c2285b3460
commit
52ad7a47f3
|
@ -628,7 +628,7 @@ struct Smt2Worker
|
|||
bool init_only = cell->type.in(ID($anyconst), ID($anyinit), ID($allconst));
|
||||
for (auto chunk : cell->getPort(QY).chunks())
|
||||
if (chunk.is_wire())
|
||||
decls.push_back(witness_signal(init_only ? "init" : "seq", chunk.width, chunk.offset, "", idcounter, chunk.wire));
|
||||
decls.push_back(witness_signal(init_only ? "init" : "seq", chunk.width, chunk.offset, "", idcounter, chunk.wire, chunk.offset));
|
||||
|
||||
makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(cell->getPort(QY)), log_signal(cell->getPort(QY)));
|
||||
if (cell->type == ID($anyseq))
|
||||
|
|
Loading…
Reference in New Issue