verilator/test_regress/t/t_flag_timescale.v
2021-01-23 10:31:41 -05:00

25 lines
498 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under The Creative Commons Public Domain, for
// any use, without warranty, 2020 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
sub sub();
initial begin
$write("t: ");
$printtimescale;
sub.pts();
$write("*-* All Finished *-*\n");
$finish;
end
endmodule
`timescale 1s/1s
module sub;
task pts;
$write("sub: ");
$printtimescale;
endtask
endmodule