C7 Digital logic · Practice
Reading Verilog
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 6 kinds solid
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?
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