Use new module, autoreg and eventmanager Migen APIs