mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
2102f86909
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
32 lines
621 B
Verilog
32 lines
621 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2015 by Johan Bjork.
|
|
|
|
parameter N = 5;
|
|
|
|
interface intf;
|
|
logic [N-1:0] data;
|
|
endinterface
|
|
|
|
module t (
|
|
input logic clk
|
|
);
|
|
intf localinterface [N-1:0]();
|
|
|
|
generate
|
|
genvar i,j;
|
|
for(i = 0; i < N; i++) begin
|
|
logic [N-1:0] dummy;
|
|
for(j = 0; j < N; j++) begin
|
|
assign dummy[j] = localinterface[j].data[i];
|
|
end
|
|
end
|
|
endgenerate
|
|
|
|
initial begin
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
endmodule
|