cucapra/dahlia

HLS partition issue

Closed this issue · 2 comments

@sa2257 mentioned (#63 (comment)) that this example:

for (i = 0; i < N*N; i++) 
#pragma HLS unroll factor=N  
    Minim_Loop: while (A[i] != B[i]) {    
      if (A[i] > B[i])  
        A[i] -= B[i];  
      else 
        B[i] -= A[i];  
    }    
    C[i] = A[i]; 
}

fails with:

ERROR: [XFORM 203-103] Cannot partition array 'A' (/.../gcd.cpp:3): array access out of bound (/.../gcd.cpp:20:5).
ERROR: [HLS 200-70] Pre-synthesis failed.

where,
Line 3 is the function definition.
Line 20 is C[i] = A[i]

Sachille will update when he debugs it.

@sa2257 any updates?