Docsity

Exam Solutions for ECE 2030B Computer Engineering Fall 2008 - Problems 1 to 4, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030B 12:00pm Computer Engineering Fall 2008
4 problems, 4 pages Exam Two Solutions 20 October 2008
1
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 (In0, In1, S) and output (Out).
Out
In0
S
In1
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 (In0, In1, In2, In3, S0, S1) and output (Out)
In0 In0
Out
S
In1
In1
In2 In0
Out
S
In1
In3
In0
Out
S
In1
S0
Out
S1
pf3
pf4

Partial preview of the text

Download Exam Solutions for ECE 2030B Computer Engineering Fall 2008 - Problems 1 to 4 and more Exams Computer Science in PDF only on Docsity!

4 problems, 4 pages Exam Two Solutions 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).

Out

In

S

In

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)

In0 In Out S In1 In

In2 In Out S In3 In

In Out S

In

S^0

Out

S^1

4 problems, 4 pages Exam Two Solutions 20 October 2008

Problem 2 (3 parts, 28 points) Number Systems

Part A (10 points) Convert the following notations:

decimal notation binary notation 25.125 11001.

123.5 1111011.

250.1875 11111010. hexadecimal notation octal notation FDA.5 (^) 111 111 011 010.010 1 = 7732.

1BE.1 (^) 110 111 110.000 1 = 676.

Part B (12 points) For the 28 bit representations below, determine the most negative value, most positive value, and step size (difference between sequential values). All answers should be expressed in decimal notation. Fractions (e.g., 3/16ths) may be used. All signed representations are twoโ€™s complement.

representation most negative value most positive value step size unsigned integer (28 bits). (0 bits) 0 256M^1 signed fixed-point (20 bits). (8 bits) -512K^ +512K^ 1/ signed fixed-point (16 bits). (12 bits) -32K^ +32K^ 1/4K signed fixed-point (14 bits). (14 bits) -8K^ +8K^ 1/16K

Part C (6 points) A 28 bit single precision floating point representation has a 21 bit mantissa field, a six bit exponent field, and one sign bit. Express answers in decimal, not powers of two.

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

What is the smallest value that can be represented (closest to zero)? 1/4G

How many decimal significant figures are supported? 6

4 problems, 4 pages Exam Two Solutions 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 Out S

In

In WE RE Clk Out

A 0 0 โ†‘โ†“ Zo

A 1 0 โ†‘โ†“ Zo

A 0 1 โ†‘โ†“ Q o

A 1 1 โ†‘โ†“ A

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