Hardware, Computer Architecture, Xilinx, Vivado, High Level Design.
= 0; j < MAT_B_COLS; j++) { // Iterate over the columns of the B matrix sw_result[i][j] = 0; // Do the inner product of a row of A and col of B for(int k = 0; k < MAT_B_ROWS; k++) { sw_result[i][j] += in_mat_a[i][k] * in_mat_b[k][j]; } } } //#ifdef HW_COSIM // Run the AutoESL matrix multiply block