From: Michael Nolan Date: Fri, 14 Feb 2020 19:29:25 +0000 (-0500) Subject: re-add masking of the shift amount based on partition length X-Git-Tag: ls180-24jan2020~172 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bd85195d5bfa5cb966de49c3d9382cb2dfc777c;p=ieee754fpu.git re-add masking of the shift amount based on partition length --- diff --git a/src/ieee754/part_shift/formal/proof_shift_dynamic.py b/src/ieee754/part_shift/formal/proof_shift_dynamic.py index d4e7a525..a836771c 100644 --- a/src/ieee754/part_shift/formal/proof_shift_dynamic.py +++ b/src/ieee754/part_shift/formal/proof_shift_dynamic.py @@ -2,7 +2,7 @@ # Copyright (C) 2020 Michael Nolan from nmigen import Module, Signal, Elaboratable, Mux, Cat -from nmigen.asserts import Assert, AnyConst, Assume +from nmigen.asserts import Assert, AnyConst from nmigen.test.utils import FHDLTestCase from nmigen.cli import rtlil @@ -63,71 +63,55 @@ class ShifterDriver(Elaboratable): with m.Switch(points.as_sig()): with m.Case(0b000): - comb += Assume(b <= 32) - comb += Assert(out == (a<