Fix where msr_i gets its value from
authorSamuel A. Falvo II <kc5tja@arrl.net>
Tue, 21 Jul 2020 19:16:09 +0000 (12:16 -0700)
committerSamuel A. Falvo II <kc5tja@arrl.net>
Tue, 21 Jul 2020 19:16:09 +0000 (12:16 -0700)
src/soc/fu/trap/formal/proof_main_stage.py

index 7afb9b0b84d92bd1c0af56cbe2927f074cbf113f..0a1afbdbfc4fc0c05592b910c45c3c91173db269 100644 (file)
@@ -46,7 +46,7 @@ class Driver(Elaboratable):
 
         # frequently used aliases
         op = dut.i.ctx.op
-        msr_o, msr_i = dut.o.msr, dut.i.msr
+        msr_o, msr_i = dut.o.msr, op.msr
         srr1_o, srr1_i = dut.o.srr1, dut.i.srr1
 
         comb += op.eq(rec)
@@ -57,9 +57,9 @@ class Driver(Elaboratable):
                 comb += [
                     Assert(dut.o.srr0.ok),
                     Assert(srr1_o.ok),
-#                   Assert(msr_o.ok),
+                    Assert(msr_o.ok),
 
-                    Assert(dut.o.srr0.data == (dut.i.cia + 4)[0:64]),
+                    Assert(dut.o.srr0.data == (op.cia + 4)[0:64]),
                     Assert(field(srr1_o, 33, 36) == 0),
                     Assert(field(srr1_o, 42, 47) == 0),
                     Assert(field(srr1_o, 0, 32) == field(msr_i, 0, 32)),