zero out entirety of mask explicitly
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Feb 2020 14:38:13 +0000 (14:38 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Feb 2020 14:38:13 +0000 (14:38 +0000)
src/ieee754/part_shift/part_shift_dynamic.py

index 7e5134fd99990003d4e7eb66e13c1713ce13aa26..e5ae557606e62cf802e04ee8a0fa913d9db4227b 100644 (file)
@@ -51,6 +51,7 @@ class ShifterMask(Elaboratable):
         # XXX ARGH, really annoying: simulation bug, can't use Cat(*bl).
         for j in range(bits.shape()[0]):
             comb += bits[j].eq(bl[j])
+        comb += self.mask.eq(C(0, self.mask.shape()))
         comb += self.mask.eq(Cat(minm, bits) & C(maxm, self.mask.shape()))
 
         return m