C754 of 57
0 XP
  1. Hook
  2. Problems

C7 · Problem set 11

Problem set 11: memories, power, Verilog and arithmetic

These problems use lessons 44 to 53: memories, memory arrays and FPGAs, low-power design, reading and writing Verilog, and the logic and arithmetic labs.

Check

An 8 GiB memory has 16-bit words.

(a)

How many address lines?

(b)

How many low address bits does a byte address add?

Check

A DRAM refreshes 8192 rows every 32 ms.

(a)

How often must it refresh a row?

Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.

(b)

How many row refreshes per second?

Check

A 128K × 32 memory is built from 64K × 16 chips.

(a)

How many chips?

(b)

How many chip-select outputs does the decoder need?

Check

A 6-input, 1-output function is stored in a ROM.

(a)

How many bits?

(b)

How many 4-input LUTs would an n-input AND alone need?

Check

A 1 W block spends 25% in its clocked registers, gated off 85% of the time.

(a)

How much does clock gating save?

Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.

(b)

What does it draw now?

Check

Logic designed for 1.0 V is run at 0.75 V with Vt = 0.25 V.

(a)

What fraction of its speed remains?

(b)

What fraction of its power, at that speed?

Check

Waking a block costs 2 µJ; it leaks 20 mW awake and 3 mW asleep.

(a)

What's the break-even sleep time?

Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.

(b)

How much energy does a 1 ms sleep save, net?

Check

always @(posedge clk) c <= c + 1; with an N = 16-bit c runs at 25 MHz.

(a)

How many flip-flops does it build?

(b)

How long until c wraps around?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

Write the logic of assign y = sel ? a : b;.

Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.

Check

always @(*) if (en) y = d; has no else. Write y in terms of en, d and the latch's stored q.

Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.

Check

A Quine–McCluskey minimizer starts from all the minterms of a 10-variable function.

(a)

At most how many minterms can there be?

(b)

At most how many implicants (cubes, each variable 0, 1 or don't-care) exist?

Check

Booth's algorithm multiplies −3 by 3 in 4 bits.

(a)

What's the product?

(b)

How many additions or subtractions does it perform? (3 is a single run of 1s.)

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

13 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.