C7 · Final exam
Final exam: digital logic
Twelve problems from the whole course: logic levels and number systems, Boolean algebra and minimization, CMOS gates, building blocks and arithmetic, number formats, flip-flops and timing, counters and shift registers, state machines, memories and FPGAs, Verilog and CRCs. Give yourself three hours, work without the lessons open, and write out your reasoning before checking each answer. Number truth-table rows from 0, with the first-listed input as the top bit. "Another set" deals a different exam.
Check
A 2.4 V output drives a CMOS input on 3.3 V (); separately, a register holds 11010011.
(a)
What is the high noise margin?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is the register's two's-complement value?
Check
Minimize .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Minimize .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Write a function equal to .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A chip's gates are 2-input NANDs, sized to match an inverter of NMOS width 1 and PMOS width 2. It has 50 million such nodes of 1 fF switching with α = 0.2 at 1 GHz on 0.8 V.
(a)
How wide is each NMOS?
(b)
What dynamic power do the nodes take?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
Write the low output bit of a 4-input priority encoder ( highest).
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Compute 33 − 45 in 8-bit two's complement; give the 8 bits.
Check
Arithmetic and formats.
(a)
What is a 16-bit ripple adder's worst carry delay, at 2 gate delays per bit?
(b)
What value is an IEEE single with sign 0, exponent field 130 and fraction 0.75?
Check
A path has = 40, = 250, = 50, skew up to 30, = 15, = 0 and = 20 (all ps).
(a)
What is the highest clock frequency?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
(b)
What is the hold margin?
Check
A two-flip-flop synchronizer at 100 MHz ( = 0.05 ns, τ = 0.15 ns, = 0.4 ns) sees 1 million input changes a second.
(a)
What is of its MTBF in seconds?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
How many time constants does it allow?
Check
Counters and shift registers on a 100 MHz clock.
(a)
How many states does a maximal 7-bit LFSR have?
(b)
What does a modulo-6 counter put out?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A Moore 101 detector codes S0 = 00, S1 = 01, S2 = 10, S3 = 11. Write .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A 256K × 32 memory is built from 128K × 16 chips; an FPGA beside it has 4-input LUTs.
(a)
How many memory chips?
(b)
How many bits configure one LUT?
Check
Registers a = 6 and b = 3 run one clock of a <= a + b; b <= a;.
(a)
What is a afterward?
(b)
What is b afterward?
Check
A protocol appends a 16-bit CRC to 100-byte messages.
(a)
What is of the chance a random corruption goes undetected?
(b)
How many table lookups does a byte-wide CRC take per message?
Check
A state machine has 11 states; its sequence detector variant must find a 4-bit pattern.
(a)
How many flip-flops for a binary encoding of 11 states?
(b)
How many states for a Moore detector of the 4-bit pattern?
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
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.