C7 Digital logic · Practice
Every topic, mixed
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.
Topics: all 57
Check
An output guarantees = 2.7 V; the input it drives needs = 2 V. What's the high noise margin?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
An input reads anything below = 0.8 V as 0; the output driving it guarantees = 0.2 V. What's the low noise margin?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A CMOS input runs from a 3.3 V supply. Using the usual 70% rule, what's its ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A 2.9 V output (its guaranteed high) drives a 5 V CMOS input. Will a 1 always read as 1? Enter 1 for yes, 0 for no.
Check
A CMOS output of 50 Ω drives 5 pF of wiring plus N inputs of 5 pF each, and must keep its 50% delay under 10 ns.
(a)
What's the delay with no inputs at all?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What's the largest N, before rounding down?
Check
= 2.7 V, = 2 V. ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
CMOS (30% rule) at 3.3 V?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
An input sits at a voltage between and . What does it read?
Check
Write 92 as an 8-bit binary number.
Check
What is the binary number 01011100 in decimal?
Check
Write 102 in hexadecimal.
Check
Write −23 in 8-bit two's complement.
Check
The 8-bit pattern 10101101 is read as a two's-complement signed number. What value is it?
Check
Two positive 8-bit two's-complement numbers, 110 and 30, are added.
(a)
What signed value does the 8-bit result read as?
(b)
What does the same 8-bit pattern read as unsigned?
Check
5 as 4 bits?
Check
0x5B in decimal?
Check
The largest positive number in 8-bit two's complement?
Check
Convert the binary number 0111 to Gray code.
Check
A Hamming code protects k = 11 data bits.
(a)
How many parity bits does it need?
(b)
What's its code rate, data bits over total bits?
Check
A code has minimum distance d = 3.
(a)
How many errors can it detect?
(b)
How many can it correct?
Check
The BCD digits 7 and 6 are added.
(a)
What's the 5-bit binary result after the correction, as a number?
(b)
What's the units digit?
Check
How many Hamming parity bits protect 16 data bits?
Check
BCD 6 + 3: corrected 5-bit result as a number?
Check
With A = 0 and B = 0, what does a NOR gate output?
Check
NAND of 0 and 0?
Check
XOR of 0 and 0?
Check
¬(A + B) as an AND of NOTs?
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
How many different Boolean functions of 3 inputs are there?
Check
A function of 4 inputs has 3 minterms. How many maxterms does its canonical product of sums have?
Check
Write for inputs A, B.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Write using inversions only on single variables.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
How many minterms does a function of 4 inputs have available?
Check
A logic family guarantees = 2.4 V and = 0.4 V, and accepts = 1.7 V and = 0.9 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
A 3.1 V output drives a CMOS input on 3.3 V, whose is 70% of its supply.
(a)
What is the input's ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is the high noise margin (negative means it won't work)?
Check
An 8-bit register holds the pattern 10101110.
(a)
What is its unsigned value?
(b)
What is its two's-complement value?
Check
Consider 8-bit two's-complement numbers.
(a)
What is the most negative?
(b)
What is the most positive?
Check
The decimal number 1000 must be stored in binary.
(a)
How many bits does it need?
(b)
How many hex digits?
Check
Consider functions of 3 inputs.
(a)
How many different functions are there?
(b)
A function with 1 minterms has how many maxterms?
Check
Inputs A = 0, B = 0, C = 1.
(a)
What does a 3-input NAND output?
(b)
What does a 3-input XOR output?
Check
A sum of products has 3 product terms of 2 literals each, built as NAND–NAND logic (complemented inputs available).
(a)
How many NAND gates does it need?
(b)
How many inputs does the output NAND have?
Check
A Hamming code protects k = 11 data bits.
(a)
How many check bits does it need?
(b)
How long is each codeword?
Check
What's the Gray code of 0111?
Check
A node of 10 fF switches every cycle at 3 GHz from a 0.8 V supply. What dynamic power does it draw?
Write units the way you normally would: 1.5 µW, 1500 nW and 0.0015 mW are the same answer.
Check
A chip's supply is lowered from 1.8 V to 0.8 V at the same clock. By what factor does its dynamic power change?
Check
How many transistors does a 3-input CMOS NAND gate use?
Check
A chip leaks 10 mA from its 0.8 V supply even when idle. How much static power is that?
Write units the way you normally would: 1.5 mW, 1500 µW and 0.0015 W are the same answer.
Check
A chip has 1 × 10⁸ transistors, each leaking 1 nA, on 1.2 V.
(a)
What's its leakage power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What if a higher threshold cuts the leakage tenfold?
Check
Energy drawn from the supply to charge 2 fF to 1 V (one cycle)?
Write units the way you normally would: 1.5 fJ and 0.0015 pJ are the same answer.
Check
Supply voltage raised 2×. Dynamic power factor?
Check
Which gate is the most natural (fewest transistors) in CMOS?
Check
How many transistors does a static CMOS NAND gate with 3 inputs use?
Check
In a process where electrons are 2 times as mobile as holes, a unit inverter has NMOS width 1 and PMOS width 2. How wide must each PMOS in a 3-input NOR be?
Check
1 million gates, each with 1 fF of load, switch with α = 0.05 at 3 GHz on 1.2 V. What dynamic power do they use?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A gate drives 4 gate inputs of 1 fF each through 4 fF of wire. What load capacitance does it see?
Write units the way you normally would: 1.5 fF and 0.0015 pF are the same answer.
Check
An n-input NAND with n = 3 is sized to match a unit inverter (NMOS 1, PMOS 2).
(a)
How many units of gate does each input drive?
(b)
What's its logical effort?
Check
An n-input NOR with n = 3 is sized to match a unit inverter (NMOS 1, PMOS 2).
(a)
How many units of gate does each input drive?
(b)
What's its logical effort?
Check
How wide must each series NMOS in a 3-input NAND be to match an inverter's NMOS of width 1?
Check
A gate has NMOS A and B in parallel to ground. What does it compute?
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
How much energy is stored on a 1 fF node charged to 0.8 V?
Write units the way you normally would: 1.5 fJ and 0.0015 pJ are the same answer.
Check
A gate with logical effort 1.333 and parasitic delay 2 drives a load 2 times its input.
(a)
What's its delay, in τ?
(b)
In picoseconds, with τ = 5 ps?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A chain of N = 2 inverters drives a load 100 times the first one's input.
(a)
What effort should each stage bear?
(b)
What's the total delay, in τ?
Check
About how many stages minimize the delay of a path with effort 64?
Check
Gates with n = 3 inputs.
(a)
What's an n-input NAND's logical effort?
(b)
And a NOR's?
Check
2 inverters drive H = 125. Least delay, in τ?
Check
g = 1.667, h = 3, p = 3. Delay in τ?
Check
Two enabled tri-state drivers on a 3.3 V bus fight: one with 20 Ω drives high, the other with 80 Ω drives low.
(a)
What current flows?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
What voltage does the bus sit at?
Check
An open-drain bus on 3.3 V has 100 pF, a 1 µs rise-time limit, and devices that sink 20 mA at 0.4 V.
(a)
What's the largest pull-up?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
(b)
What's the smallest?
Check
What's the 30% to 70% rise time of an open-drain line with a 2.2 kΩ pull-up and 50 pF?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Contention on 2.5 V through 25 Ω and 90 Ω. Current?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
3.3 V bus, devices sink 6 mA at 0.3 V. Smallest pull-up?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
An output guaranteed at 2.9 V high while sourcing 10 mA drives an LED with 1.8 V across it. What series resistor sets that current?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
A 5 V signal drives a 1.8 V chip's input through a series resistor. The clamp diode conducts at 0.3 V above the supply, and the datasheet allows 2 mA of injection. What's the smallest safe resistor?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
A 5 V signal drives a divider of 1.8 kΩ over 2.2 kΩ into an input with 22 pF.
(a)
What's the high level at the input?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What's its 10 to 90% rise time?
Check
A driver guarantees = 2.9 V and = 0.5 V; the receiver needs = 2 V and = 1.5 V. What's the high-level noise margin? (Negative means it fails.)
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
An output can sink 8 mA low and source 1 mA high. Each input it drives draws 0.1 mA low and 40 µA high. How many inputs can it drive?
Check
A pull-up of 4.7 kΩ charges a bus of 50 pF. What's the 10 to 90% rise time, in µs?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Choose a divider from E24 values (10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91, times any power of ten from 100 Ω to 1 MΩ) that brings Vin = 12 V down to at most Vout_max = 3.3 V and as close as possible to Vout = 3 V, with Thevenin resistance at most Rmax = 50 kΩ. Set R1, R2 (ohms) and v (the output voltage). Break ties by the smaller Thevenin resistance.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
An output sinks 10 mA with 0.3 V low, lighting an LED (1.8 V) from the 3.3 V supply. What resistor?
Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.
Check
A 12 V signal drives a divider of 1 kΩ over 2 kΩ. What's the output?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
100000 nodes each switch 1 fF with activity 0.1 at 2 GHz on 1.2 V.
(a)
What dynamic power do they draw?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What would they draw with the supply cut by 20%?
Check
A chip has 1 × 10⁸ transistors leaking 1 nA each on 1 V.
(a)
What's its leakage power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What if power gating turns off 90% of it?
Check
Gates with n = 3 inputs are sized to match a unit inverter.
(a)
What's the NAND's logical effort?
(b)
What total transistor width does the NAND use?
Check
An inverter chain of N = 2 stages drives a load 100 times its input.
(a)
What's its least delay, in τ?
(b)
About how many stages would be best?
Check
A path of a NAND2, a NOR2 and an inverter drives a load 30 times the NAND2's input.
(a)
What's the best stage effort?
(b)
What's the least delay, in τ?
Check
A gate with logical effort 1.333, input capacitance 1 and parasitic delay 2 drives 64 units.
(a)
What's its electrical effort?
(b)
What's its delay, in τ?
Check
A buffer chain must drive 64 times its input, with each stage scaled up by 4.
(a)
How many stages does it take?
(b)
What's the delay, in τ?
Check
Two tri-state drivers on a 3.3 V bus fight: 30 Ω high, 70 Ω low.
(a)
What current flows?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
What power do they dissipate together?
Check
An open-drain bus on 3.3 V has 100 pF, a 1 µs rise-time limit, and drivers sinking 10 mA at 0.4 V.
(a)
What's the largest pull-up?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
(b)
What's the smallest?
Check
An open-drain line has a 4.7 kΩ pull-up and 20 pF.
(a)
What's its 30% to 70% rise time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How long until it crosses half the supply?
Check
A CMOS output (20 Ω) on 1.8 V drives N = 16 inputs of 10 pF each.
(a)
What's its 50% delay?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How much energy does a full cycle (rise and fall) of that load take?
Check
An n-input NOR with n = 3 is sized to match a unit inverter.
(a)
What's its logical effort?
(b)
How many times the NAND's logical effort is that?
Check
An inverter drives a load 64 times its input, alone or through a chain of the best length.
(a)
What's the delay with one inverter, in τ?
(b)
What does the formula give at the best length, ?
Check
A node of 2 fF switches with activity 0.1, and the clock network drives 20 fF of clock load per node with activity 1, on 1 V.
(a)
What share of the dynamic power goes to the clock?
(b)
What energy per cycle is that, per node?
Write units the way you normally would: 1.5 fJ and 0.0015 pJ are the same answer.
Check
A 5 V logic signal reaches a 3.3 V input through a divider of 1.8 kΩ over 15 kΩ, with 15 pF at the input.
(a)
What high level reaches the input? (Compare it with the 3.6 V limit.)
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What's its 10 to 90% rise time? (kΩ times pF is nanoseconds.)
Check
How many outputs does a 4-input decoder have?
Check
Add 011 and 001 in binary. Give a 4-bit result.
Check
Simplify .
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
How many select lines does a :1 multiplexer need?
Check
01 + 00 in binary (3 bits)?
Check
In a four-variable map, how many literals does a group of cells leave in its term, for k = 3?
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
How many cells does a 3-variable Karnaugh map have?
Check
A node of 2 fF switches with activity α = 0.05 at 2 GHz on 3.3 V.
(a)
What dynamic power does it take?
Write units the way you normally would: 1.5 µW, 1500 nW and 0.0015 mW are the same answer.
(b)
How much energy does one full charge-and-discharge cycle draw from the supply?
Check
In a process where a unit inverter has NMOS width 1 and PMOS width 2, gates are sized to match it.
(a)
How wide is each NMOS in a 3-input NAND?
(b)
How wide is each PMOS in a 3-input NOR?
Check
Compare a 3-input NAND and NOR sized to match a unit inverter (NMOS 1, PMOS 2).
(a)
What total gate width does one NAND input drive?
(b)
And one NOR input?
Check
A gate with 5 kΩ of on-resistance drives 2 inputs of 2 fF each and 5 fF of wire.
(a)
What is its load?
Write units the way you normally would: 1.5 fF and 0.0015 pF are the same answer.
(b)
What is its 50% delay, ?
Check
A matched CMOS inverter on 3.3 V has thresholds of 0.3 V.
(a)
Where does it switch?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is its noise margin?
Check
A full adder gets A = 0, B = 0 and carry-in 1.
(a)
What is its sum bit?
(b)
What is its carry out?
Check
A design uses 1000000 n-input NAND gates with n = 3, each sized to match a unit inverter.
(a)
What total transistor width does each gate use, in units?
(b)
What's each gate's logical effort?
Check
How many outputs does a decoder with 5 inputs have?
Check
How many select lines does a 16:1 multiplexer need?
Check
An n-to- decoder with n = 6 is built as a tree of 2-to-4 decoders with enables.
(a)
How many outputs does it have?
(b)
How many 2-to-4 decoders does it need?
Check
Write a 2:1 mux that outputs A when S = 0 and B when S = 1.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
How many 2:1 multiplexers make a 32:1 multiplexer as a tree?
Check
Write a 1-bit equality comparator for A and B.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Compute 23 − 70 in 8-bit two's complement. Give the result as 8 bits.
Check
A ripple-carry adder's carry takes 1 gate delays per bit. What is the worst-case carry delay for 16 bits?
Check
A prefix adder combines generate and propagate in a tree. How many levels does its carry network need for 16 bits?
Check
−100 and −60 are added as 8-bit two's-complement numbers.
(a)
What signed value does the 8-bit result read as?
(b)
What's the overflow flag ?
Check
What is the largest 8-bit two's-complement number?
Check
Write the generate signal for one bit with inputs A and B.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Write −9 as a 4-bit two's-complement pattern.
Check
A 4-bit ALU computes A − B for A = 0101 and B = 0001. What 4-bit result does it produce?
Check
A 4-bit ALU subtracts B = 0001 from A = 1010. Signed, A is negative and B positive. What result does it produce? (The V flag will say whether it's wrong.)
Check
A 16-bit ripple ALU has gates of 10 ps: two gate delays per bit of carry, two for the output multiplexer, then a zero detector built as a tree of 2-input gates. How long until Z is valid?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
Write alu(a, b, op) for an n-bit ALU (16 bits), with op one of 'and', 'or', 'add', 'sub', taking unsigned inputs below and returning (r, z, neg, c, v): the result and the four flags as 0 or 1, computed the way hardware does (subtract as ; C is the carry out of the top bit; V from the carries into and out of the top bit; logic operations clear C and V). Then write signed_lt(a, b) and unsigned_lt(a, b) using only the flags from alu(a, b, 'sub').
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A 4-bit ALU adds 0101 and 0001. What result does it produce?
Check
How many levels of 4-input gates does a tree need to combine 32 bits into one zero flag?
Check
A path passes through 5 gates, each with a 10 ps delay. What's its delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A ripple-carry adder of 16 bits has a carry delay of 20 ps per stage. Roughly how long might its carry take to ripple through?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A path has = 50 ps, 400 ps of logic and a setup time of 60 ps. What's the highest clock frequency it allows?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A register ( = 30 ps) feeds logic of 200 ps into a register with 50 ps of setup.
(a)
What's the minimum clock period?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What's the maximum clock frequency?
Check
Clock period at 500 MHz, in ps?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A 2 ns clock period, with 0.1 ns of flip-flop overhead. How much time is left for logic?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
If each stage passes the carry on in one tick, how many ticks can the carry take to ripple through 12 bits?
Check
How many bits does the full product of two 8-bit numbers need?
Check
How many AND gates form the partial products of an 8 × 8 array multiplier?
Check
Shift the 8-bit two's-complement number −36 right by 1 places, arithmetically. Give the 8-bit result.
Check
How many multiplexer stages does a 32-bit barrel shifter need?
Check
A number in Q format with 2 fraction bits is stored as the integer 77. What value does it represent?
Check
What exponent field (in decimal) does an IEEE single store for the value , with p = 0?
Check
An IEEE 754 single has sign bit 0, biased exponent 120 and fraction 0.875.
(a)
What value does it hold?
(b)
What's the spacing between it and the next larger float?
Check
What is 13 shifted left by 1 places (no overflow)?
Check
What is the resolution of a fixed-point format with 8 fraction bits?
Check
An IEEE single has sign 0, exponent field 127 and fraction 0. What value is it?
Check
A restoring divider computes 104 ÷ 4. What quotient does it produce?
Check
What remainder does the divider leave for 125 ÷ 7?
Check
A restoring divider produces one quotient bit per step. How many steps does a 16-bit by 16-bit division take, not counting setup?
Check
In C, what is −13 / 2 for signed integers?
Check
Write divide(N, Dv) returning (q, r) by the restoring algorithm for n-bit unsigned N (12 bits), counting the steps in a global list steps (append 1 per quotient bit). Then find the smallest shift s (search from n upward) such that M = ceil(2**s / D) gives (x*M) >> s == x // D for every n-bit x, with D = 3, and set s_min and M_min.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What quotient does 122 ÷ 3 give in hardware?
Check
Before arithmetic-shifting a negative number right by 2 bits to divide by with C's rounding, what should be added to it?
Check
The 8-bit patterns 100 and 40 (both below 128) are added.
(a)
What's the overflow flag V?
(b)
What's the result read as signed?
Check
What's the spacing between neighboring single-precision floats with biased exponent 127?
Check
Float spacing at biased exponent 120?
Check
A decoder has 6 inputs; it's to be built from 2-to-4 decoders with enables.
(a)
How many outputs does it have?
(b)
How many 2:4 decoders does a tree of them need?
Check
A multiplexer selects one of 64 inputs.
(a)
How many select lines does it need?
(b)
How many 2:1 multiplexers make it as a tree?
Check
Compute 31 − 40 in 8-bit two's complement and give the 8-bit result.
Check
Two 8-bit two's-complement numbers, 60 and 50, are added.
(a)
What is the true sum?
(b)
What value does the 8-bit result represent?
Check
An adder's ripple carry takes 2 gate delays per bit; a lookahead design reaches any carry in 4 delays per lookahead level, with 4-bit groups.
(a)
What is the ripple adder's worst carry delay for 32 bits?
(b)
How many delays for the lookahead adder, with levels?
Check
A critical path passes through 2 AND gates (35 ps each), 1 XOR gates (40 ps each) and 2 OR gates (25 ps each).
(a)
What is its propagation delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
Ignoring the flip-flops, what is the highest rate at which new results can be produced?
Check
An 8 × 8 array multiplier.
(a)
How many product bits?
(b)
How many AND gates for the partial products?
Check
Arithmetically shift the 8-bit two's-complement number −50 right by 2 places. Give the 8-bit result.
Check
A fixed-point format has 3 fraction bits.
(a)
What value does the stored integer 100 represent?
(b)
What is its resolution?
Check
An IEEE 754 single has sign 0, exponent field 127 and fraction 0 (as a binary fraction's value).
(a)
What is its unbiased exponent?
(b)
What value does it represent?
Check
A float has sign 0, biased exponent 126 and fraction 0.625.
(a)
What value does it hold?
(b)
What's its unbiased exponent?
Check
An n-bit carry-select adder with n = 16 uses 4-bit blocks (2 gate delays per bit within a block, 2 per block for the selects).
(a)
What's its delay in gate delays?
(b)
And a ripple adder's?
Check
A 4-bit ALU subtracts B = 0001 from A = 0101 by adding and a carry-in of 1. What result does it produce?
Check
A restoring divider computes 150 ÷ 6, one quotient bit per step. What quotient does it produce?
Check
In the generated ripple adder, how many gate levels deep is the carry-out of an 8-bit adder?
Check
Carry-out depth of a 12-bit ripple adder from two-input gates?
Check
The 8-bit two's-complement numbers 110 and 50 are added.
(a)
What signed value results?
(b)
What's the overflow flag?
Check
A single-precision float has sign 0, biased exponent 124 and fraction 0.75.
(a)
What value is it?
(b)
What's the spacing to the next float?
Check
Two Q15 values represent 0.5 and 0.125.
(a)
What integer stores 0.5?
(b)
What integer stores their product, rounded?
Check
An n-bit ripple adder with n = 16 has 20 ps of gate delay, with 2 gates per bit, between registers with 60 ps of overhead.
(a)
What's its worst delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What's the fastest clock?
Check
An n-bit carry-select adder with n = 32 uses blocks of k = 2 bits: 2 gate delays per bit inside a block and 2 per block for the selects.
(a)
What's its delay, in gate delays?
(b)
What would the best block size, , give?
Check
An n × n array multiplier with n = 8 uses one full adder per partial-product bit after the first row.
(a)
About how many full adders?
(b)
How many bits wide is the product?
Check
Gray code with 4 bits.
(a)
What's the Gray code of 3, as a number?
(b)
How many steps does an n-bit Gray counter take to return to 0?
Check
SECDED memory protects 16-bit words with Hamming check bits plus one overall parity bit.
(a)
How many check bits per word?
(b)
What's the storage overhead?
Check
A 1-of-N multiplexer is built as a tree of 2:1 multiplexers, each with 30 ps of delay, N = 16.
(a)
How many levels deep is it?
(b)
How many 2:1 multiplexers does it use?
Check
A path through three gates has delays of 1, 2 and 4 units, and a second path from the same input reaches the same output gate through one gate of 1 unit.
(a)
When does the long path's change arrive?
(b)
How long can the output glitch last, at most?
Check
A ripple-carry adder is built from two-input gates as in the gate simulation lab, for n = 8.
(a)
How deep is its carry-out?
(b)
How many gates does it use?
Check
A float has biased exponent 120; its fraction field is about 0.3.
(a)
What power of two scales it?
(b)
What's its relative precision, the spacing over the leading power of two?
Check
A 4-bit shift-and-add multiplier computes 7 × 5.
(a)
What's the product?
(b)
How many additions does it perform (one per 1 bit of the multiplier 5)?
Check
A D flip-flop's D is 0 at one rising edge and 0 at the next. What is Q just after the second edge?
Check
A flip-flop has a setup time of 50 ps, a hold time of 20 ps and a clock-to-Q delay of 120 ps. For how long around the edge must D stay still?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
How many flip-flops does a register holding a 2-byte value need?
Check
A flip-flop with setup 0.05 ns and hold 0.02 ns has its clock rise at 20 ns.
(a)
From when must D be stable?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
Until when?
Check
An SR latch holds Q = 0. Its inputs then go to S = 1 and R = 0. What is Q afterward?
Check
Flip-flop overhead in a clock period: setup 40 ps plus clock-to-Q 70 ps?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A latch is called "transparent" because...
Check
A path has = 30 ps, logic of 200 ps and = 60 ps. 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.
Check
With up to 50 ps of clock skew, what is the shortest period for that path ( = 30, = 200, = 60 ps)?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A short path has = 20 ps and = 0 ps; the next flip-flop needs = 50 ps, with up to 20 ps of skew. What is the hold margin (negative means a violation)?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A synchronizer clocked at 50 MHz ( = 0.05 ns, τ = 0.3 ns, = 1 ns) samples an input changing 0.1 million times a second. 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 12 ns is split into 2 equal pipeline stages, with 1 ns of register overhead each. What clock frequency results?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
What is the latency through that pipeline (12 ns of logic, 2 stages, 1 ns overhead)?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Registers ( = 0.05, = 0.03, setup 0.04, hold 0.02 ns) surround logic with = 1.5 ns and = 0.2 ns; the capture clock arrives 0.05 ns late.
(a)
What's the minimum clock 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 (negative means a violation)?
Check
What frequency is a clock period of 2 ns?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
A synchronizer's resolution time grows by 20 time constants τ. By what factor (as a power of ten) does its MTBF grow?
Check
What is the per-stage register overhead for = 50 ps and = 30 ps?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
What's the highest value a 3-bit binary counter reaches before wrapping to 0?
Check
A binary counter runs from an 8 MHz clock. What's the frequency of bit Q0?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
How many divide-by-2 stages turn a 1048576 Hz crystal into 1 Hz?
Check
A 4-bit shift register holds 0110 and shifts left 1 time(s), with 0s shifted in at the right. What does it hold?
Check
A modulo-3 counter runs from 10 MHz. How often does it wrap around?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
An n-flip-flop register with n = 4 runs from a 10 MHz clock.
(a)
How many states does a Johnson counter made from it have?
(b)
At what frequency does a binary counter's top bit toggle?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
How many distinct values does a 10-bit counter step through?
Check
A 16 MHz clock through 2 divide-by-2 stages. Output?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A 3-bit shift register holds 011 and shifts right once (0 in at the left). Result?
Check
A flip-flop is at 0 and must go to 0 on the next clock.
(a)
What T input does that need?
(b)
What D input?
Check
An n-bit counter with n = 8 uses flip-flops with 0.5 ns of clock-to-Q delay.
(a)
As a ripple counter, how long does its top bit take to settle?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What's the highest clock at which its count can be read reliably after each edge?
Check
A divide-by-10 counter. How many unused states?
Check
12-bit ripple counter, 0.8 ns per stage. Settling time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A PWM generator runs its 8-bit counter from a 16 MHz clock. What is the PWM frequency, in kHz?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A 3.3 V PWM at 62.5 kHz and duty 0.2 drives an RC filter with = 10 ms. What's the peak-to-peak ripple, in mV?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
A 3.3 V, 8-bit PWM from a 64 MHz clock must have at most 1 LSB of ripple at its worst duty. What filter time constant does it need?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A 10-bit first-order sigma-delta should output a 1 once every 4 clocks. What input code does that?
Check
For an 8-bit code , by what factor is the sigma-delta's ripple smaller than the PWM's through the same slow filter? (Give the ratio of sigma-delta to PWM.)
Check
Simulate both modulators through an RC filter. With an N-bit counter (6) and code k = 5, build 64 periods' worth of bits ( clocks) for PWM (1 while count < k) and for the sigma-delta (carry of an N-bit accumulator starting at 0). Filter each with the exact one-pole update v = v + (b - v)*a per clock, a = 1 - exp(-1/50) (RC = 50 clocks), starting from v = k/2**N. Over the last two PWM periods, set pwm_pp and sd_pp to the peak-to-peak values, and ratio = sd_pp/pwm_pp.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What PWM frequency does an 8-bit counter on a 20 MHz clock give?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
What's the step size of an 8-bit PWM output on 3.3 V, after filtering?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
How many states does a maximal-length 8-bit LFSR cycle through?
Check
How many states does a Johnson counter built from 4 flip-flops have?
Check
A shift register clocked at 1 MHz receives 32 bits serially. How long does it take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A 4-bit LFSR shifts left, dropping bit 3, and puts into bit 0. Its state is 6 (in decimal). What is the next state?
Check
A serial link sends 10 bit times per byte (start, data, parity and stop bits) at 115200 bits per second. How many bytes per second?
Check
A maximal-length LFSR has n = 7 bits; a serial link runs at 9600 bits per second with start and stop bits.
(a)
What's the LFSR's period?
(b)
How many bytes per second does the link carry?
Check
How many states does a ring counter of 5 flip-flops have?
Check
How many clocks does a PISO register need to send a 16-bit word?
Check
How many bits long is the CRC from a generator polynomial of degree 16?
Check
A chip yields 0.8 and is tested with 0.9 fault coverage.
(a)
What defect level ships?
(b)
How many bad parts per million would ship with no testing at all?
Check
A chip has 2000 scan flip-flops in 10 equal chains and needs 5000 patterns, shifted at 100 MHz.
(a)
How long is each chain?
(b)
About how long does the test take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A netlist has 1000 nodes. How many single stuck-at faults does the model list?
Check
Yield 0.6, coverage 0.95. Defect level?
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
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?
Check
A path is the sum of 16 independent stages, each 0.5 ns on average with standard deviation 0.1 ns.
(a)
What's the path delay's standard deviation?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What period gives a yield of about 99.87%, three standard deviations of margin?
Check
25 stages, each σ = 0.02 ns. Path σ?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Registers ( = 0.05 ns, setup 0.08 ns) surround 0.4 ns of logic; the capture clock is 0.1 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 maximum frequency?
Check
A short path has = 0.03 ns and 0.02 ns of logic, into a flop with 0.05 ns of hold; the capture clock is 0.08 ns late.
(a)
What's the hold slack?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What's the least logic delay that avoids a violation?
Check
A synchronizer has a 2 ns clock, 0.05 ns setup, flops with τ = 40 ps and = 100 ps, and data changing 10 million times a second.
(a)
What's the log10 of its MTBF in seconds, with two stages?
(b)
How many decades does a third stage add?
Check
An n-flip-flop register with n = 6 runs from an 8 MHz clock.
(a)
How many states does it have as a Johnson counter?
(b)
What frequency comes out of any one bit of that Johnson counter?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
A divide-by-10 counter is built from flip-flops.
(a)
How many flip-flops?
(b)
How many unused states must be checked for lock-up?
Check
A maximal-length LFSR of n = 8 bits runs at 1 MHz.
(a)
What's its period, in clocks?
(b)
How long until it repeats?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A chip yields 0.7 and is tested at 0.95 coverage.
(a)
What defect level ships?
(b)
What coverage would reach 100 ppm?
Check
A design has 5000 scan flops in 8 chains and needs 4000 patterns at a 100 MHz scan clock.
(a)
How long is each chain?
(b)
About how long does the test take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Logic of 12 ns is pipelined evenly into 6 stages with 0.3 ns of overhead each.
(a)
What's the clock 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 latency?
Check
A path sums 9 independent stages of 0.6 ns mean and 0.1 ns standard deviation.
(a)
What's the path's standard deviation?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What period gives about 97.7% yield (two standard deviations)?
Check
A flip-flop with 0.05 ns setup and 0.02 ns hold is clocked at 10 ns.
(a)
How wide is the window in which D must be stable?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
When does it open?
Check
An n-bit ripple counter with n = 8 uses flops of 0.5 ns.
(a)
How long does its top bit take to settle?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How many clocks between the top bit's rising edges?
Check
A UART at 9600 baud sends 100 bytes, each with a start and a stop bit.
(a)
How long does it take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
What's its byte rate?
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
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
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
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?
Check
At least how many flip-flops does a binary-encoded state machine with 5 states need?
Check
How many flip-flops does a one-hot state machine with 6 states use?
Check
In the traffic light (0 green, 1 yellow, 2 red), the machine is in state 1. Which state comes next?
Check
A state machine has 7 states.
(a)
How many flip-flops does a binary encoding need?
(b)
How many codes go unused?
Check
Binary-encoded flip-flops for exactly 4 states?
Check
How many distinct states can 3 flip-flops encode?
Check
A Moore machine's outputs depend on...
Check
Two D flip-flops have and . The present state is 01. What is the next state?
Check
A ring counter has , , . From state = 010, what's the next state?
Check
A sequential circuit's flip-flops have 80 ps clock-to-Q and 40 ps setup, and its longest logic path is 100 ps. What's its maximum clock frequency?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
A 4-bit Johnson counter has and . How many states are in its main cycle?
Check
Write analyze(next_state, n) for a circuit with no inputs, where next_state(s) gives the next state of an n-bit state s. Return (cycles, lockout): cycles is a sorted list of the cycles' lengths (each cycle counted once), and lockout is True if more than one cycle exists. Test it on a ring counter and a Johnson counter of 5 bits, setting ring and johnson to the results.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What's with 40 ps clock-to-Q, a 150 ps logic path and 50 ps setup?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
How many states are in a 6-bit ring counter's intended cycle (a single 1 circulating)?
Check
How many flip-flops does a binary-encoded machine with 5 states need?
Check
How many unused codes does a binary encoding of 5 states leave?
Check
How many states does a Moore machine need to detect a particular 4-bit sequence?
Check
A detector must flag a 4-bit pattern, overlaps allowed.
(a)
How many states does a Moore version need?
(b)
How many flip-flops does a Mealy version need?
Check
How many flip-flops does a one-hot machine with 7 states use?
Check
Write the output of the 101 detector, which is 1 only in state 11.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A binary-encoded machine has 3 flip-flops. How many states can it have at most?
Check
An n-bit shift-and-add multiplier with n = 16 adds in 1 ns, plus 1 ns of register overhead per clock.
(a)
How many clocks per product?
(b)
How long does a product take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
An operation has 3 steps of 2 ns each, with 0.5 ns of register overhead per clock.
(a)
What's the time per result in a single-cycle design?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
And in a pipelined one, once it's full?
Check
The GCD machine starts with A = 50 and B = 12. How many times does it subtract B from A before A first drops below B?
Check
12-bit shift-and-add, 0.8 ns add, 0.6 ns overhead. Time per product?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A synchronizer clocked with a 2 ns period uses flops with τ = 20 ps; each extra stage adds one period of resolution time.
(a)
By how many powers of ten does one extra stage multiply the MTBF?
(b)
By what factor, exactly?
Check
A writer at 100 MHz sends bursts of 200 words to a reader at 80 MHz.
(a)
What's the least FIFO depth, before margin?
(b)
How long does the reader take to empty that backlog after the burst?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A four-phase handshake with two-flop synchronizers carries words from a 10 MHz domain to a 100 MHz domain. About how long does each word take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Burst 50 at 120 MHz, read at 90 MHz. Least depth?
Check
How many states does the generated Moore detector have for a 5-bit pattern?
Check
Flip-flops for a binary-encoded Moore detector of a 7-bit pattern?
Check
A state machine has 9 states and 1 input bits.
(a)
How many flip-flops does binary encoding need?
(b)
How many more does one-hot need?
Check
A detector flags a 5-bit pattern, overlaps allowed.
(a)
How many states as a Moore machine?
(b)
How many flip-flops as a binary-encoded Mealy machine?
Check
A shift-and-add multiplier for n = 16 bits adds in 1 ns with 0.6 ns of register overhead.
(a)
How long does one product take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How many products per second, in millions?
Check
An operation of 3 steps of 2 ns each runs 10000 times, with 0.4 ns of overhead per clock.
(a)
How long does a single-cycle design take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
(b)
A k-stage pipeline?
Check
The subtraction GCD machine starts with A = 70, B = 12.
(a)
How many subtractions from A happen before A first drops below B?
(b)
What's left in A then?
Check
A synchronizer clocked every 1 ns uses flops with τ = 50 ps and 0.05 ns setup.
(a)
By what factor does one extra stage raise the MTBF?
(b)
How many decades is that?
Check
A writer at 150 MHz sends bursts of 80 words; the reader runs at 100 MHz.
(a)
What FIFO depth does the burst need?
(b)
How long does the burst last?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A four-phase handshake with two-flop synchronizers passes words from 20 MHz to 50 MHz.
(a)
About how long per word?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
About how many million words per second?
Check
A 4-bit pointer steps from 7 to the next value (each of these values ends in a run of 1s).
(a)
How many bits change in Gray code?
(b)
How many change in plain binary?
Check
Two state machines have 4 and 3 states.
(a)
At most how many state pairs can an equivalence check visit?
(b)
How many transitions can it follow, with one input bit?
Check
A pulse of one fast-clock period, 5 ns, must cross into a domain whose clock period is 5 times longer.
(a)
How long is the slow domain's clock 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 chance a raw pulse lands on a slow clock edge and is seen at all?
Check
A multi-cycle datapath shares one ALU across 3 steps of 4 ns, with 0.5 ns overhead per clock; a single-cycle version has 3 ALUs.
(a)
What's the multi-cycle time per result?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
And the single-cycle time per result?
Check
A 3-bit Johnson counter has , and . From state = 010, what's the next state?
Check
A DRAM cell decays as with τ = 100 ms from 1 V. When does it fall to 0.4 V?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A memory has 16 address bits and 8-bit words. How many bytes does it hold?
Check
A flash cell stores 2 bits. How many charge levels must it tell apart?
Check
A DRAM chip must refresh all 4096 rows every 64 ms, one at a time, evenly spread. How often does it refresh a row?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A 4 GiB memory has 16-bit words.
(a)
How many address lines does it need?
(b)
How many more address lines would it need if it were byte-addressed?
Check
How many words can 20 address bits select?
Check
τ = 100 ms. Time to fall to half?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Which memory keeps its data with the power off?
Check
How many address lines does a memory of words need, for k = 16?
Check
A memory holds 64K words of 8 bits. How many kibibytes is that?
Check
How many 32K × 8 chips make a 64K × 16 memory?
Check
How many bits must a ROM store to implement 1 functions of 8 inputs?
Check
How many configuration bits does a 5-input LUT hold?
Check
How many 4-input LUTs does a 19-input AND gate take?
Check
A 64K × 32 memory is built from 64K × 16 chips.
(a)
How many chips?
(b)
How many address bits drive the chip-select decoder?
Check
How many words can 18 address lines select?
Check
2 chips of 4K words each are stacked for depth. How many words in total (in K)?
Write units the way you normally would: 1.5 K and 1500 mK are the same answer.
Check
A memory array has 512 rows. How many address bits drive its row decoder?
Check
A block draws 2 W; 20% of it goes to the clock and registers, which clock gating stops 90% of the time.
(a)
How much does 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 the block draw now?
Check
Logic designed for 1.0 V runs at 0.8 V, with = 0.25 V.
(a)
What fraction of its speed remains?
(b)
What fraction of the energy per operation does it use?
Check
Waking a block costs 5 µJ; asleep it leaks 2 mW instead of 10 mW. 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.
Check
Energy per operation at 0.75 V, relative to 1 V?
Check
A state machine has 9 states.
(a)
How many flip-flops does a binary encoding need?
(b)
How many unused codes does it leave?
Check
A machine detects a particular 5-bit input sequence, overlapping allowed.
(a)
How many states does a Moore version need?
(b)
How many does a Mealy version need?
Check
A ring of 6 states advances one state per clock, wrapping after the last.
(a)
Starting in state 1, where is it after 5 clocks?
(b)
How many flip-flops does a one-hot encoding use?
Check
A memory has 20 address lines and 8-bit words.
(a)
How many words does it hold?
(b)
How many mebibytes is that?
Check
A 128K × 16 memory is built from 64K × 16 chips.
(a)
How many chips?
(b)
How many address bits drive the chip-select decoder?
Check
A DRAM must refresh all 16384 rows every 32 ms.
(a)
How often must it refresh one row?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How many row refreshes per second?
Check
A bit line's sense signal grows as with τ = 40 ps.
(a)
How long until it reaches 0.3 of its final value?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
And 90%?
Check
A ROM implements 2 functions of 8 inputs.
(a)
How many bits does it store?
(b)
How many words?
Check
An FPGA has 4-input LUTs.
(a)
How many configuration bits does each LUT hold?
(b)
How many LUTs does a 13-input AND take?
Check
Bursts of 50 words at 120 MHz feed a reader at 90 MHz through a FIFO.
(a)
What depth does a burst need?
(b)
How long does the reader take to drain that backlog?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A design scales from 1.0 V to 0.65 V with = 0.25 V.
(a)
What fraction of the energy per operation remains?
(b)
What fraction of the speed?
Check
A controller has 11 states.
(a)
How many flip-flops with binary encoding?
(b)
With one-hot?
Check
With s = 0, a = 0 and b = 1, what does assign y = s ? b : a; give?
Check
An always block has reg [4-1:0] r; and always @(posedge clk) r <= d;. How many flip-flops does it make?
Check
reg [N-1:0] c; always @(posedge clk) c <= c + 1; with N = 8 runs from a 10 MHz clock.
(a)
How many flip-flops does it build?
(b)
At what frequency does its top bit toggle?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
assign y = a ^ b; with a = 0, b = 0. y?
Check
The function of assign y = ~a & b;?
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Which construct makes flip-flops?
Check
How many wires does a vector declared [7:0] have?
Check
A reg [4-1:0] q starts at 15 and runs q <= q + 1; on every clock. What does it hold after 12 clocks?
Check
How many flip-flops does reg [8-1:0] r; always @(posedge clk) r <= r + 1; create?
Check
always @(posedge clk) r <= {r[N-2:0], d}; with N = 8, and a second block that copies its input through k nonblocking registers in a chain.
(a)
After how many clocks does a bit of d reach r[N−1]?
(b)
How many flip-flops do the two blocks build together?
Check
How many bits does the part-select x[7:2] contain?
Check
A case on a 3-bit selector can have how many distinct non-default items?
Check
assign y = en & a; with inputs E (en) and A. Write y.
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
A 4-bit adder adds 0101 and 0001 with no carry in. What's the carry out?
Check
A full adder's sum bit?
Write AND as · or & (or just AB), OR as +, XOR as ⊕, and NOT as ¬ or a trailing ': A·B + C' works.
Check
Gate delays for an 8-bit ripple carry, at 2 per stage?
Check
0010 + 0000: the 4-bit sum?
Check
A pattern in a 5-variable Quine–McCluskey table has 1 dashes. How many literals does its product term have?
Check
How many minterms does a pattern with 1 dashes cover?
Check
How many rows does truth_table produce for 4 inputs?
Check
In a 4-input table, what is the first input's bit in row 9?
Check
How many minterms does a pattern with 3 dashes merge together?
Check
A module declares wire [15:0] bus;.
(a)
How many wires is that?
(b)
How many bits does bus[15:0] select?
Check
Registers a = 7 and b = 5 run one clock of a <= b; b <= a + b; (nonblocking).
(a)
What is a afterward?
(b)
What is b afterward?
Check
The same registers (a = 7, b = 5) instead run a = b; b = a + b; (blocking) once.
(a)
What is a afterward?
(b)
What is b afterward?
Check
A clocked block assigns reg [4-1:0] x, reg [1-1:0] y and reg [32-1:0] z, all with <=.
(a)
How many flip-flops does it create?
(b)
What is the largest value x can hold?
Check
A reg [4-1:0] c starts at 15 and runs c <= c + 1; each clock.
(a)
What does it hold after 50 clocks?
(b)
How many times has it wrapped through 0?
Check
A 4-bit ripple-carry adder adds A = 9 and B = 5.
(a)
What is its 4-bit sum?
(b)
What is its carry out?
Check
The sandbox's vending machine sells a 15¢ item for nickels, one coin per clock, and vends on the third.
(a)
How many items have vended after 7 nickels?
(b)
How many cents is it holding toward the next?
Check
In Quine–McCluskey for 5 variables, a pattern has 1 dashes.
(a)
How many literals does its term have?
(b)
How many minterms does it cover?
Check
A 4-input truth table numbers its rows with the first input as the top bit.
(a)
What is input 0 (counting from 0 at the first input) in row 11?
(b)
Which row has every input inverted?
Check
A running-parity Mealy machine outputs the parity of all the 1s seen so far. A stream of 10 bits contains 6 ones.
(a)
What does it output after the last bit?
(b)
How many states does it need?
Check
always @(posedge clk) c <= c + 1; with an N = 12-bit c runs at 10 MHz.
(a)
What frequency comes out of its top bit?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What's its largest value?
Check
always @(posedge clk) r <= {r[N-2:0], d}; with N = 8, followed by 1 more registers in a chain.
(a)
How many flip-flops in all?
(b)
After how many clocks does a bit of d reach the last register?
Check
A multiplier's only 1s are a single run of 6 consecutive bits starting at bit 3. How many additions or subtractions does Booth's algorithm perform?
Check
Restoring division: quotient of 200 by 7?
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?
Check
What is the longest error burst a CRC with a 16-bit remainder is guaranteed to detect?
Check
For random corruption, a 16-bit CRC misses an error with probability . What is that as a power of ten (the exponent)?
Check
A table-driven 16-bit CRC looks up 4 bits of the message at a time. How many entries does its table have?
Check
A bitwise CRC processes one bit per step. How many steps for a 100-byte message?
Check
How many flip-flops does a serial CRC register for an 8-bit CRC use?
Check
Two 8-bit two's-complement numbers: −68 and +6.
(a)
What unsigned value does the bit pattern for −68 have?
(b)
What's their sum, as a signed value?
(c)
What unsigned value does the sum's 8-bit pattern have?
Check
A path runs from one flip-flop through 20 gates of 20 ps each to another flip-flop. The flip-flops have = 60 ps and a setup time of 50 ps.
(a)
What's the logic delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What's the shortest clock period?
(c)
What's the highest clock frequency?
Check
A 4-bit binary counter runs from a 12 MHz clock.
(a)
What's its largest count?
(b)
At what frequency does its top bit toggle through a full cycle?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(c)
How long is one full cycle of the count, from 0 back to 0?
Check
A memory has 20 address bits and 8-bit words.
(a)
How many words does it hold?
(b)
How many kibibytes (1 KiB = 1024 bytes)?
(c)
How many data wires does it need?
Check
A link protects 64-byte frames with a 16-bit CRC.
(a)
What is the longest error burst it's guaranteed to catch?
(b)
What fraction of each frame is the CRC?
Check
A byte-wide table-driven 8-bit CRC processes 256 bytes.
(a)
How many table lookups does it make?
(b)
How many shift steps would the bitwise version take?
Check
Two's complement in 8 bits.
(a)
What unsigned value has the same bits as −77?
(b)
What does 5 + (−77) give in 8 bits, as a signed value?
Check
A 12 MHz clock drives a modulo-24 counter and a one-hot state machine with 24 states.
(a)
How many flip-flops does the counter need?
(b)
How many more does the one-hot machine use?
Check
A design must run at 2 GHz with flip-flops of = 30 ps and = 20 ps.
(a)
How much logic delay is allowed between registers?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
How many 25 ps gates deep can the logic be?
Check
A memory has 20 address lines and 8-bit words, and an FPGA LUT implements its logic in 6-input blocks.
(a)
How many bits does the memory hold?
(b)
How many configuration bits does one 6-input LUT hold?
Check
An inverter chain drives a load 256 times its input.
(a)
About how many stages are best?
(b)
What's the delay of a single inverter driving it, in τ?
Check
A synchronizer at a 1 ns period uses flops with τ = 60 ps and 0.05 ns setup.
(a)
How many decades of MTBF does each extra stage add?
(b)
What's the exponent of e?
Check
A message of 32 bytes gets an 8-bit CRC.
(a)
What's the overhead?
(b)
What's the longest burst of errors it's guaranteed to detect?
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
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
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 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?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to C7