Binary-coded
decimal value
b
b
b
3
2
1
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
The positive logic:
Binary-coded
decimal value
b
b
b
3
2
1
0
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
The latch:
Positive logic
Latch
1
The setting value of the parameter n:
Number of
seven-segment displays
Output
(Binary-coded
decimal code)
Latch
n
'+': Positive logic
'-': Negative logic
Output
(Binary-coded
decimal code)
b
8
4
2
0
1
0
0
0
0
0
0
1
1
0
0
1
0
0
1
0
1
0
1
0
0
0
1
1
1
0
1
1
0
1
0
0
1
1
0
0
Output
(Binary-coded
decimal code)
b
8
4
2
0
0
1
1
1
1
1
1
1
0
1
1
0
1
1
1
0
0
1
0
1
1
1
0
1
0
1
0
0
1
1
0
0
0
0
1
1
1
0
1
1
Signal
0
One
+
+
-
0
1
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Signal
1
A
B
C
1
1
1
1
0
1
1
0
1
1
1
0
0
1
0
1
1
1
0
1
0
1
0
0
1
1
0
0
0
0
1
1
1
0
1
1
Signal
1
A
B
C
1
0
0
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
1
0
1
0
0
1
1
1
0
0
1
0
Negative logic
Latch
Signal
0
-
+
+
-
+
-
2
3
4
5
D
0
1
0
1
0
1
0
1
0
D
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
Two
-
+
-
6
7
6 - 3 8 9