Docsity

Exam Two for Computer Engineering Students in ECE 2030, Spring 2003, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 1:00pm Computer Engineering Spring 2003
4 problems, 6 pages Exam Two 12 March 2003
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
44 20 16 20 100
1
pf3
pf4
pf5

Partial preview of the text

Download Exam Two for Computer Engineering Students in ECE 2030, Spring 2003 and more Exams Computer Science in PDF only on Docsity!

4 problems, 6 pages Exam Two 12 March 2003

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, 6 pages Exam Two 12 March 2003

Problem 1 (7 parts, 44 points) “Waste not, mux not”

This problem will examine the design of a number of common digital blocks using only pass gates and inverters. After an object (e.g., 2-to-1 mux) has been implemented, it can be used, in icon form, for subsequent parts.

Part A (6 points) Begin by implementing a pass gate and an inverter in the light gray boxes below using only N and P type switches (N-FETs and P-FETs). The icons show signal names.

A B

C

C

in out

A B

C

C

in out

Part B (6 points) Implement a 2-to-1 mux with only pass gates and inverters.

in

out

in

S

S

in

in out

mux

Part C (6 points) Implement a two-input AND gate using only a 2-to-1 mux.

A

out

B

out

A

B

4 problems, 6 pages Exam Two 12 March 2003

Part G (7 points) Implement a toggle cell using only latches, an XOR gate, and an AND gate.

te out toggle clr p1 p

out

p1 p

clr

te

Problem 2 (2 parts, 20 points) “Lucky Sevens”

Part A (12 points) For the seven-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

signed integer

unsigned fixed-point

signed fixed-point

Part B (8 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 seven bit two’s complement fixed-point representation.

result

signed error?

4 problems, 6 pages Exam Two 12 March 2003

Problem 3 (2 parts, 16 points) Numbers and Karnaugh Maps

Part A (10 points) For the following behavior (in map format), derive a simplified products of sums expression using a Karnaugh Map. Circle and list the prime implicants, indicating which are essential. Then write the simplified POS expression.

X 0 1 1

X 0 X 1

X X 0 1

A

A

B B

C

C

C

D

D D

prime implicants

essential? yes no

simplified POS expression

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

octal notation hexadecimal notation

753

3162