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
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.