From: Luke Kenneth Casson Leighton Date: Sat, 15 Feb 2020 11:50:47 +0000 (+0000) Subject: remove out_intervals (unused) X-Git-Tag: ls180-24jan2020~169 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c894d173267f17bb739b470c2a7db5a485b7e67;p=ieee754fpu.git remove out_intervals (unused) --- diff --git a/src/ieee754/part_shift/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py index 21a0a9ef..f8f6d64c 100644 --- a/src/ieee754/part_shift/part_shift_dynamic.py +++ b/src/ieee754/part_shift/part_shift_dynamic.py @@ -42,7 +42,6 @@ class PartitionedDynamicShift(Elaboratable): # break out both the input and output into partition-stratified blocks a_intervals = [] b_intervals = [] - out_intervals = [] intervals = [] widths = [] start = 0 @@ -51,7 +50,6 @@ class PartitionedDynamicShift(Elaboratable): widths.append(width - start) a_intervals.append(self.a[start:end]) b_intervals.append(self.b[start:end]) - out_intervals.append(self.output[start:end]) intervals.append([start,end]) start = end @@ -96,7 +94,7 @@ class PartitionedDynamicShift(Elaboratable): element = b_intervals[0] & shifter_masks[0] partial_results = [] partial_results.append(a_intervals[0] << element) - for i in range(1, len(out_intervals)): + for i in range(1, len(keys)): s, e = intervals[i] masked = Signal(b_intervals[i].shape(), name="masked%d" % i) comb += masked.eq(b_intervals[i] & shifter_masks[i]) @@ -124,7 +122,7 @@ class PartitionedDynamicShift(Elaboratable): s,e = intervals[0] result = partial_results[0] out.append(result[s:e]) - for i in range(1, len(out_intervals)): + for i in range(1, len(keys)): start, end = (intervals[i][0], width) result = partial_results[i] | \ Mux(gates[i-1], 0, result[intervals[0][1]:])[:end-start]