Problem 2
(1 Point)
Problem 3
(1 Point)
Problem 4
(1 Point)
Problem 5
(1 Point)
a)
b)
c)
d)
e)
a)
b)
c)
d)
e)
a)
b)
c)
d)
e)
a)
b)
c)
d)
e)
a)
b)
c)
d)
e)
The computer will add two operands, which are (0010) 2 and (0011) 2
The computer will add two operands, which are (1010) 2 and (1011) 2
The computer will add two operands, which are (0010) 2 and (1101) 2
The computer will add two operands, which are (1110) 2 and (0011) 2
The computer will add two operands, which are (1110) 2 and (1101) 2
(A+B+C) (A+B+C)
(A+B+C)+(A+B+C)
(A B C) (A B C)
(A B C) + (A B C)
A B C
F3 (A,B,C,D) = ( 2, 4 )
F3 (A,B,C,D) = ( 0, 1, 2, 3, 4 )
F3 (A,B,C,D) = ( 0, 1, 2, 3, 4, 8 )
F3 (A,B,C,D) = ( 0, 1, 2, 3, 4, 8, 15 )
F3 (A,B,C,D) = ( 5, 6, 7, 9, 10, 11, 12, 13, 14 )
3 NAND gates
4 NAND gates
4 NAND and 1 NOR gates
4 NAND and 2 NOR gates
5 NAND gates
Problem 6
(1 Point)
Problem 7
(1 Point)
1
x
1
x
x
1
x
x
x
x
x
The shown circuit is used to perform arithmetic functions on a 4-bit operand A, which is
represented in 2s complement system, i.e. A can be positive or negative.
A 1 if C 0
a) F
A 1 if C 1
A3
A2
A1
A0
A 1 if C 0
b) F
A 1 if C 1
if C 0
A
c) F
A 1 if C 1
A 1 if C 0
d) F
if C 1
A
FA
FA
FA
FA
A 1 if C 0
e) F
A 2 if C 1
F3
F2
F1
F0
Problem 8
(1 Point)
To implement the Boolean function F = A B C we can use a 3-to-8 decoder and connect:
Problem 9
(1 Point)
a)
b)
c)
d)
e)
a)
b)
c)
d)
e)
1 odd parity generator and 1 even parity checker, withoug adding any more wires.
1 odd parity generator and 1 odd parity checker, without adding any more wires.
1 odd parity generator and 1 even parity checker using 1 extra wire.
1 odd parity generator and 1 odd parity checker using 1 extra wire.
8 odd parity generators and 8 odd parity checkers using 8 extra wires.
X
Y
Z
Problem 11 The correct state diagram for the shown circuit is:
(1 Point) a)
c)
0
1
0
1
b)
d)
X
Clk
SET
CLR
Problem 12 Two T Flip-Flops, A and B, are used to implement the shown state diagram. To go from state
(1 Point) AB = 01 to AB = 11 we need:
a)
b)
c)
d)
e)
TA = 0, TB = 0
TA = 0, TB = 1
TA = 1, TB = 0
TA = 1, TB = 1
TA = 1, TB = x
00
(x is dont care)
01
11
CLK
D0 Q0
D1 Q1
D2 Q2
D3 Q3
S1 S0
1
Solution Key
Problem Answer
1(b)
2(e)
3(d)
4(d)
5(b)
6(a)
7(c)
8(b)
9(d)
10(d)
11(a)
12(c)
13(a)
14(b)
15(e)