Docsity

Exam Solution for Computer Engineering 2030B, Fall 2007 - Problem Analysis and Design, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030B 12:00 noon Computer Engineering Fall 2007
4 problems, 4 pages Exam Two Solution 24 October 2007
1
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.
EN
In Out
Φ1
Φ2
WE
In
Out
TE
Out
CLR Φ1Φ2
In Out
En
Latch
In Out
En
Latch
I0
I1S
O
pf3
pf4

Partial preview of the text

Download Exam Solution for Computer Engineering 2030B, Fall 2007 - Problem Analysis and Design and more Exams Computer Science in PDF only on Docsity!

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.

EN

In Out

WE

In

Out

TE

Out

CLR Φ^1 Φ 2

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.

result 11.00 1000.00 1110.01 111.

unsigned error? yes^ yes^ yes^ no signed error? no^ no^ no^ yes

O 0

O 1

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.

I 3

I 2

I 1

I 0

O 1

O 0

I 3 > I 0 > I 2 > I 1

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.

IN 0

O 0

2 to 4

decoder

IN 1

O 1

O 2

O 3

A

B

A xor B

I 0 I 1 I 2 I 3 V O 1 O 0

0 0 0 0 0 X X

1 X X 0 1 0 0

X X X 1 1 1 1