From be982b61d7ef1780ccdd7134a22008c83eac299d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 9 Feb 2020 18:28:42 +0000 Subject: [PATCH] use nmigen all() instead of invert-invert bool() --- src/ieee754/fpcommon/roundz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2