Hardware, Computer Architecture, Xilinx, Vivado, High Level Design.
(hw_result[i][j] != sw_result[i][j]) { err_cnt++; cout << "*"; } //#else cout << sw_result[i][j]; //#endif if (j == MAT_B_COLS - 1) cout << "}" << endl; else cout << ","; } } cout << "}" << endl; //#ifdef HW_COSIM if (err_cnt) cout << "ERROR: " << err_cnt << " mismatches detected!" << endl; else