From: Luke Kenneth Casson Leighton Date: Fri, 22 Oct 2021 14:03:22 +0000 (+0100) Subject: only set standard PartType in non-Simd-mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13105abdf5d0c5ade6f8639809a2c5ed31221621;p=ieee754fpu.git only set standard PartType in non-Simd-mode --- diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index bc12d26e..e1bb7ec9 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -122,11 +122,12 @@ class SimdSignal(UserValue): # parse the args, get elwid from SimdMode, # get module as well, call self.set_module(mask.module) self.partpoints = ptype.make_layout_get_stuff(mask, *args, **kwargs) - if isinstance(mask, PartitionPoints): - self.partpoints = mask else: - self.partpoints = make_partition2(mask, width) - self.ptype = PartType(self) + if isinstance(mask, PartitionPoints): + self.partpoints = mask + else: + self.partpoints = make_partition2(mask, width) + self.ptype = PartType(self) def set_module(self, m): self.m = m