library/ti_wave: conver to Migen module API