mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
18 lines
358 B
Systemverilog
18 lines
358 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
// SPDX-FileCopyrightText: 2011 Wilson Snyder
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t;
|
|
|
|
initial begin
|
|
if (a_task(1'b0)) $stop; // <--- Bad: Calling task _as_ function
|
|
end
|
|
|
|
task a_task;
|
|
input ign;
|
|
endtask
|
|
|
|
endmodule
|