Professional Documents
Culture Documents
EEE 248 CNG 232: Logic
EEE 248 CNG 232: Logic
&
COMPUTER ENGINEERING
FALL 2020
HW2
Number of Questions: 4
Student Number:
Full Name:
CLR
K Q
SET B
J Q
x
CLR
K Q
SET C
J Q
CLR
K Q
CLK
b. (30 pts.) The state diagram of a synchronous sequential circuit is shown below.
00/0 1
0
0
1
11/1 01/1
1
0
0
10/0
A
B
S ET
D Q Qo
CLK
C LR
Q
1
CLK
0
1
A
0
1
B
0
1
Q0
0
Question 4 (20 pts.): The data path is given for a 4-bit multiplier. It consists of a 4-bit adder,
a 4-bit register, and a 9-bit shift register. The latter shifts right when its Sh input is
asserted (assume that 0's are entered at the left for this operation). A new value is loaded
into the high-order 5 bits of the shift register when Ld is asserted. The same 5 bits are
zeroed when Cl is asserted These signals are synchronous. Design the control for a
sequential 4-bit multiplier.
4-bit
Multiplier
Sh
M
Ld
Cl
Shift
4-bit right
Multiplicand
Control S
Unit
4
Sh
Ld
Cl
Carry Out
+
a. (10 pts.) Sketch a complete state diagram for the operation of the Control Unit.
b. (10 pts.) Sketch a logic implementation of the Control Unit using D-type flip-flops
and logic gates of your choice using one-hot state assignment. You do not have to
show the transition/state tables.