instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS DATAFLOW off The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS DATAFLOW off The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS DATAFLOW off The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=P The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=P The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=P The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=P random The right code snippet is: #pragma HLS INTERFACE m_axi port=P
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS INTERFACE m_axi port=P
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=P 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: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=P random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=P
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS INTERFACE bram port=P The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS INTERFACE bram port=P The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS INTERFACE bram port=P The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=P The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=P The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=P The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=P
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
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: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b1111001; break; ...
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: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000; break; case 1: SEG = 0b11110...
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: ``` #include <ap_int.h> void bcd_to_7seg_decoder(ap_uint<4> BCD, ap_uint<7> &SEG) { switch (BCD) { case 0: SEG = 0b1000000;...
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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: rd = data[addr+1][7:0]; The right code snippet is: rd = data[addr][7: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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: rd = data[addr][7: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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: rd = data[addr+1][7:0]; 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: rd = data[addr+1][7:0]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: rd = data[addr][7: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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: unsigned char addr = 0; The right code snippet is: unsigned char addr;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: unsigned char addr;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: unsigned char addr = 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_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: unsigned char addr = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: unsigned char addr;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: data[wa][9:2] = wd; The right code snippet is: data[wa][7:0] = wd;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: data[wa][7:0] = wd;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: data[wa][9:2] = wd; 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: data[wa][9:2] = wd; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: data[wa][7:0] = wd;
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: void regfile() { while(1){ The right code snippet is: void regfile() {
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: void regfile() {
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: void regfile() { while(1){ 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: void regfile() { while(1){ The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: void regfile() {
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: signed char data[16][8]; The right code snippet is: unsigned char data[16][8];
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: unsigned char data[16][8];
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: signed char data[16][8]; 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: signed char data[16][8]; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: unsigned char data[16][8];
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: for(int i=0; i<16; i+=2){ #pragma HLS unroll data[i][7:0] = wd; } The right code snippet is: None found
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: for(int i=0; i<16; i+=2){ #pragma HLS unroll data[i][7:0] = wd; } 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: for(int i=0; i<16; i+=2){ #pragma HLS unroll data[i][7:0] = wd; } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: None found
'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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: unsigned char data[16][8] = {0}; The right code snippet is: unsigned char data[16][8];
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: unsigned char data[16][8];
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: unsigned char data[16][8] = {0}; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: unsigned char data[16][8] = {0}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: unsigned char data[16][8];
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS array_partition variable=data complete dim=2 data[i][i%4] = wd; } The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS array_partition variable=data complete dim=2 data[i][i%4] = wd; } 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=we #pragma HLS I...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS array_partition variable=data complete dim=2 data[i][i%4] = wd; } The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=5 dim=1 The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=5 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=5 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=3 dim=1 The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=data 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=we #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=3 dim=2 The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=3 dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=we #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=data cyclic factor=3 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS dataflow The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
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=we #pragma HLS I...
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 found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=1 port=data The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=1 port=data 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=we #pragma HLS I...
The wrong part of the code is: #pragma HLS interface ap_fifo depth=1 port=data The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface m_axi depth=512 port=data offset=direct The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS interface m_axi depth=512 port=data offset=direct 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=we #pragma HLS I...
The wrong part of the code is: #pragma HLS interface m_axi depth=512 port=data offset=direct The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface axis port=data The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS interface axis port=data 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=we #pragma HLS I...
The wrong part of the code is: #pragma HLS interface axis port=data The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_vld port=data The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_vld port=data 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=we #pragma HLS I...
The wrong part of the code is: #pragma HLS interface ap_vld port=data The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #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'
'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=we #pragma HLS I...
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 found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE a...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS unroll for(int j=0; j<8; j++){ data[i][j] = wd; } } The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS INTERFACE ap_non...
The right code snippet is: None found
'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=we #pragma HLS INTERFACE ap_none port=wa #pragma HLS ...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS unroll for(int j=0; j<8; j++){ data[i][j] = wd; } } 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=we #pragma HLS I...
The wrong part of the code is: for(int i=0; i<16; i++){ #pragma HLS unroll for(int j=0; j<8; j++){ data[i][j] = wd; } } The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: None found
'ILNU'