From: Luke Kenneth Casson Leighton Date: Mon, 9 Jul 2018 02:13:39 +0000 (+0100) Subject: modify test2 to take one argument: array of inputs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0deedcca0d40d070c0c8582cc3fe3e4f327d738;p=pinmux.git modify test2 to take one argument: array of inputs --- diff --git a/src/myhdl/pins.py b/src/myhdl/pins.py index 832b3f8..217eb85 100644 --- a/src/myhdl/pins.py +++ b/src/myhdl/pins.py @@ -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 = []