From: Luke Kenneth Casson Leighton Date: Thu, 30 Jan 2020 13:48:58 +0000 (+0000) Subject: add "as_sig" function to PartitionPoints to get the mask as a straight sequence X-Git-Tag: ls180-24jan2020~308 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=269f27a6e7ecd38827fbaabd741b36c1f9f77e51;p=ieee754fpu.git add "as_sig" function to PartitionPoints to get the mask as a straight sequence --- diff --git a/src/ieee754/part_mul_add/partpoints.py b/src/ieee754/part_mul_add/partpoints.py index fbdeb9f4..043988fb 100644 --- a/src/ieee754/part_mul_add/partpoints.py +++ b/src/ieee754/part_mul_add/partpoints.py @@ -105,6 +105,11 @@ class PartitionPoints(dict): bits.append(True) return Cat(*bits) + def as_sig(self): + """Create a straight concatenation of `self` signals + """ + return Cat(self.values()) + def get_max_partition_count(self, width): """Get the maximum number of partitions.