C723 of 57
0 XP
  1. Hook
  2. Problems

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 I3 highest. Write its top output bit Y1.

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 A1A0 and B1B0.

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 ⌈log4⁡n⌉ 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?

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.