C7 Digital logic · Practice
Problem set 12: digital logic across the course
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.
0 solved
0 in a row
0 of 13 kinds solid
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?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in C7