Draft preview. Lessons are being written and reviewed.

Verilog practice / Problem 9

EasySequential

D flip-flop with synchronous reset

On every rising edge of clk, q takes the value of d. If rst is 1 at that edge, q becomes 0 instead.

Ports

NameDirectionBits
clkinput1
rstinput1
dinput1
qoutput1

How it's checked

Each cycle: the test sets the inputs, waits for your logic to settle, checks the outputs, then gives one rising clock edge. It holds rst high for the first two cycles and once more later on.

Stuck? Read the lesson The D flip-flop.

dff.vCtrl + Enter runs