Draft preview. Lessons are being written and reviewed.

Verilog practice / Problem 10

EasySequential

8-bit register with enable

An 8-bit register. At a rising clock edge: if rst is 1, q becomes 0. Otherwise, if en is 1, q loads d. If en is 0, q keeps its value.

Ports

NameDirectionBits
clkinput1
rstinput1
eninput1
dinput8
qoutput8

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 Enables and clock gating.

reg_enable.vCtrl + Enter runs