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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=sync_clk dim=2 The right code snippet is: #pragma HLS array_partition variable=sync_clk complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS array_partition variable=sync_clk complete
'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: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS array_partition variable=sync_clk 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: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS array_partition variable=sync_clk dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=sync_clk complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
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: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
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: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_ovld port=clk The right code snippet is: #pragma HLS interface ap_none port=clk
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_ovld port=clk 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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS interface ap_ovld port=clk The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface m_axi port=clk random The right code snippet is: #pragma HLS interface m_axi port=clk
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS interface m_axi port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface m_axi port=clk 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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS interface m_axi port=clk random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_memory port=clk The right code snippet is: #pragma HLS interface ap_none port=clk
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_memory port=clk 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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS interface ap_memory port=clk The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_vld port=clk The right code snippet is: #pragma HLS interface ap_none port=clk
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_vld port=clk 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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS interface ap_vld port=clk The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=clk
'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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
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++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS INTERFACE ap_none ...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, ap_uint<1> &gclk) { #pragma HLS IN...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> const int n = 4; // number of input clock signals void GlitchFreeClockMux(ap_uint<n> clk, ap_uint<2> sel, a...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: sp = (sp == 8) ? 0 : sp + 1; The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: sp = (sp == 8) ? 0 : sp + 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 port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: sp = (sp == 8) ? 0 : sp + 1; The high-level-synthesis bug type of the code is: OOB The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: static uint8_t stack[9]; The right code snippet is: static uint8_t stack[8];
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: static uint8_t stack[8];
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: static uint8_t stack[9]; 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: static uint8_t stack[9]; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static uint8_t stack[8];
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: sp = (sp << 8); The right code snippet is: sp = (sp == 7) ? 0 : sp + 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: sp = (sp == 7) ? 0 : sp + 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: sp = (sp << 8); 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: sp = (sp << 8); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: sp = (sp == 7) ? 0 : sp + 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: while (1) {} The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: while (1) {} The high-level-synthesis bug type of the code is: INF The right code snippet is: sp = (sp == 7) ? 0 : sp + 1;
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: static int8_t stack[8]; The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: static int8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: static int8_t stack[8]; The high-level-synthesis bug type of the code is: USE The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: Q += stack[0] + stack[1] + stack[2] + stack[3] + stack[4] + stack[5] + stack[6] + stack[7]; The right code snippet is: for (int i = 0; i < 8; i++) { Q += stack[i]; }
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: for (int i = 0; i < 8; i++) { Q += stack[i]; }
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: Q += stack[0] + stack[1] + stack[2] + stack[3] + stack[4] + stack[5] + stack[6] + stack[7]; 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: Q += stack[0] + stack[1] + stack[2] + stack[3] + stack[4] + stack[5] + stack[6] + stack[7]; The high-level-synthesis bug type of the code is: MLU The right code snippet is: for (int i = 0; i < 8; i++) { Q += stack[i]; }
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: static uint8_t stack[8] = {0}; The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: static uint8_t stack[8] = {0}; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: static uint8_t stack[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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: stack[sp + 8] = DATA; The right code snippet is: stack[sp] = DATA;
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: stack[sp] = DATA;
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: stack[sp + 8] = DATA; The high-level-synthesis bug type of the code is: BUF
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: stack[sp + 8] = DATA; The high-level-synthesis bug type of the code is: BUF The right code snippet is: stack[sp] = DATA;
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack 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=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=2 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stack cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stack 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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS dataflow pipeline The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: DFP
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: DFP The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_vld...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=DATA The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_vld port...
The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=DATA The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=DATA random The right code snippet is: #pragma HLS INTERFACE m_axi port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS INTERFACE m_axi port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=DATA 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: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=DATA random The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS INTERFACE m_axi port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE bram p...
The wrong part of the code is: #pragma HLS INTERFACE bram port=DATA The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE bram port=D...
The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE bram 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE bram port=DATA The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_mem...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=DATA The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_memory p...
The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory 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_rst port=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=DATA The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS INTERFACE ap_none port=DATA
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_non...
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTERFACE ap_none por...
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFACE ap_none port=INCR #pragma HLS INTER...
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=RST #pragma HLS INTERFACE ap_none port=DECR #pragma HLS INTERFAC...
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