2011-02-15 01:25:30 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2011 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2011-02-15 01:25:30 +01:00
|
|
|
|
2025-09-13 15:28:43 +02:00
|
|
|
module t;
|
2011-02-15 01:25:30 +01:00
|
|
|
|
2025-09-24 01:51:34 +02:00
|
|
|
initial begin
|
|
|
|
|
if (a_task(1'b0)) $stop; // <--- Bad: Calling task _as_ function
|
|
|
|
|
end
|
2011-02-15 01:25:30 +01:00
|
|
|
|
2025-09-24 01:51:34 +02:00
|
|
|
task a_task;
|
|
|
|
|
input ign;
|
|
|
|
|
endtask
|
2011-02-15 01:25:30 +01:00
|
|
|
|
|
|
|
|
endmodule
|