C7 · Midterm exam
Midterm exam: combinational and sequential logic
Twelve problems from the first half of the course: logic levels and number systems, Boolean algebra and canonical forms, CMOS gates and power, Karnaugh maps, building blocks, arithmetic, number formats, flip-flops, timing and shift registers. Give yourself two 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 logic family has = 2.6, = 2, = 1 and = 0.4 V.
(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 low noise margin?
Check
An 8-bit register holds B3 (hex).
(a)
What is its unsigned value?
(b)
What is its 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
A 3-input CMOS NOR is sized to match an inverter of NMOS width 1 and PMOS width 2; it drives 10 fF switching with α = 0.3 at 1 GHz on 0.8 V.
(a)
How wide is each PMOS?
(b)
What dynamic power does its output node take?
Write units the way you normally would: 1.5 µW, 1500 nW and 0.0015 mW are the same answer.
Check
Write the function computed by a 2:1 multiplexer that outputs C when B = 1 and A when B = 0.
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.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Two 8-bit two's-complement numbers 40 and 60 are added.
(a)
What value does the result represent?
(b)
Is the overflow flag set (1 or 0)?
Check
A ripple adder's carry takes 2 gate delays per bit; separately, a lookahead stage has = 1, = 1, = 1, = 1 and = 1.
(a)
What is the 8-bit ripple adder's worst carry delay?
(b)
What is ?
Check
An IEEE 754 single has sign 1, exponent field 128 and fraction 0.25.
(a)
What value does it represent?
(b)
What is its unbiased exponent?
Check
A path has = 50, = 400, = 60, = 30, = 0 and = 25 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 (no skew)?
Check
A modulo-12 binary counter divides an 8 MHz clock.
(a)
How many flip-flops?
(b)
What output frequency?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A 12-bit maximal LFSR is clocked at 10 MHz.
(a)
How many states does it cycle through?
(b)
How long before its sequence repeats?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Shifts and fixed point.
(a)
What value does −72 have after an arithmetic right shift by 1?
(b)
A Q format with 6 fraction bits stores 150. What value is that?
Check
Minimize (A the top bit).
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A register pair has = 0.05 ns, setup 0.08 ns, = 0.06 ns and hold 0.02 ns, with logic of 0.5 ns (long) and 0.03 ns (short); the capture clock is 0.05 ns late.
(a)
What's the minimum period?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What's the hold slack?
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.