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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: // no suitable code snippet found for this bug type
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: // no suitable code snippet found for this bug type
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: // no suitable code snippet found for this bug type
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: // no suitable code snippet found for this bug type
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: // no suitable code snippet found for this bug type
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: // no suitable code snippet found for this bug type
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port...
The wrong part of the code is: // no suitable code snippet found for this bug type The right code snippet is: // no suitable code snippet found for this bug type
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=D ...
The right code snippet is: // no suitable code snippet found for this bug type
'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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The wrong part of the code is: // no suitable code snippet found for this bug type 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: ```c++ void d_ff_async( bool D, bool SET_B, bool RESET_B, bool CLK, bool &Q, bool &Q_N ) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: // no suitable code snippet found for this bug type The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: // no suitable code snippet found for this bug type
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: SRL_SIG[i+2] = SRL_SIG[i]; The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: SRL_SIG[i+2] = SRL_SIG[i]; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: SRL_SIG[i+2] = SRL_SIG[i]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: int i = 0; The right code snippet is: int i;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: int i;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: int i = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: int i = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int i;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: SRL_SIG[i+5] = SRL_SIG[i] >> 10; The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: SRL_SIG[i+1] = SRL_SIG[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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: SRL_SIG[i+5] = SRL_SIG[i] >> 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: SRL_SIG[i+5] = SRL_SIG[i] >> 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: SRL_SIG[i+1] = SRL_SIG[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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: for (i = DEPTH-1; i >= 0; i--) { The right code snippet is: for (i = DEPTH-2; i >= 0; i--) {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: for (i = DEPTH-2; i >= 0; i--) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: for (i = DEPTH-1; i >= 0; i--) { The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: for (i = DEPTH-1; i >= 0; i--) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (i = DEPTH-2; i >= 0; i--) {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: ap_int<DATA_WIDTH+1> temp = SRL_SIG[i]; SRL_SIG[i+1] = temp; The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: ap_int<DATA_WIDTH+1> temp = SRL_SIG[i]; SRL_SIG[i+1] = temp; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: ap_int<DATA_WIDTH+1> temp = SRL_SIG[i]; SRL_SIG[i+1] = temp; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: SRL_SIG[i+1] = SRL_SIG[i];
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: SRL_SIG[i+1] = SRL_SIG[i]; SRL_SIG[i+2] = SRL_SIG[i+1]; The right code snippet is: for (i = DEPTH-2; i >= 0; i--) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: for (i = DEPTH-2; i >= 0; 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: SRL_SIG[i+1] = SRL_SIG[i]; SRL_SIG[i+2] = SRL_SIG[i+1]; 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: SRL_SIG[i+1] = SRL_SIG[i]; SRL_SIG[i+2] = SRL_SIG[i+1]; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (i = DEPTH-2; i >= 0; 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: ap_uint<DATA_WIDTH> q = 0; The right code snippet is: ap_uint<DATA_WIDTH> q;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: ap_uint<DATA_WIDTH> q;
'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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: ap_uint<DATA_WIDTH> q = 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: ap_uint<DATA_WIDTH> q = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<DATA_WIDTH> q;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS INTERFACE bram port=SRL_SIG[DEPTH/2:] The right code snippet is: #pragma HLS INTERFACE bram port=SRL_SIG
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS INTERFACE bram port=SRL_SIG
'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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS INTERFACE bram port=SRL_SIG[DEPTH/2:] The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS INTERFACE bram port=SRL_SIG[DEPTH/2:] The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: #pragma HLS INTERFACE bram port=SRL_SIG
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=2 dim=1 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=6 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=6 dim=1 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=6 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG complete dim=1
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=DEPTH+1 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=DEPTH+1 dim=1 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG cyclic factor=DEPTH+1 dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=SRL_SIG 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS DATAFLOW flatten The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS DATAFLOW flatten The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS DATAFLOW flatten The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=SRL_SIG randomize The right code snippet is: #pragma HLS INTERFACE m_axi port=SRL_SIG
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS INTERFACE m_axi port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=SRL_SIG randomize 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=SRL_SIG randomize The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS INTERFACE axis port=SRL_SIG The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS INTERFACE axis port=SRL_SIG 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS INTERFACE axis port=SRL_SIG The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=SRL_SIG The right code snippet is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
The right code snippet is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=SRL_SIG 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=SRL_SIG The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_fifo port=SRL_SIG
'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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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 <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_ui...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, bool ce, ap_uint<DA...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WIDTH> data, ap_uint<ADDR_WIDTH> a, boo...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 32; const int ADDR_WIDTH = 5; const int DEPTH = 32; void shift_register(ap_uint<DATA_WI...
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'