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 ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: state_r = state_e1 << 10; The right code snippet is: state_r = state_e1;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: state_r = state_e1;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: state_r = state_e1 << 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: state_r = state_e1 << 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: state_r = state_e1;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: void state_machine(bool clk, bool rst_, int &state_r) { The right code snippet is: void state_machine(bool clk, bool rst_, state_t &state_r) {
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: void state_machine(bool clk, bool rst_, state_t &state_r) {
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: void state_machine(bool clk, bool rst_, int &state_r) { 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: void state_machine(bool clk, bool rst_, int &state_r) { The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: void state_machine(bool clk, bool rst_, state_t &state_r) {
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: static state_t state_e1 = 0; The right code snippet is: static state_t state_e1 = IDLE;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: static state_t state_e1 = IDLE;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: static state_t state_e1 = 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: static state_t state_e1 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static state_t state_e1 = IDLE;
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 cyclic The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 factor=3 The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 complete dim=2 The right code snippet is: #pragma HLS array_partition variable=state_e1 complete dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS array_partition variable=state_e1 complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 complete dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS array_partition variable=state_e1 complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=state_e1 complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS dataflow region 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS dataflow region 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS dataflow region 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS interface ap_fifo port=state_r The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS interface ap_fifo port=state_r 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS interface ap_fifo port=state_r The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS interface m_axi port=state_r offset=32 The right code snippet is: #pragma HLS interface m_axi port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS interface m_axi port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS interface m_axi port=state_r offset=32 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS interface m_axi port=state_r offset=32 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS interface bram port=state_r The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS interface bram port=state_r 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS interface bram port=state_r The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=state_r
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: #pragma HLS interface ap_none port=state_e1 The right code snippet is: #pragma HLS interface bram port=state_e1
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: #pragma HLS interface bram port=state_e1
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: #pragma HLS interface ap_none port=state_e1 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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: #pragma HLS interface ap_none port=state_e1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=state_e1
'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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
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=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: bool d_val = d.read() + 1; The right code snippet is: bool d_val = d.read();
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: bool d_val = d.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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: bool d_val = d.read() + 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: bool d_val = d.read() + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: bool d_val = d.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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: bool q_reg; The right code snippet is: bool q_reg = 0;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: bool q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: bool q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: bool q_reg; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: q_n_reg = ~d_val << 10; The right code snippet is: q_n_reg = ~d_val;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: q_n_reg = ~d_val;
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: q_n_reg = ~d_val << 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: q_n_reg = ~d_val << 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: q_n_reg = ~d_val;
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: while (false) { The right code snippet is: while (true) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: while (true) {
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: while (false) { 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: while (false) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (true) {
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: int q_n_reg = 1; The right code snippet is: bool q_n_reg = 1;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: bool q_n_reg = 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: int q_n_reg = 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: int q_n_reg = 1; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool q_n_reg = 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: bool q_n_reg = 0; The right code snippet is: bool q_n_reg = 1;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: bool q_n_reg = 1;
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: bool q_n_reg = 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: bool q_n_reg = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool q_n_reg = 1;
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: bool d_val = d.read_half(); The right code snippet is: bool d_val = d.read();
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: bool d_val = d.read();
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: bool d_val = d.read_half(); 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: bool d_val = d.read_half(); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: bool d_val = d.read();
'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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg cyclic The right code snippet is: #pragma HLS array_partition variable=q_reg complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: #pragma HLS array_partition variable=q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg 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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg block factor=3 The right code snippet is: #pragma HLS array_partition variable=q_reg complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: #pragma HLS array_partition variable=q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg block factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg block factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg complete dim=2 The right code snippet is: #pragma HLS array_partition variable=q_reg complete dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n ) { ...
The right code snippet is: #pragma HLS array_partition variable=q_reg complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: #pragma HLS array_partition variable=q_reg complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=q_reg complete dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_n )...
The wrong part of the code is: #pragma HLS dataflow region 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<bool>& q_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: void async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hls::stream<bool>& q, hls::stream<b...
The wrong part of the code is: #pragma HLS dataflow region 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 async_sr_ff( hls::stream<bool>& clk, hls::stream<bool>& reset, hls::stream<bool>& set, hls::stream<bool>& d, hl...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'