From: Luke Kenneth Casson Leighton Date: Thu, 13 Feb 2020 15:33:48 +0000 (+0000) Subject: mention being a bit like the gt-combiner X-Git-Tag: ls180-24jan2020~178 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e4688a26979460200a74bea5c2fdd54ad6df828;p=ieee754fpu.git mention being a bit like the gt-combiner --- 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)