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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS interface ap_vld port=wea The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS interface ap_vld port=wea 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS interface ap_vld port=wea The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS interface m_axi port=addra random The right code snippet is: #pragma HLS interface m_axi port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS interface m_axi port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS interface m_axi port=addra 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS interface m_axi port=addra random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS interface bram port=wea The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS interface bram port=wea 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS interface bram port=wea The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=wea
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS interface ap_none port=addra The right code snippet is: #pragma HLS interface bram port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS interface bram port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
The wrong part of the code is: #pragma HLS interface ap_none port=addra 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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS interface ap_none port=addra The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=addra
'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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
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 clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 ...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory depth=4096 port=...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=dina #pragma HLS INTERFACE ap_memory ...
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: #pragma HLS INTERFACE ap_clk clka #pragma HLS INTERFACE ap_memory depth=4096 port=addra #pragma HLS INTERFACE ap_memory depth=4096 port=...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE ...
The wrong part of the code is: bool d = false; The right code snippet is: bool d;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE axis ...
The right code snippet is: bool d;
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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS...
The wrong part of the code is: bool d = false; 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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The wrong part of the code is: bool d = false; The high-level-synthesis bug type of the code is: INIT The right code snippet is: bool d;
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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE ...
The wrong part of the code is: if (en) { while (te) { enclk = true; } } The right code snippet is: if (en) { if (te) { enclk = true; } else { enclk = false; } }
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE axis ...
The right code snippet is: if (en) { if (te) { enclk = true; } else { enclk = false; } }
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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS...
The wrong part of the code is: if (en) { while (te) { enclk = true; } } 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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The wrong part of the code is: if (en) { while (te) { enclk = true; } } The high-level-synthesis bug type of the code is: INF The right code snippet is: if (en) { if (te) { enclk = true; } else { enclk = false; } }
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 my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk The right code snippet is: #pragma HLS INTERFACE axis port=clk
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE axis port=clk
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk #pragm...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=clk The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS INTERFACE axis port=clk
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #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: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE axis ...
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: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
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: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS unroll factor=2 Note: Some of the bug types may not be applicable to this specific code snippet. The right code snippet is: // None found
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void my_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS INTERFACE axis ...
The right code snippet is: // None found
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_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=clk #pragma HLS...
The wrong part of the code is: #pragma HLS unroll factor=2 Note: Some of the bug types may not be applicable to this specific code snippet. 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_clock_gate ( bool clk, bool en, bool te, bool &enclk ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The wrong part of the code is: #pragma HLS unroll factor=2 Note: Some of the bug types may not be applicable to this specific code snippet. The high-level-synthesis bug type of the code is: ILNU The right code snippet is: // None found
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 asynch_reset_set_reg (bool D, bool S, bool R, bool CLK, bool &Q, bool &QN) { #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=S #pragma HLS ...
The wrong part of the code is: static bool Q_reg; Bug_type: 'OOB' The right code snippet is: static 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 asynch_reset_set_reg (bool D, bool S, bool R, bool CLK, bool &Q, bool &QN) { #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=S #pragma HLS INTER...
The right code snippet is: static 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 asynch_reset_set_reg (bool D, bool S, bool R, bool CLK, bool &Q, bool &QN) { #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=S #...
The wrong part of the code is: static bool Q_reg; Bug_type: 'OOB' The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void asynch_reset_set_reg (bool D, bool S, bool R, bool CLK, bool &Q, bool &QN) { #pragma HLS INTERFACE ap_none port=D #prag...
The wrong part of the code is: static bool Q_reg; Bug_type: 'OOB' The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: static ap_uint<1> cycle_reg; The right code snippet is: static ap_uint<1> cycle_reg = 0;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: static ap_uint<1> cycle_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: static ap_uint<1> cycle_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: static ap_uint<1> cycle_reg; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static ap_uint<1> cycle_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: mcb_cmd_bl = -1; The right code snippet is: mcb_cmd_bl = 0;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: mcb_cmd_bl = 0;
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: mcb_cmd_bl = -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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: mcb_cmd_bl = -1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: mcb_cmd_bl = 0;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: while (cycle_reg) { The right code snippet is: if (cycle_reg) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: if (cycle_reg) {
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: while (cycle_reg) { 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: while (cycle_reg) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (cycle_reg) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: mcb_wr_mask_reg = wb_sel_i << 33; The right code snippet is: mcb_wr_mask_reg = ~wb_sel_i;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: mcb_wr_mask_reg = ~wb_sel_i;
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: mcb_wr_mask_reg = wb_sel_i << 33; 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: mcb_wr_mask_reg = wb_sel_i << 33; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: mcb_wr_mask_reg = ~wb_sel_i;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: ap_int<32> wb_dat_reg = 0; The right code snippet is: ap_uint<32> wb_dat_reg = 0;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: ap_uint<32> wb_dat_reg = 0;
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: ap_int<32> wb_dat_reg = 0; 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: ap_int<32> wb_dat_reg = 0; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<32> wb_dat_reg = 0;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: wb_dat_o = wb_dat_reg + 32; The right code snippet is: wb_dat_o = wb_dat_reg;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: wb_dat_o = wb_dat_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: wb_dat_o = wb_dat_reg + 32; 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: wb_dat_o = wb_dat_reg + 32; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: wb_dat_o = wb_dat_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: if (cycle_reg || cycle_reg) { The right code snippet is: if (cycle_reg) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: if (cycle_reg) {
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: if (cycle_reg || cycle_reg) { 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: if (cycle_reg || cycle_reg) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: if (cycle_reg) {
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: static ap_uint<1> mcb_cmd_en_reg; The right code snippet is: static ap_uint<1> mcb_cmd_en_reg = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: static ap_uint<1> mcb_cmd_en_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: static ap_uint<1> mcb_cmd_en_reg; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: static ap_uint<1> mcb_cmd_en_reg; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static ap_uint<1> mcb_cmd_en_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg cyclic The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_reg complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg factor=3 The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_reg complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg complete dim=3 The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg complete dim=3 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: #pragma HLS array_partition variable=mcb_cmd_instr_reg complete dim=3 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=mcb_cmd_instr_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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: #pragma HLS dataflow pipeline The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mcb_cmd_empty The right code snippet is: #pragma HLS interface ap_none port=mcb_cmd_empty
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface */ ap_uint<...
The right code snippet is: #pragma HLS interface ap_none port=mcb_cmd_empty
'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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, /* * Wishbone interface ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mcb_cmd_empty 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: Here is the HLS translation of the given Verilog code: ``` #include <ap_int.h> void wb_mcb_32( ap_uint<1> clk, ap_uint<1> rst, ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mcb_cmd_empty The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=mcb_cmd_empty
'IDAP'