From 3e4688a26979460200a74bea5c2fdd54ad6df828 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 15:33:48 +0000 Subject: [PATCH] mention being a bit like the gt-combiner --- src/ieee754/part_shift/part_shift_dynamic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index b82fc467..df268810 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -114,6 +114,10 @@ class PartitionedDynamicShift(Elaboratable): # element or (element | intermed), select between 0 or intermed # then unconditionally "|" element on top (once copied into # a named Signal) + # XXX TODO: hmmm rather than pass down the actual intermed + # here, why not accumulate a cascade of "do we need to include + # this partial result" things, *then* OR them together? + # this is where it sort-of becomes like the gt_combiner intermed = Mux(gates[i-1], 0, intermed[keys[0]:]) intermed2 = Signal(intermed.shape()) comb += intermed2.eq(intermed | element) -- 2.30.2