Docsity

Floating Point - Computer Engineering - Solved Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030A 10:00am Computer Engineering Fall 2009
4 problems, 5 pages Exam Two Solutions 4 March 2009
1
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.
A
BOut
I0
I1
I2
I3
O
S1S0
O3
O2
O1
O0
I1
I0
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.
AIN
C
OIn C 1 2 3 4
A 0 0 A A¯ Zo
A 1 A A¯ 0 A
1 AND 2 XOR 3NOR 4 Pass & NOT
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.
3Out
IN
C
O
IN
C
OOut
IN
C
O
IN
C
O
3
1
1
IN
C
IN
C
O
2
IN C Out
A 0 Qo
A 1 A
It’s a:
transparent
latch
pf3
pf4

Partial preview of the text

Download Floating Point - Computer Engineering - Solved Exam and more Exams Computer Science in PDF only on Docsity!

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.

A

B Out

I 0

I 1

I 2

I 3

O

S 1 S 0

O 3

O 2

O 1

O 0

I 1

I 0

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 IN

C

O

In C 1 2 3

A 0 0 A A¯ Z (^) o

A 1 A A¯ 0 A

1 AND^2 XOR^3 NOR^4 Pass & NOT

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^3 Out

C

O

IN

C

IN O Out

C

O

IN

C

O

IN

C

IN

C

2 O

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)

16M 1

signed fixed-point (18 bits). (6 bits)

128K 1/

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.

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

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

How many decimal significant figures are supported? 11

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.

WE

In

Out

In WE RE Clk Out

A 0 0 ↑↓ Z o

A 1 0 ↑↓ Z o

A 0 1 ↑↓ Qo

A 1 1 ↑↓ A