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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: reg unsigned int shreg = 0; The right code snippet is: reg unsigned int shreg;
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: reg unsigned int shreg;
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: reg unsigned int shreg = 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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: reg unsigned int shreg = 0; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: reg unsigned int shreg;
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: memcpy(dest, src + size/2, size/2); The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: memcpy(dest, src + size/2, size/2); 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: memcpy(dest, src + size/2, size/2); The high-level-synthesis bug type of the code is: BUF The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=2 dim=2 The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=shreg 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 port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: APT The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=3 dim=1 The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=3 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=2 dim=1 The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=shreg 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=shreg cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: DID The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS dataflow The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS dataflow 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS dataflow The high-level-synthesis bug type of the code is: DFP The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=32 The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=32 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=32 The high-level-synthesis bug type of the code is: IDAP The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface m_axi port=shreg offset=slave bundle=mybundle The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS interface m_axi port=shreg offset=slave bundle=mybundle 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS interface m_axi port=shreg offset=slave bundle=mybundle The high-level-synthesis bug type of the code is: RAMB The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface s_axilite port=shreg bundle=mybundle The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS interface s_axilite port=shreg bundle=mybundle 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS interface s_axilite port=shreg bundle=mybundle The high-level-synthesis bug type of the code is: SMA The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_vld port=shreg The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS interface ap_vld port=shreg 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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_vld port=shreg The high-level-synthesis bug type of the code is: AMS The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
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: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTER...
The wrong part of the code is: #pragma HLS unroll inner_loop The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragma HLS INTERFACE ...
The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS INTERFACE ap_none port=p_load #pragm...
The wrong part of the code is: #pragma HLS unroll 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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=s_in #pragma HLS...
The wrong part of the code is: #pragma HLS unroll inner_loop The high-level-synthesis bug type of the code is: ILNU The right code snippet is: None
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=enable bundle=CTRL_BUS...
The wrong part of the code is: int count; Bug_type: INF The right code snippet is: int count = 1;
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=enable bundle=CTRL_BUS #pra...
The right code snippet is: int count = 1;
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=enable bund...
The wrong part of the code is: int count; Bug_type: INF 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: int count; Bug_type: INF The high-level-synthesis bug type of the code is: INIT The right code snippet is: int count = 1;
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: int temp = addra[-1]; The right code snippet is: int temp = addra[4096];
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: int temp = addra[4096];
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: int temp = addra[-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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: int temp = addra[-1]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: int temp = addra[4096];
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: int temp = temp + 1; The right code snippet is: int temp;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: int temp;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: int temp = temp + 1; 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: int temp = temp + 1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int temp;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: int temp = 1; temp = temp << 33; The right code snippet is: int temp = 1; temp = temp << 32;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: int temp = 1; temp = temp << 32;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: int temp = 1; temp = temp << 33; 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: int temp = 1; temp = temp << 33; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: int temp = 1; temp = temp << 32;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code here } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for(int i=0; i<10; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: signed char c = -50; int i = c; The right code snippet is: unsigned char c = 200; int i = c;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: unsigned char c = 200; int i = c;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: signed char c = -50; int i = c; 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: signed char c = -50; int i = c; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: unsigned char c = 200; int i = c;
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: for(int i=0; i<17; i++){ // some code here } The right code snippet is: for(int i=0; i<16; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: for(int i=0; i<16; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: for(int i=0; i<17; i++){ // some code here } 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: for(int i=0; i<17; i++){ // some code here } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for(int i=0; i<16; i++){ // some code here }
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: int temp; The right code snippet is: int temp = 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: int temp = 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: int temp; 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int temp = 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: memcpy(dest+size/2, src, size); The right code snippet is: memcpy(dest, src, size);
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: memcpy(dest, src, size);
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: memcpy(dest+size/2, src, size); 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: memcpy(dest+size/2, src, size); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(dest, src, size);
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra block factor=16 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra block factor=16 dim=1 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra block factor=16 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=15 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=15 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=15 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=addra cyclic factor=16 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: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
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: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
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: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
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'