From: Luke Kenneth Casson Leighton Date: Mon, 4 Mar 2019 01:11:10 +0000 (+0000) Subject: rename stickybit variable X-Git-Tag: ls180-24jan2020~1750 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b006a58e3980bca9d34b26b2222eb0bdee0291c9;p=ieee754fpu.git rename stickybit variable --- diff --git a/src/add/fpbase.py b/src/add/fpbase.py index d6a059e0..4430f9c6 100644 --- a/src/add/fpbase.py +++ b/src/add/fpbase.py @@ -366,10 +366,10 @@ class FPNumIn(FPNumBase): maxsleni = mw - maxslen m_mask = sm.rshift(self.m1s[1:], maxsleni) # shift and invert - #stickybits = reduce(or_, inp.m[1:] & m_mask) | inp.m[0] - stickybits = (inp.m[1:] & m_mask).bool() | inp.m[0] + #stickybit = reduce(or_, inp.m[1:] & m_mask) | inp.m[0] + stickybit = (inp.m[1:] & m_mask).bool() | inp.m[0] return [self.e.eq(inp.e + diff), - self.m.eq(Cat(stickybits, rs)) + self.m.eq(Cat(stickybit, rs)) ] def shift_up_multi(self, diff):