[myhdl-list] Wait within @always()
Brought to you by:
jandecaluwe
From: Uri N. <ur...@gm...> - 2011-08-03 07:50:49
|
Hi, I'm using MyHDL to model a FSM, and would like to wait/delay the state transitions, something like this: @always(clk.posedge) def logic(): if state == t_State.ONE: state.next = t_State.TWO # wait for something comparable to myhdl.delay(x) ... If I understand correctly, this would require changing the function's sensitivity list dynamically - is it possible? I'd prefer to keep using the @always() pattern instead of yielding explicitly. Cheers, Uri |