projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789e20c
)
use PartitionedEqGtGe for eq function in partitioned signal
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 5 Feb 2020 17:00:55 +0000
(17:00 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 5 Feb 2020 17:00:55 +0000
(17:00 +0000)
src/ieee754/part/partsig.py
patch
|
blob
|
history
diff --git
a/src/ieee754/part/partsig.py
b/src/ieee754/part/partsig.py
index 0b9b1336d358d66bbdcb6591f8eab334ab21db31..4930ff0afdcf0a203a5e6ed55436eeed6623b101 100644
(file)
--- 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 = PartitionedEq
GtGe
(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)