You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler flattens all array declarations of the form:
decl a: bit<32>[4 bank 2][4 bank 2];
into
int[10][10] a;
#... partition cyclic factor = 2*2
The banking structure it produces is:
0
1
2
3
0
1
2
3
However, logically, it should've produced the banking structure:
0
1
0
1
2
3
2
3
To fix this, three things need to be done:
Stop flattening all array accesses.
Generate dim based banking pragmas for the arrays
If SDSoC doesn't allow for multidimensional arrays on interfaces, write a library to pack and unpack single dimensional arrays into multidimensional ones.
The text was updated successfully, but these errors were encountered:
The compiler flattens all array declarations of the form:
into
The banking structure it produces is:
However, logically, it should've produced the banking structure:
To fix this, three things need to be done:
dim
based banking pragmas for the arrayspack
andunpack
single dimensional arrays into multidimensional ones.The text was updated successfully, but these errors were encountered: