Docsity

Final Exam - Digital System Design - 2000 | ECE 331, Exams of Digital Systems Design

Toggle sidebar
bg1
ECE 331
Final exam
May 16, 2000
Problem 1 (12 points)
Analyze the circuit shown in Fig. 1.
C
D
A
Q
C
D
B
Q
Z
X
CLK Fig. 1
a. Derive a state diagram implemented by this circuit.
b. What useful function does this sequential machine perform?
c. Check the circuit for possible hold time violations.
d. Determine the maximum clock frequency of the circuit.
Assume that all two-input gates have delay 10 ns, all three-input gates have delay 15 ns,
the delay of the D flip-flop is 10 ns, and its hold time and setup time are 10 ns and 5 ns,
respectively.
How will your answer change, if the clock does not reach the clock inputs of all flip-flops
at the same time, but rather arrives first at the clock input of the flip-flop A, and then 10
ns later at the clock input of the flip-flop B.
pf3

Partial preview of the text

Download Final Exam - Digital System Design - 2000 | ECE 331 and more Exams Digital Systems Design in PDF only on Docsity!

ECE 331

Final exam

May 16, 2000 Problem 1 (12 points)

Analyze the circuit shown in Fig. 1.

C

D A

Q

C

D B

Q

Z

X

CLK (^) Fig. 1

a. Derive a state diagram implemented by this circuit. b. What useful function does this sequential machine perform? c. Check the circuit for possible hold time violations. d. Determine the maximum clock frequency of the circuit. Assume that all two-input gates have delay 10 ns, all three-input gates have delay 15 ns, the delay of the D flip-flop is 10 ns, and its hold time and setup time are 10 ns and 5 ns, respectively.

How will your answer change, if the clock does not reach the clock inputs of all flip-flops at the same time, but rather arrives first at the clock input of the flip-flop A, and then 10 ns later at the clock input of the flip-flop B.

Problem 2 (8 points)

Write the structural VHDL model of an N-bit ripple-carry adder shown in Fig. 2. Using this model, describe a 96-bit adder composed of a 64-bit adder and a 32-bit adder connected serially, as shown in Fig. 3.

a 0 b 0

cin FA

s 0

a 1 b 1

c 1 FA

s 1

c 2

...

an-2 bn-

cn- FA

sn-

cn- FA

sn-

cout

an-1 bn-

Fig. 2

cout cin cin

32-bit adder (^) 64-bit adder

cout

a 64 b^ a 63 b 63 a 0 b 0

a 95 b 95 64

c^ cin out

s 95 s 64 s 63 s 0

... (^)... ......

Fig. 3

Problem 3 (6 points)

Design a serial two's complementer capable of complementing a series of 4-bit binary numbers. Each 4-bit binary number is presented to the circuit one bit at a time, starting from the least significant bit. A corresponding output bit appears at the output in the same clock cycle. The least significant bit of the next number appears at the input immediately after the most significant bit of the previous number.