mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
15 lines
217 B
Python
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)
|