C7 · Problem set 6
Problem set 6: sequential circuits and timing
These problems use lessons 26 to 32: latches and flip-flops, the timing of sequential circuits, registers, counters and clocks, PWM and sigma-delta outputs, and shift registers, LFSRs and CRCs.
Check
A register-to-register path has = 40 ps, logic of 300 ps, = 70 ps and up to 40 ps of clock skew.
(a)
What is the shortest safe clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What is the highest clock frequency?
Check
A short path has = 15 ps and = 0 ps, into a flip-flop with = 45 ps, with up to 30 ps of skew.
(a)
What is the hold margin?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
How much delay must be added to the path (0 if none)?
Check
A synchronizer at 100 MHz ( = 0.05 ns, τ = 0.2 ns, = 0.5 ns) sees 1 million asynchronous changes a second.
(a)
How many time constants does the first flip-flop get to resolve?
(b)
What is of its MTBF in seconds?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Logic of 8 ns is pipelined into 3 equal stages with 1 ns of register overhead each.
(a)
What clock rate does it reach?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
(b)
What is its latency?
Check
A counter must divide a 1 MHz clock by 10.
(a)
How many flip-flops does a binary modulo-10 counter need?
(b)
What frequency does it produce?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A free-running binary counter is clocked at 16 MHz.
(a)
At what frequency does bit 0 toggle (a full on-off cycle)?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
(b)
How many clocks long is one cycle of bit 0?
Check
A 4-bit counter starts at 14 and counts up once per clock.
(a)
What does it hold after 40 clocks?
(b)
After how many clocks does it first wrap to 0?
Check
Compare shift-register counters with 10 flip-flops.
(a)
How many states does a maximal-length LFSR have?
(b)
How many does a Johnson counter have?
Check
A serial link sends 10 bit times per byte at 9600 bits per second.
(a)
How many bytes per second?
(b)
How long does a 1500-byte message take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A 4-bit LFSR shifts left, dropping bit 3, and puts into bit 0. From state 6 (decimal), what is the next state?
Check
What is the 3-bit CRC of the message 110101 with generator 1011?
Check
A sequencer needs 12 states decoded with no logic.
(a)
How many flip-flops does a ring counter use?
(b)
How many does a Johnson counter use (each state decoded by a two-input gate)?
Check
An n-bit register with n = 5 on a 16 MHz clock.
(a)
How many states as a Johnson counter?
(b)
As a ring counter (one 1 circulating)?
Check
A maximal-length LFSR has n = 10 bits.
(a)
What's its period?
(b)
How many states does it never visit?
Check
A chip yields 0.6 and is tested with 0.9 coverage.
(a)
What defect level ships?
(b)
And without any test?
Check
An 8-bit PWM on a 16 MHz clock drives a 5 V output into an RC filter with = 4 ms.
(a)
What's its frequency?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
(b)
What's the worst-case peak-to-peak ripple, in mV?
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
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.