C757 of 57
0 XP
  1. Hook
  2. Problems

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 (VIH=0.7VDD); 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 ∑m(0,1,4,5,10,11,14,15).

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

Check

Minimize ∑m(1,3,7,11,15)+d(0,2,5).

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 ∏M(2,3,4,6).

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 Y0 of a 4-input priority encoder (I3 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 tpcq = 40, tpd = 250, tsetup = 50, skew up to 30, tccq = 15, tcd = 0 and thold = 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 (tsetup = 0.05 ns, τ = 0.15 ns, T0 = 0.4 ns) sees 1 million input changes a second.

(a)

What is log10⁡ 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 Q1+.

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

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.