From a0b3b8c8a2afe978b033455d676a5b31c8d7e19e Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 12 Feb 2020 14:08:13 -0500 Subject: [PATCH] Expand proof_shift_dynamic to 32 bits --- .../part_shift/formal/proof_shift_dynamic.py | 70 +++++++++++++++---- 1 file changed, 56 insertions(+), 14 deletions(-) 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<