Hi,
I changed the simulation API recently (unfortunately, about at the same
time as hackaday posted about Migen):
https://ssl.serverraum.org/lists-archive/devel/2014-January/003660.html
So you should write instead:
def __init__(...led...):
self.led = led
def do_simulation(self, selfp):
v_led = selfp.led # read the current signal value
...
cycle=selfp.simulator.cycle_counter
Haven't updated the doc/tutorial yet.
Sébastien
_______________________________________________
Devel mailing list
[email protected]
https://ssl.serverraum.org/lists/listinfo/devel