From 789e20c1e0cf988843407b67c9cdd827b881d7d2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 5 Feb 2020 16:58:52 +0000 Subject: [PATCH] add constants for opcode, EQ/GT/GE, probably better way to do this --- src/ieee754/part/partsig.py | 3 ++- src/ieee754/part_cmp/eq_gt_ge.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index 7b2a7c5f..0b9b1336 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -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_ diff --git a/src/ieee754/part_cmp/eq_gt_ge.py b/src/ieee754/part_cmp/eq_gt_ge.py index 7d7e4ccc..78a344b5 100644 --- a/src/ieee754/part_cmp/eq_gt_ge.py +++ b/src/ieee754/part_cmp/eq_gt_ge.py @@ -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 -- 2.30.2