From b0deedcca0d40d070c0c8582cc3fe3e4f327d738 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 9 Jul 2018 03:13:39 +0100 Subject: [PATCH] modify test2 to take one argument: array of inputs --- src/myhdl/pins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = [] -- 2.30.2