instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in0 The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in0 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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in0 The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS interface m_axi port=in0 offset=slave The right code snippet is: #pragma HLS interface m_axi port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS interface m_axi port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface m_axi port=in0 offset=slave The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface m_axi port=in0 offset=slave The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS interface axis port=in0 The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface axis port=in0 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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface axis port=in0 The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_non...
The wrong part of the code is: #pragma HLS interface ap_vld port=in0 The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_vld port=in0 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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_vld port=in0 The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface ap_none port=in0
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #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
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
The right code snippet is: #pragma HLS pipeline
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
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
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_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_non...
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: #pragma HLS INTERFACE ap_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTERFACE ap_none por...
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: #pragma HLS INTERFACE ap_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFACE ap_none port=in3 #pragma HLS INTER...
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: #pragma HLS INTERFACE ap_none port=in0 #pragma HLS INTERFACE ap_none port=in1 #pragma HLS INTERFACE ap_none port=in2 #pragma HLS INTERFA...
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[4], B[4], CIN, S[4], c[4]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: full_adder(A[4], B[4], CIN, S[4], c[4]) The right code snippet is: full_adder(A[0], B[0], CIN, S[0], c[0])
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[4], B[4], CIN, S[4], c[4]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: full_adder(A[0], B[0], CIN, S[0], c[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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[4], B[4], CIN, S[4], c[4]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: full_adder(A[4], B[4], CIN, S[4], c[4]) 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[4], B[4], CIN, S[4], c[4]); ...
The wrong part of the code is: full_adder(A[4], B[4], CIN, S[4], c[4]) The high-level-synthesis bug type of the code is: OOB The right code snippet is: full_adder(A[0], B[0], CIN, S[0], c[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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {1, 0, 1}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1],...
The wrong part of the code is: bool c[4] = {1, 0, 1}; The right code snippet is: bool c[4];
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {1, 0, 1}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]...
The right code snippet is: bool c[4];
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {1, 0, 1}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], ...
The wrong part of the code is: bool c[4] = {1, 0, 1}; The high-level-synthesis bug type of the code is: INIT
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {1, 0, 1}; full_adder(A[0], B[0], CIN, S[0...
The wrong part of the code is: bool c[4] = {1, 0, 1}; The high-level-synthesis bug type of the code is: INIT The right code snippet is: bool c[4];
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: S = A ^ B ^ (CIN << 4); The right code snippet is: S = A ^ B ^ CIN;
SHFT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: S = A ^ B ^ CIN;
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: S = A ^ B ^ (CIN << 4); 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: S = A ^ B ^ (CIN << 4); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: S = A ^ B ^ CIN;
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: for(int i=0; i>=0; i++){} The right code snippet is: There is no infinite loop in the given code.
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no infinite loop in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: for(int i=0; i>=0; i++){} 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: for(int i=0; i>=0; i++){} The high-level-synthesis bug type of the code is: INF The right code snippet is: There is no infinite loop in the given code.
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: COUT = (A & B) | (CIN | (A ^ B)); The right code snippet is: COUT = (A & B) | (CIN & (A ^ B));
USE
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: COUT = (A & B) | (CIN & (A ^ B));
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: COUT = (A & B) | (CIN | (A ^ B)); 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: COUT = (A & B) | (CIN | (A ^ B)); The high-level-synthesis bug type of the code is: USE The right code snippet is: COUT = (A & B) | (CIN & (A ^ B));
USE
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: for(int i=0; i<4; i+=2){ full_adder(A[i], B[i], CIN, S[i], c[i]); full_adder(A[i+1], B[i+1], c[i], S[i+1], c[i+1]); } full_adder(c[2], c[3], c[1], S[3], COUT); The right code snippet is: There is no manual loop unrolling in the given code.
MLU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no manual loop unrolling in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: for(int i=0; i<4; i+=2){ full_adder(A[i], B[i], CIN, S[i], c[i]); full_adder(A[i+1], B[i+1], c[i], S[i+1], c[i+1]); } full_adder(c[2], c[3], c[1], S[3], COUT); 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: for(int i=0; i<4; i+=2){ full_adder(A[i], B[i], CIN, S[i], c[i]); full_adder(A[i+1], B[i+1], c[i], S[i+1], c[i+1]); } full_adder(c[2], c[3], c[1], S[3], COUT); The high-level-synthesis bug type of the code is: MLU The right code snippet is: There is no manual ...
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {0}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1])...
The wrong part of the code is: bool c[4] = {0}; The right code snippet is: bool c[4];
ZERO
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {0}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The right code snippet is: bool c[4];
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {0}; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], ...
The wrong part of the code is: bool c[4] = {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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4] = {0}; full_adder(A[0], B[0], CIN, S[0], c[0...
The wrong part of the code is: bool c[4] = {0}; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: bool c[4];
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: bool A[8], B[8]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_adder(A[2], B[2], c[1], S[2], c[2]); full_adder(A[3], B[3], c[2], S[3], c[3]); full_adder(A[4], B[4], c[3], S[4], c[4]); full_adder(A[5], B[5], c[4], S[5], c[5]); full_adder(A...
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no buffer splitting in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: bool A[8], B[8]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_adder(A[2], B[2], c[1], S[2], c[2]); full_adder(A[3], B[3], c[2], S[3], c[3]); full_adder(A[4], B[4], c[3], S[4], c[4]); full_adder(A[5], B[5], c[4], S[5], c[5]); full_adder(A...
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: bool A[8], B[8]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_adder(A[2], B[2], c[1], S[2], c[2]); full_adder(A[3], B[3], c[2], S[3], c[3]); full_adder(A[4], B[4], c[3], S[4], c[4]); full_adder(A[5], B[5], c[4], S[5], c[5]); full_adder(A...
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic factor=3 The right code snippet is: There is no array partitioning pragma in the given code.
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no array partitioning pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic factor=3 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic factor=3 The high-level-synthesis bug type of the code is: APT The right code snippet is: There is no array partitioning pragma in the given code.
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S complete dim=1 The right code snippet is: There is no array partitioning pragma in the given code.
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no array partitioning pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS array_partition variable=S complete dim=1 The high-level-synthesis bug type of the code is: FND
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S complete dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: There is no array partitioning pragma in the given code.
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic dim=2 factor=2 The right code snippet is: There is no array partitioning pragma in the given code.
DID
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no array partitioning pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS array_partition variable=S cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: There is no array partitioning pragma in the given code.
DID
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS dataflow The right code snippet is: There is no dataflow pragma in the given code.
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no dataflow pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
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: There is no dataflow pragma in the given code.
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=S The right code snippet is: There is no interface pragma in the given code.
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no interface pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=S 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=S The high-level-synthesis bug type of the code is: IDAP The right code snippet is: There is no interface pragma in the given code.
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS interface m_axi port=S offset=direct The right code snippet is: There is no interface pragma in the given code.
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no interface pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS interface m_axi port=S 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS interface m_axi port=S offset=direct The high-level-synthesis bug type of the code is: RAMB The right code snippet is: There is no interface pragma in the given code.
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS interface bram port=A The right code snippet is: There is no interface pragma in the given code.
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no interface pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS interface bram 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS interface bram port=A The high-level-synthesis bug type of the code is: SMA The right code snippet is: There is no interface pragma in the given code.
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS interface ap_vld port=S The right code snippet is: There is no interface pragma in the given code.
AMS
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no interface pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS interface ap_vld port=S 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS interface ap_vld port=S The high-level-synthesis bug type of the code is: AMS The right code snippet is: There is no interface pragma in the given code.
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: There is no pipeline pragma in the given code.
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no pipeline pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
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: There is no pipeline pragma in the given code.
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); ...
The wrong part of the code is: #pragma HLS unroll factor=2 inner The right code snippet is: There is no unroll pragma in the given code.
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], c[1]); full_...
The right code snippet is: There is no unroll pragma in the given code.
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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); full_adder(A[1], B[1], c[0], S[1], ...
The wrong part of the code is: #pragma HLS unroll factor=2 inner 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: void adder_4bit(bool A[4], bool B[4], bool CIN, bool S[4], bool &COUT) { bool c[4]; full_adder(A[0], B[0], CIN, S[0], c[0]); ...
The wrong part of the code is: #pragma HLS unroll factor=2 inner The high-level-synthesis bug type of the code is: ILNU The right code snippet is: There is no unroll pragma in the given code.
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=count void counter4(bool clk, bool rst, ap_uint<4> &count) { #pragma...
The wrong part of the code is: count = count + 10; The right code snippet is: count = count + 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=count void counter4(bool clk, bool rst, ap_uint<4> &count) { #pragma HLS ...
The right code snippet is: count = count + 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=count void counter4(bool clk, bool rst, ap_uint<4> &count) { ...
The wrong part of the code is: count = count + 10; 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=count void counter4(bool...
The wrong part of the code is: count = count + 10; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: count = count + 1;
'OOB'