sv2v/test/core/instance_array.sv

15 lines
313 B
Systemverilog
Raw Normal View History

2020-06-18 04:01:59 +02:00
module Example;
parameter FOO = 1;
initial $display("%0d", FOO);
endmodule
module top;
Example e[3][4:5]();
defparam e[2][5].FOO = 1;
defparam e[2][4].FOO = 2;
2020-06-18 04:01:59 +02:00
defparam e[1][5].FOO = 4;
defparam e[1][4].FOO = 8;
defparam e[0][5].FOO = 16;
defparam e[0][4].FOO = 32;
2020-06-18 04:01:59 +02:00
endmodule