Professional Documents
Culture Documents
The output variable, at all times The output variable depends not only
1 depends on the combination of on the present input but also depend
input variables. upon the past history of inputs.
Basically D, J-K, and T are three different modifications of the S-R flip-
flop.
S-R FLIP-FLOP
When S is HIGH and R is LOW, the Q output goes HIGH on the
triggering edge of the clock pulse, and the Flip-Flop is SET.
When both S and R are LOW, the output does not change from its prior
state.
initial begin
{clk, rstn} <= 0;
repeat(2) @ (posedge clk);
rstn <= 1;
repeat(20) @ (posedge clk);
$finish;
end
endmodule