C7 · Problem set 4
Problem set 4: building blocks and arithmetic
These problems use lessons 16 to 21: decoders, encoders, multiplexers and comparators, arithmetic circuits and the ALU, propagation delay and glitches, shifters, multipliers and number formats, and division.
Check
A decoder has 6 inputs; it's to be built from 2-to-4 decoders with enables.
(a)
How many outputs does it have?
(b)
How many 2:4 decoders does a tree of them need?
Check
A multiplexer selects one of 64 inputs.
(a)
How many select lines does it need?
(b)
How many 2:1 multiplexers make it as a tree?
Check
A 4-input priority encoder has highest. Write its top output bit .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Write A < B for 2-bit numbers and .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Compute 31 − 40 in 8-bit two's complement and give the 8-bit result.
Check
Two 8-bit two's-complement numbers, 60 and 50, are added.
(a)
What is the true sum?
(b)
What value does the 8-bit result represent?
Check
An adder's ripple carry takes 2 gate delays per bit; a lookahead design reaches any carry in 4 delays per lookahead level, with 4-bit groups.
(a)
What is the ripple adder's worst carry delay for 32 bits?
(b)
How many delays for the lookahead adder, with levels?
Check
A critical path passes through 2 AND gates (35 ps each), 1 XOR gates (40 ps each) and 2 OR gates (25 ps each).
(a)
What is its propagation delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
Ignoring the flip-flops, what is the highest rate at which new results can be produced?
Check
An 8 × 8 array multiplier.
(a)
How many product bits?
(b)
How many AND gates for the partial products?
Check
Arithmetically shift the 8-bit two's-complement number −50 right by 2 places. Give the 8-bit result.
Check
A fixed-point format has 3 fraction bits.
(a)
What value does the stored integer 100 represent?
(b)
What is its resolution?
Check
An IEEE 754 single has sign 0, exponent field 127 and fraction 0 (as a binary fraction's value).
(a)
What is its unbiased exponent?
(b)
What value does it represent?
Check
A 4-input priority encoder (I3 highest) outputs . Write .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A float has sign 0, biased exponent 126 and fraction 0.625.
(a)
What value does it hold?
(b)
What's its unbiased exponent?
Check
An n-bit carry-select adder with n = 16 uses 4-bit blocks (2 gate delays per bit within a block, 2 per block for the selects).
(a)
What's its delay in gate delays?
(b)
And a ripple adder's?
Check
A 4-bit ALU subtracts B = 0001 from A = 0101 by adding and a carry-in of 1. What result does it produce?
Check
A restoring divider computes 150 ÷ 6, one quotient bit per step. What quotient does it produce?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
14 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.