9 A Test Bench for SR Latch // Testbench for the SR latch // module tbsrlatch(); wire q, qbar; reg s, r; srlatch mysrlatch(s, r, q, qbar); initial begin s = 1 b0; r = 1 b0; #10 s = 1 b1; r = 1 b0; #10 s = 1 b0; r = 1 b0; #10 s = 1 b0; r = 1 b1; #10 s = 1 b0; r = 1 b0; #10 s = 1 b1; r = 1 b1; #10 s = 1 b0; r = 1 b0; #10 s = 1 b0; r = 1 b1; #50; $finish; end endmodule
{}