Forum Discussion
Altera_Forum
Honored Contributor
8 years agoThere are attributes you can use when declaring the local variable (that you want to be instantiated as an M20K) to help control configuration in section 12.2 of the Intel FPGA SDK for Opencl Programming Guide. For example, you can define the number of banks to break your memory into, the width of the banks, etc. You can also see some examples and more discussion in the Intel FPGA SDK for Opencl Best Practices Guide section 7.4.
As far as MLABs go, my experience has been that's a decision the compiler makes - I do not know of any sort of attributes to infer them. In my experience they're used for memories with shallow depth.