Re: [myhdl-list] myhdl.SimulationError: Inappriopriate argument type: <type 'NoneType'>
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2011-09-03 08:25:35
|
On 09/03/2011 04:48 AM, Shakthi Kannan wrote: > 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 > > > What could be the problem? > > SK > Indentation issue, HelloWorld() should return sayHello. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com World-class digital design: http://www.easics.com |