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:
#pragma HLS INTERFACE ap_clk port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
signed int mem[MEM_DEPTH];
The right code snippet is:
fifo_entry mem[MEM_DEPTH]; | '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=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
fifo_entry mem[MEM_DEPTH]; | '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=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
signed int mem[MEM_DEPTH];
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=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
signed int mem[MEM_DEPTH];
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
fifo_entry mem[MEM_DEPTH]; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
#pragma HLS UNROLL
// loop body
}
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
#pragma HLS UNROLL
// loop body
}
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
#pragma HLS UNROLL
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
ap_uint<ADDR_WIDTH> head_ptr;
The right code snippet is:
ap_uint<ADDR_WIDTH> head_ptr = 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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
ap_uint<ADDR_WIDTH> head_ptr = 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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
ap_uint<ADDR_WIDTH> head_ptr;
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
ap_uint<ADDR_WIDTH> head_ptr;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<ADDR_WIDTH> head_ptr = 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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
dout = mem[head_ptr].data;
The right code snippet is:
dout = mem[tail_ptr].data; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
dout = mem[tail_ptr].data; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
dout = mem[head_ptr].data;
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
dout = mem[head_ptr].data;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
dout = mem[tail_ptr].data; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=0
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=1
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic 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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic 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=mem complete dim=0 | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
#pragma HLS DATAFLOW join
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
#pragma HLS DATAFLOW join
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS DATAFLOW join
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd_en
#pragma... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd_en
The right code snippet is:
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd_en
#pragma HLS ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd_en
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=tmp_ram_rd_en
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem offset=slave
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem offset=direct | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem offset=direct | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem offset=slave
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem offset=slave
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem offset=direct | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
typedef struct {
ap_uint<DATA_WIDTH> data[2];
} fifo_entry;
The right code snippet is:
typedef struct {
ap_uint<DATA_WIDTH> data;
} fifo_entry; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
typedef struct {
ap_uint<DATA_WIDTH> data;
} fifo_entry; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
typedef struct {
ap_uint<DATA_WIDTH> data[2];
} fifo_entry;
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
typedef struct {
ap_uint<DATA_WIDTH> data[2];
} fifo_entry;
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
typedef struct {
ap_uint<DATA_WIDTH> data;
} fifo_entry; | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
ap_uint<DATA_WIDTH> dout[2]
The right code snippet is:
ap_uint<DATA_WIDTH>& dout | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
ap_uint<DATA_WIDTH>& dout | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
ap_uint<DATA_WIDTH> dout[2]
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
ap_uint<DATA_WIDTH> dout[2]
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
ap_uint<DATA_WIDTH>& dout | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_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:
#pragma HLS INTERFACE ap_clk port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragm... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
// loop body
}
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_rd_en
#pragma HLS... |
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=tmp_ram_r... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
// loop body
}
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 port=rd_clk
#pragma HLS INTERFACE ap_clk port=wr_clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
// loop body
} | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(16, 1);
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 0); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 0); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(16, 1);
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(16, 1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 0); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
ap_uint<16> sum_lo = 0;
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<16> sum_lo = 0;
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
ap_uint<16> sum_lo = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
sum = (sum_hi, sum_lo) ^ (sub << 32);
The right code snippet is:
sum = (sum_hi, sum_lo) ^ (sub ? -1 : 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
sum = (sum_hi, sum_lo) ^ (sub ? -1 : 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
sum = (sum_hi, sum_lo) ^ (sub << 32);
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
sum = (sum_hi, sum_lo) ^ (sub << 32);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
sum = (sum_hi, sum_lo) ^ (sub ? -1 : 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
while(1) {
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi);
}
The right code snippet is:
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
while(1) {
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi);
}
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
while(1) {
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi);
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
ripple_adder(a_hi, sub ? ~b_hi : b_hi, adder_lo.cout, sum_hi); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
signed int a_lo = a.range(15, 0);
The right code snippet is:
ap_uint<16> a_lo = a.range(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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ap_uint<16> a_lo = a.range(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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
signed int a_lo = a.range(15, 0);
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
signed int a_lo = a.range(15, 0);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<16> a_lo = a.range(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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
The right code snippet is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo);
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
ripple_adder(a_lo, sub ? ~b_lo : b_lo, sub, sum_lo); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
ap_uint<16> sum_lo = 0;
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<16> sum_lo = 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
ap_uint<16> sum_lo = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<16> sum_lo; | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(31, 16);
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 0); | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(31, 16);
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
ap_uint<16> a_lo = a.range(31, 16);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<16> a_lo = a.range(15, 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum cyclic dim=1 factor=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum cyclic dim=1 factor=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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum cyclic dim=1 factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum complete 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=2
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFACE ap_ctrl_none p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE ap_none port=sum
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sub
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=sum complete dim=1 | 'DID' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.