Docsity

Decoder Inputs - Computer Engineering - Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 A 10:00am Computer Engineering Spring 2010
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
1
pf3
pf4
pf5

Partial preview of the text

Download Decoder Inputs - Computer Engineering - Exam and more Exams Computer Science in PDF only on Docsity!

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

O

O

1 to 2 decoder

IN

EN

O

O

1 to 2 decoder

IN

EN

O

O

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.

What is the largest value that can be represented (closest to infinity)? 2 _________

What is the smallest value that can be represented (closest to zero)? 2 _________

How many decimal significant figures are supported? _________

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

WE

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

A 0 ↑↓

A 1 ↑↓