Testing a module with $strobe
//test for data flow AND2 module
AND2 a2(in1,in2,out); //instantiate AND2 module
initial begin //Generate test data
$strobe("in1=%b in2=%b out=%b",in1, in2, out);
$strobe("in1=%b in2=%b out=%b",in1, in2, out);
$strobe("in1=%b in2=%b out=%b",in1, in2, out);
$strobe("in1=%b in2=%b out=%b",in1, in2, out);
Displays data at the end of time step