Docsity

Latch Using - Computer Engineering - Solved Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 1:00pm Computer Engineering Spring 2001
4 problems, 4 pages Exam Two Solutions 21 March 2001
1
Problem 1 (3 parts, 30 points) Numbers and Arithmetic
Part A (9 points) Convert some binary values (and powers of two) into decimal notation:
binary notation decimal notation
10100.101 16 + 4 + .5 + .125 = 20.625
100100110 256 + 32 + 4 + 2 = 294
236 64 Billion
Part B (9 points) Convert the following octal values into hexadecimal notation:
octal notation hexadecimal notation
654 110101100 = 1AC
77111 111111001001001 = 7E49
34.25 11100.010101 = 1C.54
Part C (12 points) For each problem below, (a) compute the operations using the rules of
addition, (b) indicate whether an error occurs assuming all numbers are expressed using a four
bit two’s complement representation, and (c) indicate whether an error occurs assuming all
numbers are expressed using a four bit unsigned representation.
0 1 0 1
+ 1 0 1 1
1 0 1 1
+ 1 1 0 0
1 1 0
+ 1 1 1
1 0 0 0
+ 1 0 1
addition
result 0 0 0 0 0 1 1 1 1 1 0 1 1 1 0 1
signed
error? no yes yes no
unsigned
error? yes yes no no
pf3
pf4

Partial preview of the text

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

4 problems, 4 pages Exam Two Solutions 21 March 2001

Problem 1 (3 parts, 30 points) Numbers and Arithmetic

Part A (9 points) Convert some binary values (and powers of two) into decimal notation:

binary notation decimal notation

10100.101 16 + 4 + .5 + .125 = 20.

100100110 256 + 32 + 4 + 2 = 294

236 64 Billion

Part B (9 points) Convert the following octal values into hexadecimal notation:

octal notation hexadecimal notation

654 110101100 = 1AC

77111 111111001001001 = 7E

34.25 11100.010101 = 1C.

Part C (12 points) For each problem below, (a) compute the operations using the rules of addition, (b) indicate whether an error occurs assuming all numbers are expressed using a four bit two’s complement representation, and (c) indicate whether an error occurs assuming all numbers are expressed using a four bit unsigned representation.

addition result

signed error?

no yes yes no

unsigned error?

yes yes no no

4 problems, 4 pages Exam Two Solutions 21 March 2001

Problem 2 (3 parts, 28 points) Art of the State Part A (10 points) Implement a transparent latch using only pass gates and inverters. Label the inputs In and En , and the output Out.

In Out

En

Part B (10 points) Implement a register with write enable and read enable using transparent latches, pass gates, and inverters. Use an icon for the transparent latches. Label the inputs In , WE, RE, ΦΦΦΦ 1 , (^) ΦΦΦΦ 2 and the output Out.

In Out

En

Latch

In Out

En

Latch In

Out

WE

Φ 1 Φ 2 RE

Part C (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 and RE = 1.

WE

In

Out

4 problems, 4 pages Exam Two Solutions 21 March 2001

Part C (10 points) Now use copies of your toggle cell (in icon form) to build a divide by three counter. This design should include an active high external count enable CE and an active high external clear CLR. Your design should clear if (A) the external clear CLR is high, or (B) the maximum output count is reached and the count enable is high. You do not need to draw in the clock signals.

O 0

O 1

Ext Clr

Ext CE TE Out Clr

TE Out Clr

Problem 4 (4 parts, 12 points) Multiple Choice

Consider four different 32-bit representations: (A) an unsigned integer representation, (B) a twos complement integer representation, (C) a twos complement fixed point representation with sixteen bits on each side of the fixed point, and (D) a floating-point representation with a 23 bit mantissa and an 8 bit exponent. For each quantity below, circle which representation (A, B, C, or D) most accurately represents the quantity (i.e., which representation can represent the value with the smallest error).

π (pi)

A B C D

(dollars Bill Gates lost in stock market last week) A B C D

(mass of Pluto the planet) A B C D

(mass of Pluto the Disney dog) A B C D