`timescale 1ps/1ps
module top_module ( );
reg clk;
real CYCLE = 10;
always begin
clk = 0;#(CYCLE/2) ;
clk = 1;#(CYCLE/2);
end
dut u_dut(
.clk(clk)
);
endmodul
Testbench1
module top_module ( output reg A, output reg B );//
// generate input patterns here
initial begin
A = 1'b0;
#10 A=1'b1;
#10 A=1'b0;
end
initial begin
B=1'b0;
#15 B=1'b1;
#25 B=1'b0;
end
endmodule