verilator/test_regress/t/t_genvar_for_bad.v
2020-03-21 11:24:24 -04:00

29 lines
573 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 (/*AUTOARG*/
// Outputs
ov,
// Inputs
clk, iv
);
parameter N = 4;
input clk;
input [63:0] iv[N-1:0];
output logic [63:0] ov[N-1:0];
genvar i;
generate
always @(posedge clk) begin
for (i=0; i<N; i=i+1) begin
ov[i] <= iv[i];
end
end
endgenerate
endmodule