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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
The wrong part of the code is: #pragma HLS array_partition variable=regfile complete dim=2 The right code snippet is: #pragma HLS array_partition variable=regfile 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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
The right code snippet is: #pragma HLS array_partition variable=regfile 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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
The wrong part of the code is: #pragma HLS array_partition variable=regfile complete 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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
The wrong part of the code is: #pragma HLS array_partition variable=regfile complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=regfile 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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
The wrong part of the code is: #pragma HLS interface ap_none port=data1 bundle=wrong_bundle The right code snippet is: #pragma HLS interface ap_none port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
The right code snippet is: #pragma HLS interface ap_none port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface ap_none port=data1 bundle=wrong_bundle 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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
The wrong part of the code is: #pragma HLS interface ap_none port=data1 bundle=wrong_bundle The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
The wrong part of the code is: #pragma HLS interface m_axi port=data1 offset=wrong_offset bundle=interface1 The right code snippet is: #pragma HLS interface m_axi port=data1 offset=slave bundle=interface1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
The right code snippet is: #pragma HLS interface m_axi port=data1 offset=slave bundle=interface1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface m_axi port=data1 offset=wrong_offset bundle=interface1 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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
The wrong part of the code is: #pragma HLS interface m_axi port=data1 offset=wrong_offset bundle=interface1 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=data1 offset=slave bundle=interface1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
The wrong part of the code is: #pragma HLS interface bram port=data1 The right code snippet is: #pragma HLS interface ap_memory port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
The right code snippet is: #pragma HLS interface ap_memory port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface bram port=data1 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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
The wrong part of the code is: #pragma HLS interface bram port=data1 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_memory port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
The wrong part of the code is: #pragma HLS interface ap_memory port=data1 The right code snippet is: #pragma HLS interface bram port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
The right code snippet is: #pragma HLS interface bram port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
The wrong part of the code is: #pragma HLS interface ap_memory port=data1 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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
The wrong part of the code is: #pragma HLS interface ap_memory port=data1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=data1
'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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
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 pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_u...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> data2, ap_uint<3...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5> rd, ap_uint<32> data1, ap_uint<32> ...
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: #include <ap_int.h> void pipeline(ap_uint<1> reset, ap_uint<8> instruction, ap_uint<3> stage, ap_uint<5> rs1, ap_uint<5> rs2, ap_uint<5...
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: mux_out[i] = sel ? B[i+1] : A[i+1]; The right code snippet is: mux_out[i] = sel ? B[i] : A[i];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: mux_out[i] = sel ? B[i] : A[i];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: mux_out[i] = sel ? B[i+1] : A[i+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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: mux_out[i] = sel ? B[i+1] : A[i+1]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: mux_out[i] = sel ? B[i] : A[i];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int c1, c2, c3, c4; The right code snippet is: int c1, c2, c3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: int c1, c2, c3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int c1, c2, c3, c4; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: int c1, c2, c3, c4; The high-level-synthesis bug type of the code is: INIT The right code snippet is: int c1, c2, c3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: c2 = (A[i] & mux_out[i]) << 5 | (A[i] & c2) | (mux_out[i] & c2); The right code snippet is: c2 = (A[i] & mux_out[i]) | (A[i] & c2) | (mux_out[i] & c2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: c2 = (A[i] & mux_out[i]) | (A[i] & c2) | (mux_out[i] & c2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: c2 = (A[i] & mux_out[i]) << 5 | (A[i] & c2) | (mux_out[i] & c2); 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: c2 = (A[i] & mux_out[i]) << 5 | (A[i] & c2) | (mux_out[i] & c2); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: c2 = (A[i] & mux_out[i]) | (A[i] & c2) | (mux_out[i] & c2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: for (int i = 1; i >= 0; i--) { The right code snippet is: for (int i = 1; i < 4; i++) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: for (int i = 1; i < 4; i++) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: for (int i = 1; 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 1; i >= 0; i--) { The high-level-synthesis bug type of the code is: INF The right code snippet is: for (int i = 1; i < 4; i++) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: carry_out = (unsigned int) A[3] & mux_out[3]; The right code snippet is: carry_out = A[3] & mux_out[3];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: carry_out = A[3] & mux_out[3];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: carry_out = (unsigned int) A[3] & mux_out[3]; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: carry_out = (unsigned int) A[3] & mux_out[3]; The high-level-synthesis bug type of the code is: USE The right code snippet is: carry_out = A[3] & mux_out[3];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: for (int i = 1; i < 2; i++) { The right code snippet is: for (int i = 1; i < 4; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: for (int i = 1; i < 4; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: for (int i = 1; i < 2; i++) { 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 1; i < 2; i++) { The high-level-synthesis bug type of the code is: MLU The right code snippet is: for (int i = 1; i < 4; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int mux_out[4] = {0}; The right code snippet is: int mux_out[4];
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: int mux_out[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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int mux_out[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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: int mux_out[4] = {0}; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: int mux_out[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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: sum[i] = A[i] + mux_out[i+2] + c2; The right code snippet is: sum[i] = A[i] + mux_out[i] + c2;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: sum[i] = A[i] + mux_out[i] + c2;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: sum[i] = A[i] + mux_out[i+2] + c2; 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: sum[i] = A[i] + mux_out[i+2] + c2; The high-level-synthesis bug type of the code is: BUF The right code snippet is: sum[i] = A[i] + mux_out[i] + c2;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A block factor=3 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A block factor=3 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A block factor=3 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=3 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=2
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=2
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=3 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=3 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=2
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS DATAFLOW loop_flatten 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS DATAFLOW loop_flatten 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS DATAFLOW loop_flatten 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: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
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_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS INTERFACE ap_none port=A
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=512 The right code snippet is: #pragma HLS INTERFACE m_axi port=A
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
The right code snippet is: #pragma HLS INTERFACE m_axi port=A
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=512 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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=512 The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS INTERFACE m_axi port=A
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
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 bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=carry...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap...
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: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_n...
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: #pragma HLS INTERFACE ap_none port=A
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
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_vld port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=car...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: AMS
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS INTERFACE ap_none port=A
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=ca...
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=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=sel #pragma HLS INTERFACE 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
MLP