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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESUL...
The wrong part of the code is: #pragma HLS interface ap_vld port=buffer1 The right code snippet is: #pragma HLS interface axis port=buffer1
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESULT = A...
The right code snippet is: #pragma HLS interface axis port=buffer1
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: ...
The wrong part of the code is: #pragma HLS interface ap_vld port=buffer1 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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { ...
The wrong part of the code is: #pragma HLS interface ap_vld port=buffer1 The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface axis port=buffer1
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESUL...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESULT = A...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: ...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { ...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESUL...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: RESULT = A...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { switch (OP) { case 0: ...
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> const int NUM_OPERATIONS = 4; void calculator(ap_uint<4> A, ap_uint<4> B, ap_uint<2> OP, ap_uint<4> &RESULT) { ...
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: for (int i = 0; i <= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); } The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: for (int i = 0; i <= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: for (int i = 0; i <= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); } The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: static uint_t Q_reg; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; } The right code snippet is: static uint_t Q_reg = 0; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: static uint_t Q_reg = 0; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: static uint_t Q_reg; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; } 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: static uint_t Q_reg; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; } The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static uint_t Q_reg = 0; if (rst) { Q_reg = 0; } else if (load) { Q_reg = sum; }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: carry = (a & b) << 2 | (a & c) << 1 | (b & c); The right code snippet is: carry = (a & b) | (a & c) | (b & c);
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: carry = (a & b) | (a & c) | (b & c);
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: carry = (a & b) << 2 | (a & c) << 1 | (b & c); 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: carry = (a & b) << 2 | (a & c) << 1 | (b & c); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: carry = (a & b) | (a & c) | (b & c);
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: for (int i = 0; i >= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); } The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: for (int i = 0; i >= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: for (int i = 0; i >= WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: int carry[WIDTH+1]; int sum[WIDTH]; The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: int carry[WIDTH+1]; int sum[WIDTH]; 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: int carry[WIDTH+1]; int sum[WIDTH]; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: for (int i = 0; i < WIDTH/2; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); full_adder(A[i+1], B[i+1], carry[i+1], sum[i+1], carry[i+2]); } The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carr...
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: for (int i = 0; i < WIDTH; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: for (int i = 0; i < WIDTH/2; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); full_adder(A[i+1], B[i+1], carry[i+1], sum[i+1], carry[i+2]); } 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: for (int i = 0; i < WIDTH/2; i++) { full_adder(A[i], B[i], carry[i], sum[i], carry[i+1]); full_adder(A[i+1], B[i+1], carry[i+1], sum[i+1], carry[i+2]); } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < WID...
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: static uint_t Q_reg; The right code snippet is: static uint_t Q_reg = 0;
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: static uint_t Q_reg = 0;
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: static uint_t Q_reg; 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: static uint_t Q_reg; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static uint_t Q_reg = 0;
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: uint_t carry[WIDTH/2+1]; uint_t sum[WIDTH/2]; The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: uint_t carry[WIDTH/2+1]; uint_t sum[WIDTH/2]; 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: uint_t carry[WIDTH/2+1]; uint_t sum[WIDTH/2]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: uint_t carry[WIDTH+1]; uint_t sum[WIDTH];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=2 dim=1 #pragma HLS ARRAY_PARTITION variable=sum cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=2 dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=2 dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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=carry 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=3 dim=1 #pragma HLS ARRAY_PARTITION variable=sum cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=3 dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry cyclic factor=3 dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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=carry 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=2 #pragma HLS ARRAY_PARTITION variable=sum complete dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS ARRAY_PARTITION variable=sum 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=2 #pragma HLS ARRAY_PARTITION variable=sum 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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=2 #pragma HLS ARRAY_PARTITION variable=sum complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=carry complete dim=1 #pragma HLS A...
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: void adder(uint_t A, uint_t B, bool rst, bool load, uint_t &Q) { The right code snippet is: void adder(uint_t A, uint_t B, bool load, bool rst, uint_t &Q) {
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: void adder(uint_t A, uint_t B, bool load, bool rst, uint_t &Q) {
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: void adder(uint_t A, uint_t B, bool rst, bool load, uint_t &Q) { 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: void adder(uint_t A, uint_t B, bool rst, bool load, uint_t &Q) { The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: void adder(uint_t A, uint_t B, bool load, bool rst, uint_t &Q) {
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk bundle=DATA_BUS The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A bundle=CTRL_BUS #pragma HLS INTERFACE m_axi port=B bundle The right code snippet is: #pragma HLS INTERFACE s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=B bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=Q bun...
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=B bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=Q bundle=CTRL_BUS
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A bundle=CTRL_BUS #pragma HLS INTERFACE m_axi port=B bundle 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A bundle=CTRL_BUS #pragma HLS INTERFACE m_axi port=B bundle The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port...
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: static data_struct buffer[512] = {0}; The right code snippet is: static data_struct buffer[512];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: static data_struct buffer[512];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: static data_struct buffer[512] = {0}; The high-level-synthesis bug type of the code is: INIT
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: static data_struct buffer[512] = {0}; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static data_struct buffer[512];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: q = buffer[read_ptr + 1]; The right code snippet is: q = buffer[read_ptr];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: q = buffer[read_ptr];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: q = buffer[read_ptr + 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: q = buffer[read_ptr + 1]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: q = buffer[read_ptr];
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: if (rdreq && !empty) { read_ptr--; used_words--; } The right code snippet is: if (rdreq && !empty) { read_ptr++; used_words--; }
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: if (rdreq && !empty) { read_ptr++; used_words--; }
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: if (rdreq && !empty) { read_ptr--; used_words--; } 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: if (rdreq && !empty) { read_ptr--; used_words--; } The high-level-synthesis bug type of the code is: INF The right code snippet is: if (rdreq && !empty) { read_ptr++; used_words--; }
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: buffer[write_ptr].data = (signed int)data; The right code snippet is: buffer[write_ptr].data = data;
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: buffer[write_ptr].data = data;
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: buffer[write_ptr].data = (signed int)data; 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: buffer[write_ptr].data = (signed int)data; The high-level-synthesis bug type of the code is: USE The right code snippet is: buffer[write_ptr].data = data;
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=buffer cyclic factor=16 dim=1 The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: #pragma HLS array_partition variable=buffer cyclic factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: #pragma HLS array_partition variable=buffer cyclic factor=16 dim=1 The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=buffer block factor=17 dim=1 The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: #pragma HLS array_partition variable=buffer block factor=17 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: #pragma HLS array_partition variable=buffer block factor=17 dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=buffer block factor=16 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_memory port=buffer The right code snippet is: #pragma HLS interface ap_fifo port=buffer
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data #pragma HLS INT...
The right code snippet is: #pragma HLS interface ap_fifo port=buffer
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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pragma HLS INTERFACE s_axilite port=data...
The wrong part of the code is: #pragma HLS interface ap_memory port=buffer 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr #pragma HLS INTERFACE s_axilite port=clock #pra...
The wrong part of the code is: #pragma HLS interface ap_memory port=buffer The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_fifo port=buffer
IDAP