instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, bool& overfl...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: // No #pragma HLS pipeline in the code
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, bool& overflow ) ...
The right code snippet is: // No #pragma HLS pipeline in the code
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, b...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: // No #pragma HLS pipeline in the code
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, bool& overfl...
The wrong part of the code is: #pragma HLS unroll factor=2 inner_loop The right code snippet is: // No #pragma HLS unroll in the code
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, bool& overflow ) ...
The right code snippet is: // No #pragma HLS unroll in the code
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, bool select, ap_uint<8>& s, b...
The wrong part of the code is: #pragma HLS unroll factor=2 inner_loop The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void top_module( bool clk, bool reset, ap_uint<8> a, ap_uint<8> b, ap_uint<4> data, ...
The wrong part of the code is: #pragma HLS unroll factor=2 inner_loop The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: // No #pragma HLS unroll in the code
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: matrix.data[4][4] = s_axis_tdata(255, 240); The right code snippet is: matrix.data[3][3] = s_axis_tdata(255, 240);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: matrix.data[3][3] = s_axis_tdata(255, 240);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: matrix.data[4][4] = s_axis_tdata(255, 240); The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: matrix.data[4][4] = s_axis_tdata(255, 240); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: matrix.data[3][3] = s_axis_tdata(255, 240);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: matrix_t matrix; The right code snippet is: static matrix_t matrix;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: static matrix_t matrix;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: matrix_t matrix; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: matrix_t matrix; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static matrix_t matrix;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: matrix.data[0][0] = s_axis_tdata(15, 16); The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: matrix.data[0][0] = s_axis_tdata(15, 16); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: matrix.data[0][0] = s_axis_tdata(15, 16); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: for (int j = 0; j != 4; j++) { The right code snippet is: for (int j = 0; j < 4; j++) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: for (int j = 0; j < 4; j++) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: for (int j = 0; j != 4; j++) { The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: for (int j = 0; j != 4; j++) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int j = 0; j < 4; j++) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: short temp = s_axis_tdata(15, 0); matrix.data[0][0] = temp; The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: short temp = s_axis_tdata(15, 0); matrix.data[0][0] = temp; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: short temp = s_axis_tdata(15, 0); matrix.data[0][0] = temp; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: matrix.data[0][0] = s_axis_tdata(15, 0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The right code snippet is: for (int i = 0; i < 4; i++) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: for (int i = 0; i < 4; i++) {
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 4; i++) {
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: matrix.data[i][j] = ; The right code snippet is: matrix.data[i][j] = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: matrix.data[i][j] = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: matrix.data[i][j] = ; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: matrix.data[i][j] = ; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: matrix.data[i][j] = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: m_axis_tdata = *((unsigned int*)in_matrix); The right code snippet is: m_axis_tdata = *((unsigned int*)out_matrix);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: m_axis_tdata = *((unsigned int*)out_matrix);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: m_axis_tdata = *((unsigned int*)in_matrix); The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: m_axis_tdata = *((unsigned int*)in_matrix); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: m_axis_tdata = *((unsigned int*)out_matrix);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=3 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=3 dim=2 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=3 dim=2 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=in_matrix block factor=2 dim=2
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS DATAFLOW_REWIND The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS DATAFLOW_REWIND The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS DATAFLOW_REWIND The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk ap_none #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axi...
The wrong part of the code is: #pragma HLS INTERFACE ap_clk ap_none The right code snippet is: #pragma HLS INTERFACE ap_clk axis
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk ap_none #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tva...
The right code snippet is: #pragma HLS INTERFACE ap_clk axis
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk ap_none #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both...
The wrong part of the code is: #pragma HLS INTERFACE ap_clk ap_none The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk ap_none #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pr...
The wrong part of the code is: #pragma HLS INTERFACE ap_clk ap_none The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_clk axis
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=in_matrix The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=in_matrix The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=1024 port=in_matrix The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=1024 port=in_matrix The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=1024 port=in_matrix The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=1024 port=in_matrix The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_memory depth=1024 port=in_matrix
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in_matrix The right code snippet is: #pragma HLS INTERFACE ap_none port=in_matrix
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS INTERFACE ap_none port=in_matrix
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in_matrix The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in_matrix The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=in_matrix
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_t...
The wrong part of the code is: #pragma HLS UNROLL for (int i = 0; i < 4; i++) { The right code snippet is: for (int i = 0; i < 4; i++) {
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both port=s_axis_tvalid...
The right code snippet is: for (int i = 0; i < 4; i++) {
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS UNROLL for (int i = 0; i < 4; i++) { The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk axis #pragma HLS INTERFACE ap_rst_n axis #pragma HLS INTERFACE axis register both port=s_axis_tdata #pragm...
The wrong part of the code is: #pragma HLS UNROLL for (int i = 0; i < 4; i++) { The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: for (int i = 0; i < 4; i++) {
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_n...
The wrong part of the code is: douta = mem[addra+1].data; The right code snippet is: douta = mem[addra].data;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_none p...
The right code snippet is: douta = mem[addra].data;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INT...
The wrong part of the code is: douta = mem[addra+1].data; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFA...
The wrong part of the code is: douta = mem[addra+1].data; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: douta = mem[addra].data;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_n...
The wrong part of the code is: int WIDTH; The right code snippet is: const int WIDTH = 12;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_none p...
The right code snippet is: const int WIDTH = 12;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INT...
The wrong part of the code is: int WIDTH; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFA...
The wrong part of the code is: int WIDTH; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: const int WIDTH = 12;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_n...
The wrong part of the code is: mem[addra].data = dina << WIDTH; The right code snippet is: mem[addra].data = dina;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_none p...
The right code snippet is: mem[addra].data = dina;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INT...
The wrong part of the code is: mem[addra].data = dina << WIDTH; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFA...
The wrong part of the code is: mem[addra].data = dina << WIDTH; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: mem[addra].data = dina;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_n...
The wrong part of the code is: while (clka) { The right code snippet is: if (clka) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_none p...
The right code snippet is: if (clka) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INT...
The wrong part of the code is: while (clka) { The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFA...
The wrong part of the code is: while (clka) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (clka) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_n...
The wrong part of the code is: ap_int<WIDTH> dina, The right code snippet is: ap_uint<WIDTH> dina,
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_none p...
The right code snippet is: ap_uint<WIDTH> dina,
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFACE ap_none port=addra #pragma HLS INT...
The wrong part of the code is: ap_int<WIDTH> dina, The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clka #pragma HLS INTERFACE ap_clk port=clkb #pragma HLS INTERFACE ap_none port=wea #pragma HLS INTERFA...
The wrong part of the code is: ap_int<WIDTH> dina, The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<WIDTH> dina,
'USE'