WIP: check MB > ME and select mask appropriately
authorSamuel A. Falvo II <kc5tja@arrl.net>
Mon, 3 Aug 2020 15:17:55 +0000 (08:17 -0700)
committerSamuel A. Falvo II <kc5tja@arrl.net>
Mon, 3 Aug 2020 15:18:06 +0000 (08:18 -0700)
src/soc/fu/shift_rot/formal/proof_main_stage.py

index fa1674f3826d62d7fed1029034eed31f255aeeb1..2f0455f48bc1ba048eef3ee444a1804e6fb9a9ee 100644 (file)
@@ -185,7 +185,10 @@ class Driver(Elaboratable):
                 # code norms.
 
                 mrl = Signal(64, reset_less=True, name='MASK_FOR_RLC')
-                comb += mrl.eq(ml | mr)
+                with m.If(mb > me):
+                    comb += mrl.eq(ml | mr)
+                with m.Else():
+                    comb += mrl.eq(ml & mr)
 
                 ainp = Signal(64, reset_less=True, name='A_INP_FOR_RLC')
                 comb += ainp.eq(field(a, 32, 63))