D10 Digital design, Verilog and FPGAs · Practice
Testbenches and waveforms
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 8 kinds solid
Check
A block has 24 input bits in all. How long does exhaustive testing take at 1000000 tests per second?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A testbench toggles its clock with always #4 clk = ~clk; and a timescale unit of 1 ns. What frequency is the clock?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
A two-bit counter starts at 0. What value, in decimal, does it hold after 6 clocks?
Check
A 12-bit × 12-bit multiplier is tested exhaustively at 1 thousand tests per second.
(a)
How many tests are there?
(b)
How long do they take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A random testbench drives a 12-bit input with 1000 random values.
(a)
What is the chance it hits one particular value at least once?
(b)
On average, how many times does it hit that value?
Check
A testbench checks a 24+24-bit adder exhaustively, every pair of inputs, at 1 million vectors per second.
(a)
How many vectors is that?
(b)
How many days does it take?
Check
Exhaustive time: 16 bits at 1000 tests/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Two-bit counter after 3 clocks?
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 D10