From: Michael Nolan Date: Wed, 12 Feb 2020 19:08:13 +0000 (-0500) Subject: Expand proof_shift_dynamic to 32 bits X-Git-Tag: ls180-24jan2020~186 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0b3b8c8a2afe978b033455d676a5b31c8d7e19e;p=ieee754fpu.git Expand proof_shift_dynamic to 32 bits --- diff --git a/src/ieee754/part_shift/formal/proof_shift_dynamic.py b/src/ieee754/part_shift/formal/proof_shift_dynamic.py index ad9e6517..d4e7a525 100644 --- a/src/ieee754/part_shift/formal/proof_shift_dynamic.py +++ b/src/ieee754/part_shift/formal/proof_shift_dynamic.py @@ -32,8 +32,8 @@ class ShifterDriver(Elaboratable): def elaborate(self, platform): m = Module() comb = m.d.comb - width = 24 - mwidth = 3 + width = 32 + mwidth = 4 # setup the inputs and outputs of the DUT as anyconst a = Signal(width) @@ -62,28 +62,70 @@ class ShifterDriver(Elaboratable): with m.Switch(points.as_sig()): - with m.Case(0b00): - comb += Assume(b < 24) - comb += Assert(out == (a<