Texts: c
B
ntkses
reset
The JK flip-flop behavior is as follows:
module JK_FF (J,K,CLK,Q);
output Q;
input J,K,CLK;
reg Q;
always @ (posedge CLK)
case ({J,K})
2'b00: Q=Q;
2'b01: Q=1'b0;
2'b10: Q=1'b1;
2'b11: Q=~Q; //TTL2'b11 if inputs are impeded
endcase
endmodule
a) Derive the behavior of the sequential circuit and present it in the form of a state diagram, state table, or any pseudo-code.
b) Write a Verilog behavioral description of the sequential circuit.
c) Write a Verilog testbench for the circuit and the first five lines of the expected Simulation Report.