mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 23:27:48 +00:00
28 lines
570 B
Systemverilog
28 lines
570 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 Wilson Snyder.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t;
|
|
|
|
task automatic t;
|
|
// verilator no_inline_task
|
|
string trace;
|
|
|
|
$display("== Trace Func");
|
|
trace = $stacktrace();
|
|
if (trace == "") $stop;
|
|
$display("%s", trace);
|
|
|
|
$display("== Trace Task");
|
|
$stacktrace;
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
endtask
|
|
|
|
initial t();
|
|
|
|
endmodule
|