1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00
myhdl/example/manual/Hello.py
2016-05-11 21:02:34 +02:00

12 lines
187 B
Python

from myhdl import block, always, now
@block
def Hello(clk, to="World!"):
@always(clk.posedge)
def say_hello():
print("%s Hello %s" % (now(), to))
return say_hello