hope this helps (by the way, in verilog x-> 1 or x->0 is an edge).
module ex1(in,reset_b,out);
input in,reset_b;
output out;
reg out;
always @(in or negedge reset_b)
if (!reset_b) out<=1'b0;
else out<=~out;
endmodule
module testbench ;
reg IN1 , RESET ;
wire OUT;
initial
$monitor( $time , " OUT = %b , IN1 = %b , RESET = %b " ,OUT , IN1 , RESET );
initial
begin
RESET=1'b0; // reset, initial value
#10 IN1=1'b0;RESET=1'b1;
#10 IN1=1'b1;
#5 RESET=1'b1;
#10 RESET=1'b0;IN1=1'b0;
#10 RESET = 1'b1;IN1=1'b1;
end
ex1 ex11(IN1 , RESET, OUT );
endmodule