add constants for opcode, EQ/GT/GE, probably better way to do this
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Feb 2020 16:58:52 +0000 (16:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Feb 2020 16:58:52 +0000 (16:58 +0000)
src/ieee754/part/partsig.py
src/ieee754/part_cmp/eq_gt_ge.py

index 7b2a7c5fe0880632d60e8f855fb510201ac04d1f..0b9b1336d358d66bbdcb6591f8eab334ab21db31 100644 (file)
@@ -17,7 +17,8 @@ http://bugs.libre-riscv.org/show_bug.cgi?id=132
 """
 
 from ieee754.part_mul_add.adder import PartitionedAdder
-from ieee754.part_cmp.equal_ortree import PartitionedEq
+#from ieee754.part_cmp.equal_ortree import PartitionedEq
+from ieee754.part_cmp.eq_gt_ge import PartitionedEqGtGe
 from ieee754.part_mul_add.partpoints import make_partition
 from operator import or_, xor, and_, not_
 
index 7d7e4ccc56c5e6e3c2d8027a4ab662e9f9fe57e0..78a344b508f7dc3aa0ea2bc25d1b66e509b02868 100644 (file)
@@ -21,6 +21,9 @@ from ieee754.part_cmp.experiments.gt_combiner import GTCombiner
 
 
 class PartitionedEqGtGe(Elaboratable):
+    EQ = C(0b00, 2)
+    GT = C(0b01, 2)
+    GE = C(0b10, 2)
 
     # Expansion of the partitioned equals module to handle Greater
     # Than and Greater than or Equal to. The function being evaluated