Fixed yosys-smtbmc -c
authorClifford Wolf <clifford@clifford.at>
Wed, 14 Oct 2015 21:00:46 +0000 (23:00 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 14 Oct 2015 21:00:46 +0000 (23:00 +0200)
backends/smt2/smtbmc.py

index da186879765fb52649e840d444b0eed16615e4ba..4f6845849d35470094068ca4a86a768e67b6e804 100644 (file)
@@ -105,13 +105,13 @@ def write_vcd_model():
 
     vcd = mkvcd(open(vcdfile, "w"))
     for netname in sorted(debug_nets):
-        width = len(smt.get_net_bin("main", netname, "s0"))
+        width = len(smt.get_net_bin(topmod, netname, "s0"))
         vcd.add_net(netname, width)
 
     for i in range(step+1):
         vcd.set_time(i)
         for netname in debug_nets:
-            vcd.set_net(netname, smt.get_net_bin("main", netname, "s%d" % i))
+            vcd.set_net(netname, smt.get_net_bin(topmod, netname, "s%d" % i))
 
     vcd.set_time(step+1)