




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





5 problems Exam Two October 29, 1999
Name: ____________________________________
Student ID# ________________________________
This exam is closed notes, closed book, and CALCULATORS ARE NOT PERMITTED. Show all work and place answers in the space provided. If more work space is needed, please use the back of the test sheet and make a note of this next to the problem number. Partial credit will only be given to work that is presented in a clear and structured manner.
Problem Number (Total Points) Points Awarded Problem #1 (15pts) Problem #2 (15pts) Problem #3 (20pts) Problem #4 (20pts) Problem #5 (30pts)
Total Points: ________________
5 problems Exam Two October 29, 1999
Problem 1 (15points)
a) (5 points) Add the following 5-bit 2’s complement numbers and indicate if the addition operation produces and out of range overflow (remember you have only 5 bits to represent the result).
b) (5points) Add the following 5-bit unsigned binary numbers and indicate if the addition operation produces and out of range overflow.
c) (5 points) Convert the following binary integers into hexadecimal.
01011
00111
11111
01111
11111
10111
01011
10111
01011
00111
11111
01111
11111
10111
01011
10111
5 problems Exam Two October 29, 1999
(c) (5 points) Write the output on the below 2-to-4 decoder with an active low enable that corresponds to the logic values next to the inputs.
E
A 0
A 1
00
01
10
11
1
0
0
5 problems Exam Two October 29, 1999
Problem 3 (20 points)
(a) (10 points) Implement the following truth table using a 3x8 decoder and OR gates.
Inputs Output A B C Out 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0
(b) (10 points) Implement the same truth table using a 4x1 multiplexer.
0
2
1
3 4
6
5
7 8
4x1 MUX
5 problems Exam Two October 29, 1999
Problem 5 (30 points):
(a) (10 points)In class we discussed the implementation of a D-latch using logic gates. Draw an implementation of a D-latch with logic gates.
(b) (10 points) Complete the timing diagram for the D-Latch. Assume that the time delay of the D-latch is approximately 5ns.
D
C
Q
Q
D
C
Q
Assume that Q is initially low
0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170
Time [ns]
Q
5 problems Exam Two October 29, 1999
(c) (10 points) Implement this D-latch using transmission gates and inverters only