From 6aef0f0b9086bd1f3fe5008e66c6a491429aa4cc Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 2 Oct 2021 18:37:41 +0100 Subject: [PATCH] revert to using self == Const(-1) for now in PartitionedSignal.all() --- src/ieee754/part/partsig.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index e6939422..0cb90512 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -356,11 +356,13 @@ class PartitionedSignal(UserValue): Value, out ``1`` if all bits are set, ``0`` otherwise. """ - width = len(self.sig) - pa = PartitionedAll(width, self.partpoints) - setattr(self.m.submodules, self.get_modname("all"), pa) - self.m.d.comb += pa.a.eq(self.sig) - return pa.output + # something wrong with PartitionedAll, but self == Const(-1)" + #width = len(self.sig) + #pa = PartitionedAll(width, self.partpoints) + #setattr(self.m.submodules, self.get_modname("all"), pa) + #self.m.d.comb += pa.a.eq(self.sig) + #return pa.output + return self == Const(-1) # leverage the __eq__ operator here def xor(self): """Compute pairwise exclusive-or of every bit. -- 2.30.2