verilator/test_regress/t/t_timing_split.v

36 lines
735 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2023 Jomit626
// SPDX-License-Identifier: CC0-1.0
2026-03-03 13:21:24 +01:00
module t;
2026-03-10 02:38:29 +01:00
logic clk = 0;
logic data = 0;
2026-03-10 02:38:29 +01:00
always #5 clk <= ~clk;
2026-03-10 02:38:29 +01:00
task static foo();
@(negedge clk);
data = 1;
@(negedge clk);
data = 0;
endtask
2026-03-10 02:38:29 +01:00
`define foo8() \
foo();foo();foo();foo();foo();foo();foo();foo()
2026-03-10 02:38:29 +01:00
`define foo64() \
`foo8();`foo8();`foo8();`foo8();`foo8();`foo8();`foo8();`foo8()
2026-03-10 02:38:29 +01:00
`define foo512() \
`foo64();`foo64();`foo64();`foo64();`foo64();`foo64();`foo64();`foo64()
2026-03-10 02:38:29 +01:00
initial begin
`foo512();
`foo512();
$write("*-* All Finished *-*\n");
$finish;
end
endmodule