From d5239fb0a41a218f56db0e578a01365eac0b0675 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 19 Feb 2020 14:20:21 +0000 Subject: [PATCH] all signals must be reset_less --- src/ieee754/part_shift/part_shift_scalar.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ieee754/part_shift/part_shift_scalar.py b/src/ieee754/part_shift/part_shift_scalar.py index eb155df7..150e96b5 100644 --- a/src/ieee754/part_shift/part_shift_scalar.py +++ b/src/ieee754/part_shift/part_shift_scalar.py @@ -23,10 +23,10 @@ class PartitionedScalarShift(Elaboratable): self.width = width self.partition_points = PartitionPoints(partition_points) - self.data = Signal(width) + self.data = Signal(width, reset_less=True) self.shiftbits = math.ceil(math.log2(width)) - self.shifter = Signal(self.shiftbits) - self.output = Signal(width) + self.shifter = Signal(self.shiftbits, reset_less=True) + self.output = Signal(width, reset_less=True) def elaborate(self, platform): m = Module() @@ -34,7 +34,7 @@ class PartitionedScalarShift(Elaboratable): width = self.width pwid = self.partition_points.get_max_partition_count(width)-1 shiftbits = self.shiftbits - shifted = Signal(self.data.width) + shifted = Signal(self.data.width, reset_less=True) gates = self.partition_points.as_sig() comb += shifted.eq(self.data << self.shifter) @@ -55,7 +55,7 @@ class PartitionedScalarShift(Elaboratable): shifter_masks = [] for i in range(len(intervals)): max_bits = math.ceil(math.log2(width-intervals[i][0])) - sm_mask = Signal(shiftbits, name="sm_mask%d" % i) + sm_mask = Signal(shiftbits, name="sm_mask%d" % i, reset_less=True) if pwid-i != 0: sm = ShifterMask(pwid-i, shiftbits, max_bits, min_bits) @@ -66,7 +66,8 @@ class PartitionedScalarShift(Elaboratable): # this seems to fix it comb += sm_mask.eq((1<