1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
myhdl/example/manual/hello1.py
2016-03-22 18:09:38 +01:00

15 lines
217 B
Python

from myhdl import block, delay, always, now
@block
def HelloWorld():
@always(delay(10))
def say_hello():
print("%s Hello World!" % now())
return say_hello
inst = HelloWorld()
inst.run_sim(30)