run tests in parallel
[ieee754fpu.git] / src / ieee754 / part_mul_add / partpoints.py
index fbdeb9f4bd53f80f259d9ac88f5c460b2f828dfb..e138490be2d8a14083a7e5cd33e7ac135251fc6a 100644 (file)
@@ -18,7 +18,7 @@ def make_partition(mask, width):
     mlen = mask.shape()[0]
     ppos = mlen
     midx = 0
-    while ppos < width:
+    while ppos < width and midx < mlen: # -1, ignore last bit
         ppoints[ppos] = mask[midx]
         ppos += mlen
         midx += 1
@@ -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.