instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b...
The wrong part of the code is: #pragma HLS dataflow error 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #p...
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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS dataflow error 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS dataflow error 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE axis port=b...
The wrong part of the code is: #pragma HLS INTERFACE bram port=a The right code snippet is: #pragma HLS INTERFACE axis port=a
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE axis port=b #p...
The right code snippet is: #pragma HLS INTERFACE axis port=a
'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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE bram port=a 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE bram port=a The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE axis port=a
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=a random The right code snippet is: #pragma HLS INTERFACE m_axi port=a
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #p...
The right code snippet is: #pragma HLS INTERFACE m_axi port=a
'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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=a random 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=a random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=a
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_memory port=a #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=a The right code snippet is: #pragma HLS INTERFACE axis port=a
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_memory port=a #pragma HLS INTERFACE axis port=b...
The right code snippet is: #pragma HLS INTERFACE axis port=a
'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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_memory port=a #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=a 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=a The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE axis port=a
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b...
The wrong part of the code is: #pragma HLS INTERFACE axis port=a The right code snippet is: #pragma HLS INTERFACE ap_memory port=a
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #p...
The right code snippet is: #pragma HLS INTERFACE ap_memory port=a
'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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE axis port=a 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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE axis port=a The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_memory port=a
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b...
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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #p...
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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
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: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b...
The wrong part of the code is: #pragma HLS unroll factor=1 The right code snippet is: #pragma HLS unroll factor=2
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #p...
The right code snippet is: #pragma HLS unroll factor=2
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS unroll factor=1 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ```c void two_input_logic(bool a, bool b, bool op, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS unroll factor=1 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll factor=2
'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 ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: if (count >= 15) { The right code snippet is: if (count == 15) {
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) {
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: if (count >= 15) { The high-level-synthesis bug type of the code is: OOB
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=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: if (count >= 15) { The high-level-synthesis bug type of the code is: OOB The right code snippet is: if (count == 15) {
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: unsigned char count; The right code snippet is: unsigned char &count;
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 ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: unsigned char &count;
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 ap_none port=enable #pragm...
The wrong part of the code is: unsigned char count; 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: unsigned char count; The high-level-synthesis bug type of the code is: INIT The right code snippet is: unsigned char &count;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: count = count << 16; The right code snippet is: count = count + 1;
SHFT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: count = count + 1;
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: count = count << 16; The high-level-synthesis bug type of the code is: SHFT
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk 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: count = count << 16; The high-level-synthesis bug type of the code is: SHFT The right code snippet is: count = count + 1;
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: while (count != 15) { The right code snippet is: if (count == 15) {
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) {
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: while (count != 15) { The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=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: while (count != 15) { The high-level-synthesis bug type of the code is: INF The right code snippet is: if (count == 15) {
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: signed char set_value; The right code snippet is: unsigned char set_value;
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: unsigned char set_value;
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: signed char set_value; 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=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: signed char set_value; The high-level-synthesis bug type of the code is: USE The right code snippet is: unsigned char set_value;
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: if (count == 15) { count = 0; max_value_reached = true; } The right code snippet is: if (count == 15) {
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) {
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: if (count == 15) { count = 0; max_value_reached = true; } 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=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: if (count == 15) { count = 0; max_value_reached = true; } The high-level-synthesis bug type of the code is: MLU The right code snippet is: if (count == 15) {
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: bool max_value_reached = 0; The right code snippet is: bool max_value_reached = false;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: bool max_value_reached = false;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: bool max_value_reached = 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: bool max_value_reached = 0; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: bool max_value_reached = false;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo depth=0 port=count The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo depth=0 port=count 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo depth=0 port=count The high-level-synthesis bug type of the code is: BUF The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 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 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: #pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count complete dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count 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_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: #pragma HLS ARRAY_PARTITION variable=count complete dim=2 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count complete dim=2 factor=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=count complete dim=2 factor=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 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: #pragma HLS ARRAY_PARTITION variable=count complete dim=2 factor=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS ARRAY_PARTITION variable=count 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: #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 ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld depth=0 port=count The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld depth=0 port=count 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld depth=0 port=count The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=count offset=256 The right code snippet is: #pragma HLS INTERFACE m_axi port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE m_axi port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=count offset=256 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=count offset=256 The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS INTERFACE m_axi port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=0 port=count The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=0 port=count 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=0 port=count The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS INTERFACE ap_none depth=0 port=count
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: unsigned char set_value[2]; The right code snippet is: unsigned char set_value;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: unsigned char set_value;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: unsigned char set_value[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=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: unsigned char set_value[2]; The high-level-synthesis bug type of the code is: AMS The right code snippet is: unsigned char set_value;
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #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: #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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: if (count == 15) { count = 0; } The right code snippet is: if (count == 15) {
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) {
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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: if (count == 15) { count = 0; } 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_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: if (count == 15) { count = 0; } The high-level-synthesis bug type of the code is: ILNU The right code snippet is: if (count == 15) {
ILNU