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 s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=B bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=EN bundle=CTRL_BUS #pragma HLS INTERF...
The wrong part of the code is: // inner loop unrolling #pragma HLS unroll factor=2 for (int i = 0; i < 16; i++) { // do something } The right code snippet is: // no inner loop unrolling for (int i = 0; i < 16; i++) { // do something }
'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code 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=EN bundle=CTRL_BUS #pragma HLS INTERFACE s...
The right code snippet is: // no inner loop unrolling for (int i = 0; i < 16; i++) { // do something }
'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll'
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 s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=B bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=EN bundle=CTRL_BUS #pragma...
The wrong part of the code is: // inner loop unrolling #pragma HLS unroll factor=2 for (int i = 0; i < 16; i++) { // do something } The high-level-synthesis bug type of the code is: 'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll'
'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll'
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 s_axilite port=A bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=B bundle=CTRL_BUS #pragma HLS INTERFACE s_ax...
The wrong part of the code is: // inner loop unrolling #pragma HLS unroll factor=2 for (int i = 0; i < 16; i++) { // do something } The high-level-synthesis bug type of the code is: 'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll' The right code snippet is: // no inner...
'ILNU': Inner loops not fully-Unrolled for the pragma '#pragma HLS unroll'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: xor1_out = a[-1] ^ b[1]; The right code snippet is: xor1_out = a ^ b;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: xor1_out = a ^ b;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: xor1_out = a[-1] ^ b[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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: xor1_out = a[-1] ^ b[1]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: xor1_out = a ^ b;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: bool xor2_out = true; The right code snippet is: bool xor2_out;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: bool xor2_out;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: bool xor2_out = true; 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: bool xor2_out = true; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool xor2_out;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: xor1_out = a << b; The right code snippet is: xor1_out = a ^ b;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: xor1_out = a ^ b;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: xor1_out = a << b; 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: xor1_out = a << b; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: xor1_out = a ^ b;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: xor1_loop: for (int i = 0; i >= 0; i++) { The right code snippet is: xor1_loop: for (int i = 0; i < 1; i++) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: xor1_loop: for (int i = 0; i < 1; 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: xor1_loop: 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: xor1_loop: for (int i = 0; i >= 0; i++) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: xor1_loop: for (int i = 0; i < 1; 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: out = (int)a & b; The right code snippet is: out = 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: out = 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: out = (int)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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: out = (int)a & b; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: out = 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: for (int i = 0; i < 2; i++) { The right code snippet is: for (int i = 0; i < 1; i++) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: for (int i = 0; i < 1; 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: for (int i = 0; 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: for (int i = 0; i < 2; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 1; 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: bool xor2_out = 0; The right code snippet is: bool xor2_out;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: bool xor2_out;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: bool xor2_out = 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: bool xor2_out = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool xor2_out;
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: and_inst(xor1_out, xor2_out + 1, out); The right code snippet is: and_inst(xor1_out, xor2_out, out);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: and_inst(xor1_out, xor2_out, out);
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: and_inst(xor1_out, xor2_out + 1, out); 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: and_inst(xor1_out, xor2_out + 1, out); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: and_inst(xor1_out, xor2_out, out);
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out cyclic dim=0 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out complete dim=1 The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out complete dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out complete dim=2 The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS array_partition variable=xor1_out complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=xor1_out complete dim=0
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a bundle=wrong_bundle The right code snippet is: #pragma HLS interface ap_fifo port=a
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS interface ap_fifo 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a bundle=wrong_bundle The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_fifo 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS interface m_axi port=a offset=direct num_read_outstanding=1 The right code snippet is: #pragma HLS interface m_axi port=a offset=direct
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS interface m_axi port=a offset=direct
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS interface m_axi port=a offset=direct num_read_outstanding=1 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS interface m_axi port=a offset=direct num_read_outstanding=1 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=a offset=direct
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS interface bram port=a The right code snippet is: #pragma HLS interface axis port=a
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS interface axis 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
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 axis 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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS interface axis port=xor1_out The right code snippet is: #pragma HLS interface bram port=xor1_out
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS interface bram port=xor1_out
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS interface axis port=xor1_out 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS interface axis port=xor1_out The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=xor1_out
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
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: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma ...
The wrong part of the code is: #pragma HLS unroll factor=1 The right code snippet is: #pragma HLS unroll factor=2
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS I...
The right code snippet is: #pragma HLS unroll factor=2
'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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b ...
The wrong part of the code is: #pragma HLS unroll factor=1 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 top_module(bool a, bool b, bool& out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a ...
The wrong part of the code is: #pragma HLS unroll factor=1 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll factor=2
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void modulo(int a, int b, int& r) { if (b == 0) { r = 0; } else { int uninitialized; r = uninitialized; Bug_type: OOB } } ```
The wrong part of the code is: int uninitialized; r = uninitialized; Bug_type: OOB The right code snippet is: r = a % b;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void modulo(int a, int b, int& r) { if (b == 0) { r = 0; } else { int uninitialized; r = uninitialized; Bug_type: OOB } } ``` The wrong part of the ...
The right code snippet is: r = a % b;
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: ```c++ void modulo(int a, int b, int& r) { if (b == 0) { r = 0; } else { int uninitialized; r = uninitialized; Bug_type: OOB } } ```
The wrong part of the code is: int uninitialized; r = uninitialized; Bug_type: OOB 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: ```c++ void modulo(int a, int b, int& r) { if (b == 0) { r = 0; } else { int uninitialized; r = uninitialized; ...
The wrong part of the code is: int uninitialized; r = uninitialized; Bug_type: OOB The high-level-synthesis bug type of the code is: INIT The right code snippet is: r = a % b;
INIT
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: shifted_in = in >> 20; The right code snippet is: shifted_in = in >> shift_amount;
'OOB'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The right code snippet is: shifted_in = in >> shift_amount;
'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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none p...
The wrong part of the code is: shifted_in = in >> 20; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { ...
The wrong part of the code is: shifted_in = in >> 20; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: shifted_in = in >> shift_amount;
'OOB'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: ap_uint<8> result = result; The right code snippet is: ap_uint<8> result;
'INIT'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The right code snippet is: ap_uint<8> result;
'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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none p...
The wrong part of the code is: ap_uint<8> result = result; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { ...
The wrong part of the code is: ap_uint<8> result = result; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<8> result;
'INIT'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: shifted_in = in << shift_amount; The right code snippet is: shifted_in = in >> shift_amount;
'SHFT'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The right code snippet is: shifted_in = in >> shift_amount;
'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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none p...
The wrong part of the code is: shifted_in = in << shift_amount; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { ...
The wrong part of the code is: shifted_in = in << shift_amount; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: shifted_in = in >> shift_amount;
'SHFT'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
'INF'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The right code snippet is: for (int i = 0; i < 10; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none p...
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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { ...
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: for (int i = 0; i < 10; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: result = (signed)in1 & (signed)in2; The right code snippet is: result = in1 & in2;
'USE'
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 top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none port=return #...
The right code snippet is: result = in1 & in2;
'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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { #pragma HLS INTERFACE ap_ctrl_none p...
The wrong part of the code is: result = (signed)in1 & (signed)in2; 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: #include <ap_int.h> void top_module(ap_uint<16> in, bool select, ap_uint<8>& out_hi, ap_uint<8>& out_lo, ap_uint<8>& out_result) { ...
The wrong part of the code is: result = (signed)in1 & (signed)in2; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: result = in1 & in2;
'USE'