Construct a one-hot state assignment for the states in the reduced state table o
ID: 1834349 • Letter: C
Question
Construct a one-hot state assignment for the states in the reduced state table of part (a)
Explanation / Answer
The one-hot assignment uses one flip-flop for each state, so a state machine with N states requires N flip-flops. Exactly one flip-flop is set to 1 in each state. For example, a system with four states (TO, T1, T2, and T3) could use four flip-flops (Q0, Q1, Q2, and Q3) with the following state assignment: TO: Q0 Q1 Q2 Q3 = 1000, T1: 0100, T2: 0010, T3: 0001 The other 12 combinations are not used. in above case the state assignments are P: Q0 Q1 Q2 Q3 = 1000, Q: 0100, R: 0010, S: 0001