



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to exam two for the ece 2030 computer engineering course in spring 2003. It covers various digital logic and arithmetic unit problems, including implementing digital gates using pass gates and inverters, determining most negative and most positive values for seven-bit representations, performing arithmetic operations using the rules of arithmetic, and simplifying expressions using karnaugh maps. Additionally, it includes converting octal values to hexadecimal notation.
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




4 problems, 5 pages Exam Two Solutions 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.
in out
in out
Part B (6 points) Implement a 2-to-1 mux with only pass gates and inverters.
in
out
in
in
in out
mux
Part C (6 points) Implement a two-input AND gate using only a 2-to-1 mux.
out
out
OUT
IN 0
S
2 to 1
IN 1
4 problems, 5 pages Exam Two Solutions 12 March 2003
Part D (6 points) Implement a two-input XOR gate using only a 2-to-1 mux and an inverter.
out
AB out OUT IN 0
S
2 to 1
IN 1
Part E (6 points) Implement a transparent latch using only a 2-to-1 mux and inverters.
in
out
en
en
in out
latch OUT
IN 0
S
2 to 1
IN^1
Part F (7 points) Implement a register with write and read enable using only a 2-to-1 mux, latches, pass gates, and inverters.
in out register we re p1 p
in
out
p1 p
we (^) re en
in out
latch
en
in out
latch OUT
IN 0
S
2 to 1
IN 1
4 problems, 5 pages Exam Two Solutions 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.
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 111101011 = 1EB
3162 11001110010 = 672
601.71 110000001.111001 = 181.E
4 problems, 5 pages Exam Two Solutions 12 March 2003
Problem 4 (2 part, 20 points) Arithmetic Unit
Part A (10 points) The adder below adds two four bit numbers A and B and produces a four bit result S. Add extra digital logic to support subtraction as well as addition. Label inputs X 3 , X 2 ,
X 1 , X 0 , Y 3 , Y 2 , Y 1 , Y 0 , ADD / SUB and outputs Z 3 , Z 2 , Z 1 , Z 0.
Cin
ADD/SUB
Part B (10 points) Now define the behavior for a two’s compliment overflow detection unit.
Assume the inputs are X 3 , Y 3 , Z 3 , and ADD / SUB. The output Error is 1 for overflow.
ADD / SUB = 0 ADD / SUB = 1
X 3 Y 3 Z 3 Error X 3 Y 3 Z 3 Error
0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 1
0 1 0 0 0 1 0 0
1 1 0 1 1 1 0 0
0 0 1 1 0 0 1 0
1 0 1 0 1 0 1 0
0 1 1 0 0 1 1 1
1 1 1 0 1 1 1 0