2011-02-15 01:25:30 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2020-03-21 16:24:24 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
|
// any use, without warranty, 2011 by Wilson Snyder.
|
|
|
|
|
// 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
|