verilator/test_regress/t/t_trace_two_b.v
2020-02-29 09:44:51 -05:00

29 lines
467 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2005 by Wilson Snyder.
module t (/*AUTOARG*/
// Inputs
clk
);
input clk;
integer cyc; initial cyc=1;
integer c_trace_on;
real r;
sub sub ();
always @ (posedge clk) begin
if (cyc!=0) begin
r <= r + 0.1;
end
end
endmodule
module sub;
integer inside_sub_a = 2;
endmodule