From ea84676f154416fe5e7ab0e650973509d87ec491 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 5 Feb 2020 17:00:55 +0000 Subject: [PATCH] use PartitionedEqGtGe for eq function in partitioned signal --- src/ieee754/part/partsig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index 0b9b1336..4930ff0a 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -84,9 +84,10 @@ class PartitionedSignal: def __eq__(self, other): print ("eq", self, other) shape = self.sig.shape() - pa = PartitionedEq(shape[0], self.partpoints) + pa = PartitionedEqGtGe(shape[0], self.partpoints) setattr(self.m.submodules, self.get_modname('eq'), pa) comb = self.m.d.comb + comb += pa.opcode.eq(PartitionedEqGtGe.EQ) # set opcode to EQ comb += pa.a.eq(self.sig) if isinstance(other, PartitionedSignal): comb += pa.b.eq(other.sig) -- 2.30.2