C7 Digital logic · Practice
Problem set 11: memories, power, Verilog and arithmetic
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
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 = 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
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.)
Check
Restoring division divides 143 by 9 with 8 bits.
(a)
What's the quotient?
(b)
And the remainder?
Check
BCD addition of 58 and 37.
(a)
What decimal sum do the BCD digits spell?
(b)
Does the units digit need the +6 correction (1 for yes)?
Check
An 8-bit signed saturating adder adds 110 and 50.
(a)
What does it output?
(b)
What's the exact sum it was trying to represent?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in C7