


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



4 problems, 4 pages Exam Two Solution 24 October 2007
Problem 1 (4 parts, 34 points) An unusual state of affairs
Part A (8 points) Implement a transparent latch using only inverters and pass gates. Label the inputs In and En , and output Out.
Part B (8 points) Assume the following signals are applied to your register. Draw the output signal Out. Draw a vertical line where In is sampled. Assume Out starts at zero.
Part C (8 points) Implement a toggle cell using only transparent latches, an inverter, a two to one mux, and a 2-input AND gate. Use an icon for the transparent latches. Label the inputs TE , Clr (^) , Φ 1 , Φ 2 and the output Out.
In Out
Out
In Out
En
Latch
In Out
En
Latch
I 0
I 1 S
O
4 problems, 4 pages Exam Two Solution 24 October 2007
Part D (10 points) Connect the toggle cells below to build a divide by 4 counter. Be sure to include an external count enable (CE) and an external clear (CLR). Label outputs O 0 , and O 1.
Problem 2 (1 part, 16 points) Arithmetic
Part A (16 points) For each problem below, compute the operations using the rules of arithmetic, and indicate whether an overflow occurs assuming all numbers are expressed using a six bit unsigned fixed-point and six bit two’s complement fixed-point representations.
unsigned error? yes^ yes^ yes^ no signed error? no^ no^ no^ yes
Ext Clr
Ext CE TE Out Clr
TE Out Clr
4 problems, 4 pages Exam Two Solution 24 October 2007
Problem 4 (3 parts, 22 points) Building Blocks
Part A (7 points) Consider the following circuit below. Determine its input priority.
Part B (7 points) Derive a simplified expression for O 1.
O 1 = I^ 3 + I 0 ⋅ I 2
Part C (8 points) Implement a 2-input XOR using a 2-to-4 decoder and a single OR gate. Label the inputs A and B , and output A XOR B.