Forum Discussion
Hi Daouda
I tried to increase the unroll factor(4,8,16...) but it will cause RAM utilization problem as below picture. Do you have any recommendation of it? Another question is that if i don't set any unroll factor ( #pragma unroll ) would the compile process set it automatically?
aoc: Warning RAM Utilization is at 128%
- DDIAKITE3 years ago
Occasional Contributor
Hi Wei-Chih,
Can you tell me on which loop you are applying the unrolling ?
You should also be careful with the memory access pattern of your application. Use the optimization guide to optimize your memory access if needed and decrease the BRAM usage. There are multiple LSU implementations depending on your memory access pattern.
If you "#pragma unroll" without setting any unroll factor, your loop will be fully unrolled. For partial unrolling, you need to specify the unroll factor.
Best regards,
Daouda