Altera_Forum
Honored Contributor
9 years agoCyclone II On-chip RAM megafunction
Hi,
I am going to implement a 512-point 16-bit FFT core in a Cyclone II FPGA device. The FFT core itself needs 22 M4K RAM blocks and there are 36 M4K blocks available. Meanwhile, I also need to cache 2048-point 16-bit raw data in the on-chip RAM as well as the results of the FFT core, which is composed of 16-bit real and 16-bit imag, and 4-bit exponent, in total 512 36-bit, roughly 5 M4K blocks. So, I need to reserve 8 M4K blocks for Raw data storage, 5 M4K blocks for FFT results. My question is, if I create two megafunctions, one for raw data, 2048 16-bits of memory, and one for FFT output, 512 36-bits of memory. Will these memory be reserved and only accessible by instantiating the corresponding megafunctions? If the FFT core calls for memory, will it automatically use the rest of M4K blocks, or it will use whatever available, in other words, there's potential risk to overwrite the memory used for raw data or FFT output storage? Thanks, -Roger