mirror of https://github.com/zachjs/sv2v.git
19 lines
359 B
Systemverilog
19 lines
359 B
Systemverilog
|
|
module example(
|
||
|
|
input wire [7:0] inp,
|
||
|
|
output wire [7:0] out
|
||
|
|
);
|
||
|
|
assign out = ~inp;
|
||
|
|
endmodule
|
||
|
|
|
||
|
|
module top;
|
||
|
|
reg arr1 [7:0][1:0];
|
||
|
|
reg arr2 [7:0][1:0][1:0];
|
||
|
|
wire [7:0] out1, out2;
|
||
|
|
example e1(arr1[0], out1);
|
||
|
|
example e2(arr2[0][0], out2);
|
||
|
|
initial begin
|
||
|
|
#1 arr1[0] = 8'hAD;
|
||
|
|
#1 arr2[0][0] = 8'h42;
|
||
|
|
end
|
||
|
|
endmodule
|