Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Thank you! BTW: Is there a difference in latency/throughput between accessing a 2D local memory row by row or accessing it column by column? --- Quote End --- The compiler should do a good job of building and optimizing the local memory system regardless of how you access it - local memory doesn't incur any penalty from random accesses. If you're not accessing every single row or column (say you access every 4th row/column), then you might see an advantage by accessing column-wise because of the memory banking structure, but that's a bit of a corner case. You can run both in the profiler to see how they perform for your application.