From 1754d05f279091f4fe05d66c08a748f744b2f755 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 26 Feb 2020 11:46:23 -0500 Subject: [PATCH] Rename bitrev signal to shift_right (more descriptive) --- src/ieee754/part_shift/formal/proof_shift_dynamic.py | 8 ++++---- src/ieee754/part_shift/formal/proof_shift_scalar.py | 8 ++++---- src/ieee754/part_shift/part_shift_dynamic.py | 10 +++++----- src/ieee754/part_shift/part_shift_scalar.py | 9 ++++----- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/ieee754/part_shift/formal/proof_shift_dynamic.py b/src/ieee754/part_shift/formal/proof_shift_dynamic.py index 1c9bc478..9c160762 100644 --- a/src/ieee754/part_shift/formal/proof_shift_dynamic.py +++ b/src/ieee754/part_shift/formal/proof_shift_dynamic.py @@ -38,7 +38,7 @@ class ShifterDriver(Elaboratable): # setup the inputs and outputs of the DUT as anyconst a = Signal(width) b = Signal(width) - bitrev = Signal() + shift_right = Signal() out = Signal(width) points = PartitionPoints() gates = Signal(mwidth-1) @@ -49,7 +49,7 @@ class ShifterDriver(Elaboratable): comb += [a.eq(AnyConst(width)), b.eq(AnyConst(width)), - bitrev.eq(AnyConst(1)), + shift_right.eq(AnyConst(1)), gates.eq(AnyConst(mwidth-1))] m.submodules.dut = dut = PartitionedDynamicShift(width, points) @@ -60,11 +60,11 @@ class ShifterDriver(Elaboratable): comb += [dut.a.eq(a), dut.b.eq(b), - dut.bitrev.eq(bitrev), + dut.shift_right.eq(shift_right), out.eq(dut.output)] - with m.If(bitrev == 0): + with m.If(shift_right == 0): with m.Switch(points.as_sig()): with m.Case(0b000): comb += Assert(out == (a<