not actual number of partitions), fix PartitionedSignal.like(),
needed to pass in PartitionPoints(other.partpoints)
def like(other, *args, **kwargs):
"""Builds a new PartitionedSignal with the same PartitionPoints and
Signal properties as the other"""
- result = PartitionedSignal(other.partpoints)
+ result = PartitionedSignal(PartitionPoints(other.partpoints))
result.sig = Signal.like(other.sig, *args, **kwargs)
result.m = other.m
return result
class TestMux(unittest.TestCase):
def test(self):
width = 16
- part_mask = Signal(4) # divide into 4-bits
+ part_mask = Signal(3) # divide into 4-bits
module = TestMuxMod(width, part_mask)
test_name = "part_sig_mux"
class TestPartitionedSignal(unittest.TestCase):
def test(self):
width = 16
- part_mask = Signal(4) # divide into 4-bits
+ part_mask = Signal(3) # divide into 4-bits
module = TestAddMod(width, part_mask)
test_name = "part_sig_add"