



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!




4 problems, 6 pages Exam Two 7 May 1999
Name (print) _____________________________________________________
1 2 3 4 total
4 problems, 6 pages Exam Two 7 May 1999
Problem 1 (3 parts, 28 points) Art of the State
Part A (8 points) Implement a transparent latch using only five two-input NAND gates. Label the inputs In and En , and the output Out.
Part B (10 points) Implement 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.
Part C (10 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.
Φ 1
Φ 2
WE
In
Out
4 problems, 6 pages Exam Two 7 May 1999
Problem 3 (3 parts, 26 points) Number Stuff
Part A (8 points) Convert some decimal values into binary notation:
decimal notation binary notation
fortnight (14)
123
Bill Gate’s worth (approximately $128 billion) 2 raised to the power
Part B (8 points) Convert the following hexadecimal values into octal notation:
hexadecimal notation octal notation
2BE
100
2030
AD.BC
Part C (10 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 six bit two’s complement representation, and (c) indicate whether an error occurs assuming all numbers are expressed using a six bit unsigned representation.
addition result signed error? unsigned error?
4 problems, 6 pages Exam Two 7 May 1999
Problem 4 (3 parts, 26 points) The Big Unit
Part A (8 points) Complete the truth table below for a full subtractor.
A B Borrowin Difference Borrowout
0 0 0
1 0 0
0 1 0
1 1 0
0 0 1
1 0 1
0 1 1
1 1 1
Part B (10 points) Implement the full subtractor using only NAND, XOR, and inverter gates. Label inputs A , B , and Borrowin. Label outputs Difference and Borrowout.