from __future__ import generators
from myhdl import Signal, delay, posedge, now, Simulation

def sayHello():
    while 1:
        yield delay(10)
        print "%s Hello World!" % now()

def main():
    sim = Simulation(sayHello())
    sim.run(30)

if __name__ == '__main__':
    main()



@@ -1,38 +1,4 @@
-from __future__ import generators%0A
 from
@@ -30,15 +30,14 @@
 ay, 
-posedge
+always
 , no
@@ -75,40 +75,51 @@
     
-while 1:%0A        yield delay(10)
+%0A    @always(delay(10))%0A    def behavior():
 %0A   
@@ -156,16 +156,38 @@
  now()%0A%0A
+    return behavior%0A%0A%0A
 def main
@@ -238,16 +238,21 @@
 .run(30)
+%0A    
 %0A%0Aif __n

adapted to 0.5