Forum Discussion
Altera_Forum
Honored Contributor
8 years agomemory replication
I'm confused about when and why the compiler replicates memory. I have a kernel that reads in a block of data and fills up a 2D memory array. THe read process is done serially through a channel. ...
Altera_Forum
Honored Contributor
8 years agowhat is your struct of msg_t?
compiler will auto banking at lowest dimension. your lowest dimension is msg_t. maybe you can try use another struct typedef struct{ msg_t kk[512]; } msg_ch; local msg_ch msgMem[180]; for(uint k=0; k<NLDPC/M; k++) { # pragma unroll 1 for(uint r=0; r<M; r++){ msgMem[k].kk[r] = read_channel_intel(LDPC_DEC_SDATA_OUT); } } msg = msgMem[jOffset];