verilator/test_regress/t/t_timing_initial_always.v
Krzysztof Bieganski 97e9996f0b
Fix optimized-out sentrees with --timing (#5080) (#5349)
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
2024-08-08 21:57:12 +01:00

26 lines
469 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2022 by Antmicro Ltd.
// SPDX-License-Identifier: CC0-1.0
module t;
wire sig;
foo foo(sig);
initial #1 begin
$write("*-* All Finished *-*\n");
$finish();
end
endmodule
module foo(inout sig);
reg cond = $c(0);
always @(sig) begin
if (cond) begin
#1; $c("");
end
end
endmodule