mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-05 08:52:33 +02:00
By adding ivtest to the iverilog source tree, it is easier to keep the regression test synchronized with the source that is being tested. This should be especially helpful for PRs that add a new feature, and have a matching ivtest PR with the regression test for that feature.
18 lines
277 B
Verilog
18 lines
277 B
Verilog
`timescale 1ns/1ns
|
|
module top;
|
|
reg itrig = 1'b0;
|
|
wire [31:0] tm, stm;
|
|
|
|
assign tm = itrig * $time;
|
|
assign stm = itrig * $stime;
|
|
|
|
initial begin
|
|
$monitor(tm,, stm);
|
|
#1 itrig = 1'b1;
|
|
#1 itrig = 1'b0;
|
|
#1 itrig = 1'b1;
|
|
#1 itrig = 1'b0;
|
|
end
|
|
|
|
endmodule
|