diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-07-01 02:13:32 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-07-01 02:13:32 +0200 |
commit | 7d2fb6e2fc8e2cdd9eebe40cd04256be8f590012 (patch) | |
tree | c0f94236e633e69cfc19c76c1246e91881339b76 /backends/smt2 | |
parent | 0f217080cfb9c0171415829ba5bada6d75356ac6 (diff) | |
download | yosys-7d2fb6e2fc8e2cdd9eebe40cd04256be8f590012.tar.gz yosys-7d2fb6e2fc8e2cdd9eebe40cd04256be8f590012.tar.bz2 yosys-7d2fb6e2fc8e2cdd9eebe40cd04256be8f590012.zip |
Fix smtbmc vlogtb bug in $anyseq handling
Diffstat (limited to 'backends/smt2')
-rw-r--r-- | backends/smt2/smtbmc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py index ceca5b3f8..096097594 100644 --- a/backends/smt2/smtbmc.py +++ b/backends/smt2/smtbmc.py @@ -755,11 +755,11 @@ def write_vlogtb_trace(steps_start, steps_stop, index): for info in anyseqs: if info[3] is not None: - modstate = smt.net_expr(topmod, "s%d" % steps_start, info[0]) + modstate = smt.net_expr(topmod, "s%d" % i, info[0]) value = smt.bv2bin(smt.get("(|%s| %s)" % (info[1], modstate))) - print(" UUT.%s = %d'b%s;" % (".".join(info[0] + [info[3]]), len(value), value), file=f); + print(" UUT.%s <= %d'b%s;" % (".".join(info[0] + [info[3]]), len(value), value), file=f); - print(" genclock = 0;", file=f) + print(" genclock <= 0;", file=f) print(" end", file=f) print("endmodule", file=f) |