Focus on C - 2024.1 English - XD261

Vitis Tutorials: Vitis HLS (XD261)

Document ID
XD261
Release Date
2024-06-19
Version
2024.1 English

Code Analyzer focus on C

Similarly, we can see that something is not right with C because this top-level argument is used in 4 communication channels between processes. This is the observed behavior:

  1. Loop2 visits every location and clears them

  2. Loop3 does accumulation on each individual location

  3. In short, if we were to merge the 2 loops then each location is cleared and is followed by a single addition, not an accumulation

Consequences:

  1. loop2 is not necessary

  2. loop3 can do C[i][j] = B[i][j] * E[i][j];

We can simplify the code to solve these issues.

After the code updates we can check the new version.