use convenience vars in spr proof
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 17 Jul 2020 17:44:16 +0000 (18:44 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 17 Jul 2020 17:44:16 +0000 (18:44 +0100)
src/soc/fu/spr/formal/proof_main_stage.py

index 730ffdbd033917ea29fc0aae2004b70b19f07ae6..cb98bf65db3ed98acf3649078be10a85b6118641 100644 (file)
@@ -54,6 +54,8 @@ class Driver(Elaboratable):
         ca_in = dut.i.xer_ca[0]   # CA carry in
         ca32_in = dut.i.xer_ca[1] # CA32 carry in 32
         so_in = dut.i.xer_so      # SO sticky overflow
+        ov_in = dut.i.xer_ov[0]   # XER OV in
+        ov32_in = dut.i.xer_ov[1] # XER OV32 in
         o = dut.o.o
 
         # setup random inputs
@@ -118,8 +120,8 @@ class Driver(Elaboratable):
                     with m.Case(SPR.XER):
                         bits = {
                             'SO': so_in,
-                            'OV': dut.i.xer_ov[0],
-                            'OV32': dut.i.xer_ov[1],
+                            'OV': ov_in,
+                            'OV32': ov32_in,
                             'CA': ca_in,
                             'CA32': ca32_in,
                         }