Assuming a simple binary state variable allocation can be made and that any unused states can be treated as don’t cares. How would I Design a corresponding transition table for this system including flip-flop (D- FF) inputs and system inputs/outputs. (I am unsure why the table looks so weird outside of the editor its my first time using this). Here is the State table:
State | Clock | A | B | C | R1 | Y1 | G1 | R2 | Y2 | G2 | Output |
---|---|---|---|---|---|---|---|---|---|---|---|
S0 | 5s | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | S1 |
S1 | 6s | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | S2 |
S2 | 80s | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | S3 |
S3 | 6s | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | S4 |
S4 | 5s | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | S5 |
S5 | 6s | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | S6 |
S6 | 80s | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | S7 |
S7 | 6s | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | S0 |
I have tried this 3 times and got it wrong three times any help would be greatly appreciated.
My attempt:
State | D0 | D1 | C0 | C1 | R1 | Y1 | G1 | R2 | Y2 | G2 |
---|---|---|---|---|---|---|---|---|---|---|
S0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
S1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
S2 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |
S3 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 |
S4 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
S5 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 |
S6 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
S7 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 |
(D0 and D1) represent the binary state variable allocation. (C0 and C1) represent the system inputs/outputs.