


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, 5 pages Exam Two Solutions 4 March 2009
Problem 1 (3 parts, 24 points) Building Blocks
Part A (8 points) Consider the circuit below. Complete the truth table. Then state what logical function this circuit implements.
B Out
En
A B Out
0 0 0
1 0 1
0 1 1
1 1 0
This wacky circuit is a Odd Parity (XOR)
Part B (8 points) Consider four different building block definitions below. The symbolic value A is presented at its input. The control input and resulting out are shown in the truth table. Name the logical gate or gates that implement each definition.
A 0 0 A A¯ Z (^) o
A 1 A A¯ 0 A
Part C (8 points) Blocks from part B are used to create a new module below. The symbolic value
A is presented at its input. Complete the truth table and give its functional name.
IN O Out
C
IN C Out
A 0 Qo
A 1 A It’s a:
transparent
latch
4 problems, 5 pages Exam Two Solutions 4 March 2009
Problem 2 (3 parts, 28 points) Number Systems
Part A (10 points) Convert the following notations:
binary notation decimal notation 1010 1010. 128+32+8+2 = 170
0101 0101.1001 64+16+4+1+.5+.0625 = 85.
1111 1111.1111 255. octal notation hexadecimal notation 5755.7 (^) 1011 1110 1101.1110 = BED.E
33.33 (^) 0001 1011.0110 1100 = 1B.6C
Part B (12 points) For the 24 bit representations below, determine the most positive value and the step size (difference between sequential values). All answers should be expressed in decimal notation. Fractions (e.g., 3/16ths) may be used. Signed representations are two’s complement.
representation most positive value step size
unsigned integer (24 bits). (0 bits)
signed fixed-point (18 bits). (6 bits)
signed fixed-point (15 bits). (9 bits) 16K^ 1/ signed fixed-point (12 bits). (12 bits) 2K^ 1/4K
Part C (6 points) A 48 bit floating point representation has a 37 bit mantissa field, a 10 bit exponent field, and one sign bit.
4 problems, 5 pages Exam Two Solutions 4 March 2009
Problem 4 (3 parts, 24 points) “Register your knowledge”
Part A (8 points) Implement a 2 to 1 multiplexer using only pass gates and inverters. Label all inputs (IN 0 , IN 1 , S) and output (Out).
Out
In
S
In
Part B (10 points) Implement a register below using needed muxes, latches, pass gates, and inverters (all in icon form). Complete the behavior table at right. Recall that the CLK signal indicates a full Φ 1 Φ 2 cycle; so the output should be the value at the end of a cycle (with the given inputs).
In Out
In Out
En
Latch
In Out
En
Latch
WE RE
In Out S In
Part C (6 points) Assume the following signals are applied to your register. Draw the output signal Out. Draw a vertical line where In is sampled. Draw crosshatch where Out is unknown.
In WE RE Clk Out