



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 10 March 2010 Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck! Your Name ( please print ) ________________________________________________ 1 2 3 4 total 24 18 40 18 100
4 problems, 5 pages Exam Two 10 March 2010 Problem 1 (3 parts, 24 points) Decoding Decoders Part A (6 points) Define a 1 to 2 decoder by completing the behavior table. IN EN O0 O X 0 0 1 1 1 IN EN O O 1 to 2 decoder Part B (8 points) Implement a 1 to 2 decoder using basic gates. Assume only true (non- complemented) inputs are available. Label all inputs and outputs. Part C (10 points) Using only the three 1 to 2 decoders shown below, implement a 2 to 4 decoder with an enable. Label the decoder inputs (IN 1 , IN 0 , EN) and outputs (O0, O1, O2, O3). IN EN
1 to 2 decoder
1 to 2 decoder
1 to 2 decoder
4 problems, 5 pages Exam Two 10 March 2010 Problem 3 (4 parts, 40 points) Number Systems & Arithmetic Part A (10 points) Convert the following notations: binary notation decimal notation 1101 1011. 101 1100.
binary notation hexadecimal notation 1 0010 0101.1101 11 CB4.2B Part B (12 points) For the 22 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 (22 bits). (0 bits) signed fixed-point (18 bits). (4 bits) signed fixed-point (14 bits). (8 bits) signed fixed-point (11 bits). (11 bits) Part C (6 points) A 16 bit floating point representation has a 10 bit mantissa field, a 5 bit exponent field, and one sign bit.
Part D (12 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 five bit unsigned fixed-point and five bit two’s complement fixed-point representations.
result unsigned error? □ no □ yes □ no □ yes □ no □ yes □ no □ yes signed error? □ no □ yes □ no □ yes □ no □ yes □ no □ yes
4 problems, 5 pages Exam Two 10 March 2010 Problem 4 (3 parts, 18 points) "Does this register?" Part A (6 points) Express the behavior of the circuit below. Use standard symbols (0, 1, X, Z 0 , Q 0 , etc.). Then name the circuit. A B X Y
This circuit is a Part B (6 points) Implement a register below using only 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 (for the given inputs). Out In φ^1 φ^2
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. Φ^1 Φ^2 WE In Out In WE Clk Out Out