N
Neha
Guest
Hi.
I have an FSM with 32 states. States 0, 1 and 31 are unique, and the
rest are basically doing the same thing.
...so I wrote the code using case statements like this:
case state is
when t0=>--somecode....
state<=t1;
when t1=>--somecode....
state<=t2;
when t2 to t30=>
state<=state_type'succ(state) --or state<=state_type'rightof(state)
--somecode
when t31=>
state<=t0;
--somecode
However, Xilinx ISE doesn't synthesize 'rightof or 'succ. Is there any
way to overcome this? I don't want to copy the same code for each
state.
Thanx.
Neha
I have an FSM with 32 states. States 0, 1 and 31 are unique, and the
rest are basically doing the same thing.
...so I wrote the code using case statements like this:
case state is
when t0=>--somecode....
state<=t1;
when t1=>--somecode....
state<=t2;
when t2 to t30=>
state<=state_type'succ(state) --or state<=state_type'rightof(state)
--somecode
when t31=>
state<=t0;
--somecode
However, Xilinx ISE doesn't synthesize 'rightof or 'succ. Is there any
way to overcome this? I don't want to copy the same code for each
state.
Thanx.
Neha