G
guille
Guest
Hello all,
I have a FSM with 6 states: IDLE, and S0-S5. Transitions are
synchronized with the system clock, but next state might be determined
by signals which are asynchronous to that clock.
The FSM is normally at state IDLE. If certain signals are active, it
will go from IDLE to S0, then go through some intermediate states, and
finally back to IDLE. Here's a list of possible transitions:
Current state Possible next states
------------- --------------------
IDLE IDLE, S0
S0 S1
S1 S2, IDLE
S2 S3, IDLE
S3 S4, IDLE
S4 S4, S5, IDLE
S5 IDLE
I would like to use Gray encoding for this FSM but I'm not sure how it
should be done. Using Gray encoding is straightforward for things like
counters and such where there's only one possible next state for each
current state. However, is it possible in a case like this?
Thanks,
Guillermo Rodriguez
I have a FSM with 6 states: IDLE, and S0-S5. Transitions are
synchronized with the system clock, but next state might be determined
by signals which are asynchronous to that clock.
The FSM is normally at state IDLE. If certain signals are active, it
will go from IDLE to S0, then go through some intermediate states, and
finally back to IDLE. Here's a list of possible transitions:
Current state Possible next states
------------- --------------------
IDLE IDLE, S0
S0 S1
S1 S2, IDLE
S2 S3, IDLE
S3 S4, IDLE
S4 S4, S5, IDLE
S5 IDLE
I would like to use Gray encoding for this FSM but I'm not sure how it
should be done. Using Gray encoding is straightforward for things like
counters and such where there's only one possible next state for each
current state. However, is it possible in a case like this?
Thanks,
Guillermo Rodriguez