From 0bd85195d5bfa5cb966de49c3d9382cb2dfc777c Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Fri, 14 Feb 2020 14:29:25 -0500 Subject: [PATCH] re-add masking of the shift amount based on partition length --- .../part_shift/formal/proof_shift_dynamic.py | 56 +++++++------------ src/ieee754/part_shift/part_shift_dynamic.py | 32 +++++++++-- 2 files changed, 47 insertions(+), 41 deletions(-) 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<