Loop Optimization

Feb 25, 2006 0 Replies

Hi all! I' using Handel-C to target hardware (a board with spartan IIE) and i'd like to optimize this following macro (where cartelle[i][j][k] is a ram unsigned 7 cartelle[6][3][5]) and posizioni is a ram unsigned 8 posizioni[90]). Have you any idea? Thanks!



-------- static macro proc Fill_position() { unsigned 7 n;



while(i!=6) { j=0; while(j!=3) { k=0; while(k!=5) { n = cartelle[i][j][k]-1; par{ posizioni[n]=i@j@k; k++; } }



j++;



}

i++; }



}

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required