modify test2 to take one argument: array of inputs
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 9 Jul 2018 02:13:39 +0000 (03:13 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 9 Jul 2018 02:13:39 +0000 (03:13 +0100)
src/myhdl/pins.py

index 832b3f8bbb4d55b64c0c6bb97a7b3086f8a477a5..217eb85d03d15d2a934edd5b02d1382acca3e4a6 100644 (file)
@@ -54,8 +54,7 @@ from myhdl import block
 @block
 def test(testfn, {0}):
     args = ({0})
-    return testfn(*args)
-    return test
+    return testfn(args)
 """
     args = ['clk', 'muxes', 'pins', 'fns']
     args = ','.join(args)
@@ -82,7 +81,8 @@ def proxy(func):
 
 
 @block
-def test2(clk, muxes, pins, fns):
+def test2(args):
+    (clk, muxes, pins, fns) = args
 
     muxinst = []