Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- @GKP, I am explaining with the help of example. e.g. variablearray is array (1 to nbrvarible_ct+10 ) of slv32; the equivalent memory space occupy by this 2-D array in terms of 1-D array is... var1[(NBRVARIBLE_CT+10)*32:0] ;//here var1 is the array of (NBRVARIBLE_CT+10) locations & the each location of this array is of 32 bit wide.. I hope this is the proper explaination for you. --- Quote End --- Hi, you would like to define a memory ? reg [7:0] mem [15:0] // defines a 16x8 memory , Data width 16 bit, Address width 8bit Kind regards GPK