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: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #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=and1 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS interface m_axi port=and1 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS interface m_axi port=and1 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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=and1 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS interface bram port=and1 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS interface bram port=and1 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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_none port=and1 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS interface ap_none port=and1 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS interface ap_none port=and1 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 and1 = A & !B & !C; The right code snippet is: and1 = A & !B & !C;
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS pipeline II=2 and1 = A & !B & !C; 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS pipeline II=2 and1 = A & !B & !C; The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: and1 = A & !B & !C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #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 The right code snippet is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C;
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis port=B #prag...
The right code snippet is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C;
'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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS unroll 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 my_xor3 (bool A, bool B, bool C, bool &X) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis p...
The wrong part of the code is: #pragma HLS unroll The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: and1 = A & !B & !C; and2 = !A & B & !C; and3 = !A & !B & C; and4 = A & B & C;
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: out2 = in_vec(8,6); The right code snippet is: out2 = in_vec(7,6);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: out2 = in_vec(7,6);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: out2 = in_vec(8,6); The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: out2 = in_vec(8,6); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: out2 = in_vec(7,6);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: uint3_t mux_out = 1; The right code snippet is: uint3_t mux_out;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: uint3_t mux_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: uint3_t mux_out = 1; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: uint3_t mux_out = 1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: uint3_t mux_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: final_output = mux_out(select) + (out2 << 10); The right code snippet is: final_output = mux_out(select) + (out2 << 2);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: final_output = mux_out(select) + (out2 << 2);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: final_output = mux_out(select) + (out2 << 10); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: final_output = mux_out(select) + (out2 << 10); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: final_output = mux_out(select) + (out2 << 2);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: while(1); The right code snippet is: N/A
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: N/A
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: while(1); The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: while(1); The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: N/A
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: int2_t out2; The right code snippet is: uint2_t out2;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: uint2_t out2;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: int2_t out2; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: int2_t out2; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: uint2_t out2;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: for(int i=0; i<3; i++) { // code snippet to be unrolled } The right code snippet is: N/A
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: N/A
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: for(int i=0; i<3; i++) { // code snippet to be unrolled } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: for(int i=0; i<3; i++) { // code snippet to be unrolled } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: N/A
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: mux_out = 0; The right code snippet is: mux_out = 0b001;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: mux_out = 0b001;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: mux_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: mux_out = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: mux_out = 0b001;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: memcpy(dest_buffer, src_buffer, buffer_size/2); The right code snippet is: N/A
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: N/A
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: memcpy(dest_buffer, src_buffer, buffer_size/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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: memcpy(dest_buffer, src_buffer, buffer_size/2); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: N/A
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out cyclic The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out complete factor=3 The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out complete 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out complete factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=mux_out 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out dim=2 complete The right code snippet is: #pragma HLS array_partition variable=mux_out complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS array_partition variable=mux_out complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out dim=2 complete The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=mux_out dim=2 complete The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=mux_out complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_in The right code snippet is: #pragma HLS interface ap_none port=data_in
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS interface ap_none port=data_in
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_in The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_in The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=data_in
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface m_axi port=data_in offset=slave The right code snippet is: #pragma HLS interface m_axi port=data_in
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS interface m_axi port=data_in
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS interface m_axi port=data_in offset=slave The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS interface m_axi port=data_in offset=slave The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=data_in
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_memory port=data_in The right code snippet is: #pragma HLS interface ap_none port=data_in
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS interface ap_none port=data_in
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_memory port=data_in The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS interface ap_memory port=data_in The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=data_in
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_vld port=data_in The right code snippet is: #pragma HLS interface ap_none port=data_in
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS interface ap_none port=data_in
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_vld port=data_in The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS interface ap_vld port=data_in The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=data_in
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS unroll inner The right code snippet is: N/A
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HLS INTERFACE ap_n...
The right code snippet is: N/A
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INTERFACE ap_none port=select #pragma HL...
The wrong part of the code is: #pragma HLS unroll inner The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=data_in #pragma HLS INT...
The wrong part of the code is: #pragma HLS unroll inner The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: N/A
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: queue[head/9] = din.read(); The right code snippet is: queue[head/8] = din.read();
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: queue[head/8] = din.read();
'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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: queue[head/9] = din.read(); 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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: queue[head/9] = din.read(); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: queue[head/8] = din.read();
'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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2...
The wrong part of the code is: static int state; The right code snippet is: static int state = WAITING;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_PADDING = 2; con...
The right code snippet is: static int state = WAITING;
'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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; const int RECEIVING = 1; const int LEFT_...
The wrong part of the code is: static int state; 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 <hls_stream.h> const int SIZE = 20; const int INDEX_WIDTH = 8; const int MAX_INDEX = SIZE * 8 - 1; const int WAITING = 0; con...
The wrong part of the code is: static int state; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static int state = WAITING;
'INIT'