Altera_Forum
Honored Contributor
8 years agoHow to infer BRAM fan-out
I am doing an OpenCL project of vector multiplication of VecA (M * 1) and VecB (1 * N) which produces a matrix MatC (M * N). I want to use a fan-out design which can support a 2-D processing engine array. Can I go like this to infer fan-our? :
https://alteraforum.com/forum/attachment.php?attachmentid=14222&stc=1 __kernel void matMult() { ...... # pragma unroll for(int x = 0; x < M; x++) {# pragma unroll for(int y = 0; y < N; y++) { MatC[x][y] += VecA[x] * VecB[y]; } } ...... } Any advice would be much appreciated!!