From 269f27a6e7ecd38827fbaabd741b36c1f9f77e51 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 30 Jan 2020 13:48:58 +0000 Subject: [PATCH] add "as_sig" function to PartitionPoints to get the mask as a straight sequence --- src/ieee754/part_mul_add/partpoints.py | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.30.2