Docsity

Exam Two in Computer Engineering, Fall 2008, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030B 12:00pm Computer Engineering Fall 2008
4 problems, 5 pages Exam Two 20 October 2008
1
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
22 28 16 34 100
pf3
pf4
pf5

Partial preview of the text

Download Exam Two in Computer Engineering, Fall 2008 and more Exams Computer Science in PDF only on Docsity!

4 problems, 5 pages Exam Two 20 October 2008

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

4 problems, 5 pages Exam Two 20 October 2008

Problem 1 (3 parts, 22 points) Pass Gate Fun

Part A (6 points) For the pass gate symbol shown on the left below, draw its implementation on the right. Be sure that the named terminals (A, B, C, and D) on the right correspond to the icon terminals on the left.

A

B

C

D

A

B

C

D

Part B (8 points) Implement a 2 to 1 multiplexer using only pass gates and inverters. Label all inputs (In 0 , In1 , S) and output (Out).

Part C (8 points) Using the 2 to 1 mux implemented in part B (in icon form), implement a 4 to 1 mux. Label all inputs (In 0 , In 1 , In2 , In3 , S 0 , S 1 ) and output (Out)

4 problems, 5 pages Exam Two 20 October 2008

Problem 3 (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 five bit unsigned fixed-point and five bit two’s complement fixed-point representations.

result

unsigned error? signed error?

Problem 4 (4 parts, 34 points) State of the Union

Part A (7 points) Implement an RS latch with active high inputs, R and S. Use only basic gates (AND, OR, NAND, NOR, and NOT). Label the inputs and output. Also complete the behavior

table. Note -Out means Out.

R S Out -Out

Part B (7 points) Expand the RS latch to a transparent latch and complete the truth table. Use only basic gates (AND, OR, NAND, NOR, and NOT). Label the inputs and output. Also complete the behavior table.

In En Out -Out

A 0

A 1

R

S

Out

Out

Out

R Out

S

RS latch

O

O

En

In

4 problems, 5 pages Exam Two 20 October 2008

Part C (12 points) Build a register using two transparent latches plus a 2to1 mux (draw the labeled icon), a pass gate, and an inverter. Again, complete the behavior table. 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 WE RE Clk Out

A 0 0 ↑↓

A 1 0 ↑↓

A 0 1 ↑↓

A 1 1 ↑↓

Part D (8 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.

WE

In

Out