


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, 4 pages Exam Two Solutions 27 October 2010
Problem 1 (4 parts, 40 points) Safety in Numbers
Part A (10 points) Convert the following notations:
binary notation decimal notation
binary notation hexadecimal notation
Part B (12 points) For the 28 bit representations below, determine the most positive value and the
step size (difference between sequential values). All answers should be expressed in decimal
notation. Fractions (e.g., 3/16ths) may be used. Signed representations are two’s complement.
representation most positive value step size
unsigned fixed-point
(26 bits). (2 bits)
signed integer
(28 bits). (0 bits)
signed fixed-point
(21 bits). (7 bits)
signed fixed-point
(14 bits). (14 bits)
Part C (6 points) A 40 bit floating point representation has a 30 bit mantissa field, a 9 bit
exponent field, and one sign bit.
What is the largest value that can be represented (closest to infinity)?
255
What is the smallest value that can be represented (closest to zero)?
How many decimal significant figures are supported?
Part D (12 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 five bit
unsigned fixed-point and five bit two’s complement fixed-point representations.
result
unsigned error? □ no ■ yes ■ no □ yes □ no ■ yes ■ no □ yes
signed error? ■ no □ yes □ no ■ yes ■ no □ yes □ no ■ yes
4 problems, 4 pages Exam Two Solutions 27 October 2010
Problem 2 (3 parts, 18 points) State Representatives
Part A (8 points) Implement a transparent latch using only basics gates (AND, OR, NAND,
NOR, and NOT). Also complete the behavior table below.
0
0
Part B (4 points) Consider a register with a selectable write enable (WE) and read enable (RE). It
is implemented with transparent latches, a 2to1 mux, and a pass gate. Describe its behavior by
completing the output values. Also indicate when a write and/or a read is being performed.
Register
IN OUT
WE RE
φ
1
φ
2
IN WE RE CLK OUT write? read?
0
0
0
Part C (6 points) Assume the following signals are applied to a register. Draw the output signal
Out. Draw a vertical line where In is sampled. Draw crosshatch where Out is unknown.
1
2
4 problems, 4 pages Exam Two Solutions 27 October 2010
Part C (10 points) Build a stopwatch that counts seconds and minutes using divide by N counters
drawn below. Be sure to fill in the needed divider for seconds, tens of seconds, and minutes.
Use any basic gates you require. Assume a one hertz clock is already connected.
Out
Max
Count
Divide by 6
Out
Max
Count
Divide by 10
Out
Max
Count
Divide by 10
Problem 4 (1 parts, 12 points) Minimal Packaging
Implement a 4to1 multiplexer using only pass gates and inverters. Label all inputs and outputs.