[myhdl-list] myhdl.SimulationError: Inappriopriate argument type: <type 'NoneType'>
Brought to you by:
jandecaluwe
From: Shakthi K. <sha...@gm...> - 2011-09-03 02:48:41
|
Hi, I am trying the HelloWorld example from the manual on Python 2.7 with python-myhdl (0.7) on Fedora 14. === hello1.py === #!/usr/bin/python from myhdl import Signal, delay, always, now, Simulation def HelloWorld(): interval = delay(10) @always(interval) def sayHello(): print "%s Hello World!" % now() return sayHello inst = HelloWorld() sim = Simulation(inst) sim.run(30) === END === I get the following error in the output when running, python hello1.py: === OUTPUT === $ python hello1.py Traceback (most recent call last): File "hello1.py", line 15, in <module> sim = Simulation(inst) File "/usr/lib/python2.7/site-packages/myhdl/_Simulation.py", line 64, in __init__ self._waiters, self._cosim = _makeWaiters(arglist) File "/usr/lib/python2.7/site-packages/myhdl/_Simulation.py", line 222, in _makeWaiters raise SimulationError(_error.ArgType, str(type(arg))) myhdl.SimulationError: Inappriopriate argument type: <type 'NoneType'> === END === What could be the problem? SK -- Shakthi Kannan http://www.shakthimaan.com |