mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
30 lines
494 B
Verilog
30 lines
494 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2004 by Wilson Snyder.
|
|
|
|
//bug830
|
|
module sub();
|
|
endmodule
|
|
|
|
function integer cdiv(input integer x);
|
|
begin
|
|
cdiv = 10;
|
|
end
|
|
endfunction
|
|
|
|
module t (/*AUTOARG*/);
|
|
|
|
genvar j;
|
|
generate
|
|
for (j = 0; j < cdiv(10); j=j+1)
|
|
sub sub();
|
|
endgenerate
|
|
|
|
initial begin
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
|
|
endmodule
|