Hardware, Computer Architecture, Xilinx, Vivado, High Level Design.
MAT_B_COLS; j++) { #pragma HLS PIPELINE II=3 //#pragma HLS UNROLL res[i][j] = 0; Product: for(int k = 0; k < MAT_B_ROWS; k++) { res[i][j] += a[i][k] * b[k][j]; } } } } This code performs matrix multiplication on two matrices a and b and stores the result in res. The #pragma HLS pipeline II=3