This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
No comments:
Post a Comment