Documente Academic
Documente Profesional
Documente Cultură
+BC
ii. = A +A
B +A
+A +B
iii. = ABC +AB +ABE +AC +ACE + (A + +E
) +B
+B
E +B
+C
9. Consider the block diagram below
7 8 9
4 5 6
1 2 3
0
CODE DESIMAL
ENCODER 10 to 4
9
0
4
1
2
6
7
8
5
3
DECODER 4 to 7
C
A
B
D
0
4
1
2
6
7
5
3
a
b
c
d
e
f
g
Design a circuit that can display the number on the keyboard into the 7segment display.
For example, when the number 0 on the keyboard is pressed, the display 7segment
displays the number 0. When number 1 on the keyboard is pressed, the display 7segment
will show the number 1 and so on.
10. In the block diagram below is shown a network containing several combinational logic
devices. Complete the following truth tables. Assumes that F input on shifter mode equal to
zero
A B C
out
S
3
S
2
S
1
S
0
0 0
0 1
1 0
1 1
B
A
0
1
2-to-4
DEC
0
1
4-bit
PARALLEL
ADDER
S0
4-bit
SHIFTER
S
0
S1
4-to-1
MUX
S1
S
2
S3
Y
Binary-to-Gray
CONVERTER
0
1
2
3
0
1
2
3
0
1
2
3
0 1 2 3
0
1
C
in
C
out
Cout
0
1
2
3
R
D
A
1
A
0
Y0 Y
1 Y2
Y3
I0
I1 I2
I3
11. In the block diagram below is shown a network containing several combinational logic
devices. Complete the following truth tables.
A B P
3
P
2
P
1
P
0
0 0
0 1
1 0
1 1
1-to-2
DEC-0
1-to-2
DEC-1
1-to-2
DEC-2
Gray-to-84-2-1
CONVERTER
16-to-1
MUX
B
A
C0
C1
C2
C3
S0
S1
S2
S3
I14 I12 I1 I0
Y2
Y3
2-bit
PARALLEL
ADDER
EN
B
EN
A
A0
Cin
A1
B0
B1
2 x 2 bit
MULTIPLIER
S0
S1
Y
SHIFTER
P3 P2 P1 P0
A0
A1
B0
B1
R
D
F
A1
A0
I3 I2 I1 I0
Y3 Y2 Y1 Y0
A
B
A
Y0
Y1
Y0
Y1
0(H)
I15 . . . I13
. . .
Cout
2 x 2 bit
DIVIDER
A0
A1
A2
A3
dividend
B0
B1
B2
B3
divisor
P3 P2 P1 P0
12. To make part of the ALU of a processor that can implement the required circuit Arithmetic
and Logic functions in accordance with the choice of the functions assigned to the circuit as
shown in the table below
Choice
Functions Functions
S
2
S
1
S
0
0 0 0 A + B (2s complement)
0 0 1 A B (2s complement)
0 1 0 A x B (Multiplier)
0 1 1 A and B
1 0 0 A or B
1 0 1 A
1 1 0 A
1 1 1 B
Sketch a logic circuit / block diagram to represent the ALU function above!. Assume that the
C
out
/B
out
of the sum function is considered as an overflow bit