From: Luke Kenneth Casson Leighton Date: Sun, 9 Feb 2020 18:28:42 +0000 (+0000) Subject: use nmigen all() instead of invert-invert bool() X-Git-Tag: ls180-24jan2020~215 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be982b61d7ef1780ccdd7134a22008c83eac299d;p=ieee754fpu.git use nmigen all() instead of invert-invert bool() --- diff --git a/src/ieee754/fpcommon/roundz.py b/src/ieee754/fpcommon/roundz.py index 88795fbe..a11f42ac 100644 --- a/src/ieee754/fpcommon/roundz.py +++ b/src/ieee754/fpcommon/roundz.py @@ -47,7 +47,7 @@ class FPRoundMod(PipeModBase): im = self.i.z.m ie = self.i.z.e msb1s = Signal(reset_less=True) - comb += msb1s.eq(~(~self.i.z.m).bool()) # all 1s + comb += msb1s.eq(self.i.z.m.all()) # all 1s comb += self.o.z.m.eq(Mux(self.i.roundz, im+1, im)) # mantissa up comb += self.o.z.e.eq(Mux(msb1s & self.i.roundz, ie + 1, ie)) # exp up