verilator/test_regress/t/t_process_kill.v

30 lines
497 B
Systemverilog
Raw Normal View History

2023-06-01 16:02:08 +02:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2023 Antmicro Ltd
2023-06-01 16:02:08 +02:00
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
module t (
input clk
);
2023-06-01 16:02:08 +02:00
2026-03-10 02:38:29 +01:00
process p;
2023-06-01 16:02:08 +02:00
2026-03-10 02:38:29 +01:00
initial begin
wait (p);
p.kill();
p.await();
$write("*-* All Finished *-*\n");
$finish;
end
always @(posedge clk) begin
if (!p) begin
p = process::self();
end
else begin
$stop;
end
end
2023-06-01 16:02:08 +02:00
endmodule