verilator/test_regress/t/t_trace_two_b.v

30 lines
523 B
Systemverilog
Raw Normal View History

2020-02-29 14:44:51 +00:00
// 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
2020-02-29 14:44:51 +00:00
module t (/*AUTOARG*/
// Inputs
clk
);
input clk;
integer cyc; initial cyc=1;
integer c_trace_on;
real r;
sub sub ();
always @ (posedge clk) begin
2020-02-29 15:06:52 +00:00
if (cyc != 0) begin
2020-02-29 14:44:51 +00:00
r <= r + 0.1;
end
end
endmodule
module sub;
integer inside_sub_a = 2;
endmodule