hello all, I have to design a state machine that transitions based on two inputs: w2 and w1. The states look like this:
0
1 2
3
if w2w1 = 10, state transitions clockwise (0, 2, 3, 1, 0, 2...) if w2w1 = 01, it's counterclockwise (0, 1, 3, 2, 0, 1...). if it's 00, then it remains where it is, and if it's 11, then it jumps across (0, 3, 0, 3) or (1, 2, 1, 2) depending on where it is at that point.
I've set up the table like this:
State 00 01 10 11
0 0 1 2 3
1 1 3 0 2
2 2 0 3 1
3 3 2 1 0
first column is present state, next columns are the next state depending on inputs w2w1. finally, if state is odd (1, 3) the final output of circuit (EW) is 10, otherwise output is 01.
i'm a little lost as to what to do next! some hints would be appreciated as I've never done this type of circuit before.
Thanks!
-SelArom
2006-11-26
17:17:37
·
3 answers
·
asked by
SelArom
1
in
Engineering