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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: for (int i = 0; i < 16; i++) { // do something } The right code snippet is: for (int i = 0; i < 16; i++) { #pragma HLS unroll // do something }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: for (int i = 0; i < 16; i++) { #pragma HLS unroll // do something }
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: for (int i = 0; i < 16; i++) { // do something } 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: for (int i = 0; i < 16; i++) { // do something } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 16; i++) { #pragma HLS unroll // do something }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: ap_uint<8> rd_data_count_reg = ap_uint<8>(0); The right code snippet is: ap_uint<8> rd_data_count_reg = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: ap_uint<8> rd_data_count_reg = 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: ap_uint<8> rd_data_count_reg = ap_uint<8>(0); 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: ap_uint<8> rd_data_count_reg = ap_uint<8>(0); The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<8> rd_data_count_reg = 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: rd_axis.data = (fifo_mem[17], 0); The right code snippet is: rd_axis.data = (fifo_mem[rd_ptr], 0);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: rd_axis.data = (fifo_mem[rd_ptr], 0);
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: rd_axis.data = (fifo_mem[17], 0); 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: rd_axis.data = (fifo_mem[17], 0); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: rd_axis.data = (fifo_mem[rd_ptr], 0);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem cyclic The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem cyclic 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem factor=3 The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem factor=3 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem complete dim=2 The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete dim=1
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem complete dim=2 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS array_partition variable=fifo_mem complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=fifo_mem complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS pipeline 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS pipeline 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS pipeline 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS interface ap_stable port=return The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS interface ap_stable port=return 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS interface ap_stable port=return The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS interface m_axi port=fifo_mem The right code snippet is: #pragma HLS interface m_axi port=rd_axis
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS interface m_axi port=rd_axis
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS interface m_axi port=fifo_mem 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS interface m_axi port=fifo_mem The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=rd_axis
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS interface ap_memory port=rd_data_count_reg The right code snippet is: #pragma HLS interface ap_memory port=fifo_mem
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS interface ap_memory port=fifo_mem
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS interface ap_memory port=rd_data_count_reg 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS interface ap_memory port=rd_data_count_reg The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_memory port=fifo_mem
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS interface ap_vld port=rd_axis The right code snippet is: #pragma HLS interface ap_none port=full
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS interface ap_none port=full
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS interface ap_vld port=rd_axis 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS interface ap_vld port=rd_axis The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=full
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_coun...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& rd_data_count ) {...
The right code snippet is: #pragma HLS unroll
'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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool& full, bool& empty, ap_uint<8>& r...
The wrong part of the code is: #pragma HLS unroll factor=2 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: #include <ap_axi_sdata.h> typedef ap_axis<64, 1, 1, 1> axis_t; void rx_fifo( bool rst, axis_t& wr_axis, axis_t& rd_axis, bool&...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a[5] + b[5] + cin; cout = (a[3] & b[3]) | (a[...
The wrong part of the code is: sum = a[5] + b[5] + cin; The right code snippet is: sum = a + b + cin;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a[5] + b[5] + cin; cout = (a[3] & b[3]) | (a[3] & ...
The right code snippet is: sum = a + b + cin;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a[5] + b[5] + cin; cout = (a[3] & ...
The wrong part of the code is: sum = a[5] + b[5] + cin; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: sum = a[5] + b[5] + cin; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sum = a + b + cin;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: bool& cout = true; The right code snippet is: bool& cout;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: bool& cout;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: bool& cout = true; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: bool& cout = true; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool& cout;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a << 5 + b << 5 + cin; cout = (a[3] & b[3]) |...
The wrong part of the code is: sum = a << 5 + b << 5 + cin; The right code snippet is: sum = a + b + cin;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a << 5 + b << 5 + cin; cout = (a[3] & b[3]) | (a[3...
The right code snippet is: sum = a + b + cin;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a << 5 + b << 5 + cin; cout = (a[3...
The wrong part of the code is: sum = a << 5 + b << 5 + cin; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: sum = a << 5 + b << 5 + cin; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: sum = a + b + cin;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: while(true); The right code snippet is: bool& cout;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: bool& cout;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: while(true); 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: while(true); The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: bool& cout;
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { int8_t a_signed = a; int8_t b_signed = b; int8_t cin_si...
The wrong part of the code is: int8_t a_signed = a; int8_t b_signed = b; int8_t cin_signed = cin; sum = a_signed + b_signed + cin_signed; The right code snippet is: sum = a + b + cin;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { int8_t a_signed = a; int8_t b_signed = b; int8_t cin_signed ...
The right code snippet is: sum = a + b + cin;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { int8_t a_signed = a; int8_t b_signed = b; in...
The wrong part of the code is: int8_t a_signed = a; int8_t b_signed = b; int8_t cin_signed = cin; sum = a_signed + b_signed + cin_signed; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { int8_t ...
The wrong part of the code is: int8_t a_signed = a; int8_t b_signed = b; int8_t cin_signed = cin; sum = a_signed + b_signed + cin_signed; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: sum = a + b + cin;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; sum = a + b + cin; cout = (a[3] ...
The wrong part of the code is: sum = a + b + cin; sum = a + b + cin; The right code snippet is: sum = a + b + cin;
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; sum = a + b + cin; cout = (a[3] & b[3...
The right code snippet is: sum = a + b + cin;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; sum = a + b + cin; co...
The wrong part of the code is: sum = a + b + cin; sum = a + b + cin; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: sum = a + b + cin; sum = a + b + cin; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: sum = a + b + cin;
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: const bool cin = false; The right code snippet is: const bool cin;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: const bool cin;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: const bool cin = false; 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: const bool cin = false; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: const bool cin;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: const ap_uint<4> a_buf = a.range(3, 0); The right code snippet is: const ap_uint<4> a;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: const ap_uint<4> a;
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: const ap_uint<4> a_buf = a.range(3, 0); 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: const ap_uint<4> a_buf = a.range(3, 0); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: const ap_uint<4> a;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 The right code snippet is: #pragma HLS array_partition variable=sum complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: #pragma HLS array_partition variable=sum complete
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=sum complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=5 The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=5 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=5 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=2 The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=1
'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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=2 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=3 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & c...
The wrong part of the code is: #pragma HLS dataflow region 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) | (a[3] & cin) |...
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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a + b + cin; cout = (a[3] & b[3]) ...
The wrong part of the code is: #pragma HLS dataflow region 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: void adder_4bit( const ap_uint<4> a, const ap_uint<4> b, const bool cin, ap_uint<4>& sum, bool& cout ) { sum = a...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'