Here is an example that I've copied from the myHDL manual. In my code the generator FSM() never gets invoked so the state is always 'SEARCH'.
I can't figure out why the generator is not getting called.
Edit:
Changing this line from:
reset = ResetSignal(0, active=ACTIVE_LOW, async=True)
to:
reset = ResetSignal(1, active=ACTIVE_LOW, async=True)
I think this is a bug in the example - if reset is ACTIVE_LOW it should be initialized to 1, not 0?