projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcfe666
)
modify test2 to take one argument: array of inputs
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 9 Jul 2018 02:13:39 +0000
(
03:13
+0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 9 Jul 2018 02:13:39 +0000
(
03:13
+0100)
src/myhdl/pins.py
patch
|
blob
|
history
diff --git
a/src/myhdl/pins.py
b/src/myhdl/pins.py
index 832b3f8bbb4d55b64c0c6bb97a7b3086f8a477a5..217eb85d03d15d2a934edd5b02d1382acca3e4a6 100644
(file)
--- 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 = []