Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- It's legal Verilog syntax. Just have a look on the IEEE 1364 Verilog specification, paragraph 4.9 Arrays. It has this example:
wire y; 8-bit-wide vector wire indexed from 0 to 7 --- Quote End --- So ,the document i referred to is half-baked. and it has no other difference with reg[15:0]mem[16:0];except that it initialized by assign =...........,and reg[15:0]mem[16:0];should be initialized in always module word by word?yes? And i think the two data types for defining the memory array,will be the same situation that using the LEs resource inside the p-chip .Is this a right point of view? thanks everyone for help.