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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=3 The right code snippet is: None
'APT'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'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: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=3 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=3 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: None
'APT'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=7 The right code snippet is: None
'FND'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'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: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=7 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: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic factor=7 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: None
'FND'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic dim=2 factor=2 The right code snippet is: None
'DID'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS array_partition variable=state cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: None
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS dataflow The right code snippet is: None
'DFP'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS dataflow The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS dataflow The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: None
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS interface ap_none port=in #pragma HLS interface ap_none port=out The right code snippet is: None
'IDAP'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS interface ap_none port=in #pragma HLS interface ap_none port=out The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS interface ap_none port=in #pragma HLS interface ap_none port=out The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: None
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS interface m_axi port=in #pragma HLS interface m_axi port=out The right code snippet is: None
'RAMB'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS interface m_axi port=in #pragma HLS interface m_axi port=out The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS interface m_axi port=in #pragma HLS interface m_axi port=out The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: None
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in #pragma HLS interface bram port=out The right code snippet is: None
'SMA'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in #pragma HLS interface bram port=out The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in #pragma HLS interface bram port=out The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: None
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS interface ap_vld port=in #pragma HLS interface s_axilite port=out The right code snippet is: None
'AMS'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
The wrong part of the code is: #pragma HLS interface ap_vld port=in #pragma HLS interface s_axilite port=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: ``` #include <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS interface ap_vld port=in #pragma HLS interface s_axilite port=out The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: None
'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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: None
'MLP'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: None
'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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hl...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: None
'ILNU'
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 n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state_machine(hls::st...
The right code snippet is: None
'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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; // number of states void onehot_state...
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 <hls_stream.h> const int n = 4; // number of input signals const int m = 2; // number of output signals const int s = 5; /...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: None
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: temp_sum = a + twos_comp_b + 1; The right code snippet is: temp_sum = a + twos_comp_b;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: temp_sum = a + twos_comp_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: temp_sum = a + twos_comp_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE...
The wrong part of the code is: temp_sum = a + twos_comp_b + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: temp_sum = a + twos_comp_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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: ap_uint<4> reg; The right code snippet is: static ap_uint<4> reg = 0;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: static ap_uint<4> reg = 0;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: ap_uint<4> reg; 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=a #pragma HLS INTERFACE...
The wrong part of the code is: ap_uint<4> reg; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static ap_uint<4> reg = 0;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: reg = (reg.range(2,4), parallel_in[0]); The right code snippet is: reg = (reg.range(2,0), parallel_in[0]);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: reg = (reg.range(2,0), parallel_in[0]);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: reg = (reg.range(2,4), parallel_in[0]); 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=a #pragma HLS INTERFACE...
The wrong part of the code is: reg = (reg.range(2,4), parallel_in[0]); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: reg = (reg.range(2,0), parallel_in[0]);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: ap_uint<8> twos_comp_b = ~b + 1; The right code snippet is: ap_uint<4> twos_comp_b = ~b + 1;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: ap_uint<4> twos_comp_b = ~b + 1;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: ap_uint<8> twos_comp_b = ~b + 1; 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=a #pragma HLS INTERFACE...
The wrong part of the code is: ap_uint<8> twos_comp_b = ~b + 1; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<4> twos_comp_b = ~b + 1;
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: for (int i = 0; i < 10; i++) {
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE...
The wrong part of the code is: for (int i = 0; i < 5; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) {
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: static ap_uint<4> reg = 1; The right code snippet is: static ap_uint<4> 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: static ap_uint<4> 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: static ap_uint<4> reg = 1; 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=a #pragma HLS INTERFACE...
The wrong part of the code is: static ap_uint<4> reg = 1; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static ap_uint<4> 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, parallel_in); The right code snippet is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, shift_reg);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, shift_reg);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, parallel_in); 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=a #pragma HLS INTERFACE...
The wrong part of the code is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, parallel_in); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: shift_register(parallel_in, shift_parallel, sum, shift_reg_out, shift_reg);
'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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=3 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=3 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=3 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=6 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=6 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=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=6 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS DATAFLOW II=2 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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=parallel_in The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=parallel_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=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=parallel_in The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=parallel_in random The right code snippet is: #pragma HLS INTERFACE m_axi port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS INTERFACE m_axi port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=parallel_in random 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=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=parallel_in random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS INTERFACE bram port=parallel_in The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=se...
The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE bram port=parallel_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=a #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE bram port=parallel_in The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=parallel_in
'SMA'