How it works
This project uses flip-flops to display the text TUAN9304 on a 7-segment display. The state table below describes the states, outputs, and next state logic:
| State |
q3 |
q2 |
q1 |
q0 |
out7 |
out6 |
out5 |
out4 |
out3 |
out2 |
out1 |
out0 |
q3' |
q2' |
q1' |
q0' |
Next |
Char |
| 0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
Blank |
| 1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
2 |
All |
| 2 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
3 |
Blank |
| 3 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
4 |
T |
| 4 |
0 |
1 |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
5 |
U |
| 5 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
6 |
A |
| 6 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
7 |
N |
| 7 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
8 |
9 |
| 8 |
1 |
0 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
9 |
3 |
| 9 |
1 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
10 |
0 |
| 10 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
11 |
4 |
| 11 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
12 |
Blank |
| 12 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
2 |
. |
How to test
- Reset: Press the reset button to initialize the state machine to state 0 (0000).
- Observation: Monitor the 7-segment display output. You should observe the sequence "Tuan9304" repeating or cycling.
- Verification: Check that each character is formed correctly according to standard 7-segment encoding (e.g., 'T' might be represented by a specific combination of segments, often simplified or stylized for 7-segment displays).