NAND
NAND
Q
Clk o
NAND
~Q
NAND
K
~R o
Fig. 5 JK-Flip-Flop With Reset
Use the structural model designed in the prelab with the following module definition. Give all your gates a delay of 2 and make sure that if reset is set to 1, the output is 0. See the design in Fig. 5 to see how to implement the reset.
module JK(out, j, k, ck, reset);
input j, k, clk, reset;
output out;