From: Michael Nolan Date: Fri, 14 Feb 2020 14:22:59 +0000 (-0500) Subject: Replace giant switch statement with mux chain X-Git-Tag: ls180-24jan2020~175 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6033b7549ca48ed5a6875910d8c597a31bd5ce33;p=ieee754fpu.git Replace giant switch statement with mux chain --- diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index a0dac157..41bf16e3 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -100,15 +100,11 @@ class PartitionedDynamicShift(Elaboratable): s, e = intervals[i] index = gates[:i] # selects the 'i' least significant bits # of gates - element = Signal(matrix[0][i].width, name="element%d" % i) - for index in range(1<