Exam
ID: 1522
1. Which of the following best describes the difference between combinational logic circuits and sequential logic circuits?
2. What is the period of a 1.25 GHz clock? (Hint: the following answers are listed in decreasing numerical order from A to E.)
A. 800 milliseconds
3. What is the frequency of a clock with a period of 125 nanoseconds? (Hint: the following answers are listed in increasing numerical order from A to E.)
A. 8 Hz
4. What determines the maximum clock rate of a CPU?
A. The maximum number of propagation delays in the datapath.
5. Using full adders as building blocks, draw a four-bit parallel adder/subtracter with condition code logic for carry, overflow, negative, and zero. Label all inputs and outputs. Do not draw the gates for the full adders. See Question 6 for the labels you should use for inputs and outputs. Answer on the back of this page.
6. Complete the following diagram for the adder/subtracter you designed in Question 5. For add/sub, 0 means add. C, V, N, and Z are the condition code bits Carry, oVerflow, Negative, and Zero. You are to fill in zeros and ones for the 8 outputs on the right given the nine input values on the left. Answer here:
A3 |
A2 |
A1 |
A0 |
B3 |
B2 |
B1 |
B0 |
add/sub |
C |
V |
N |
Z |
S3 |
S2 |
S1 |
S0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
|
|
|
|
|
|
|
|
0 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
|
|
|
|
|
|
|
|
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
|
|
|
|
|
|
|
0 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
1 |
|
|
|
|
|
|
|
|
7. Give the equation for C5 using carry-lookahead logic. Write your answer here:
8. Draw the gates to implement both a D Latch and a D flip-flop. Be sure to label all inputs and outputs for both. Answer on the back of page 1.
9. Complete the following timing diagram for the latch and flip-flop you drew in Question 8: The idea is that Clock and D are the same for both the latch and the flip-flop and you are to show the outputs of both devices, which are both initially 0. The dashed lines are to help you line things up. Answer here.
Qlatch
Qflip-flop
10. Design a circuit which has two inputs named count and load, and an output named zero. The circuit can be in any of sixteen different states; there is a 4-bit state register named S. When load is one the circuit loads a value into S from an external 4-bit source called Value. When count is 1, S is decremented by one The zero output is 0 (false) except when S holds the binary number 00002. You may assume that count and load will never be true at the same time. When neither count nor load is true, the circuit is to do nothing. Answer on the back of this page.
11. Show the binary values of the M, C, A, and Q registers as a 4-bit serial multiplier computes the product of 0110 ´ 1010 using unsigned arithmetic. Indicate what operation is being performed at each step of the multiplication. Answer below.