a simple 8bit cpu with logic-circuit
A | B | S | C |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 |
I | C | O |
---|---|---|
0 | 1 | 1 |
0 | 0 | 0 |
1 | 0 | 1 |
1 | 1 | 0 |
8
00001000
-8
11110111 反码
11111000 补码
C0 | Cn | O |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 0 |
1 | 1 | 0 |
R | S | Q | Q' |
---|---|---|---|
0 | 0 | Q | Q' |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 1 | 0 | 0 |
En | S | Q |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
En | S | Q |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 1 | 1 |
1 | 0 | 1 |
set data then open En -> On
reset data then reset En then open En -> Off
A2 | A1 | A0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | |||||||
0 | 0 | 1 | 1 | |||||||
0 | 1 | 0 | 1 | |||||||
0 | 1 | 1 | 1 | |||||||
1 | 0 | 0 | 1 | |||||||
1 | 0 | 1 | 1 | |||||||
1 | 1 | 0 | 1 | |||||||
1 | 1 | 1 | 1 |