reduce pmask to stop unconnected bits
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Feb 2020 13:05:30 +0000 (13:05 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Feb 2020 13:05:30 +0000 (13:05 +0000)
examples/part_sig_add.py

index b6af3b3bf01602622b809bdd2f0a1b0f4d813818..532b216fc782cbf02026e4eb4c4be05db060a340 100644 (file)
@@ -6,7 +6,7 @@ from nmigen import Signal
 
 def test():
     width = 16
-    pmask = Signal(4)  # divide into 4-bits
+    pmask = Signal(3)  # divide into 4-bits
     module = TestAddMod2(width, pmask)
     sim = create_ilang(module,
                                [pmask,