instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, const ap...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, const ap_uint...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_chann...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, const ap...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, const ap_uint...
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: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_channel_shiftReg( const ap_clk& clk, ...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> const int DATA_WIDTH = 12; const int ADDR_WIDTH = 2; const int DEPTH = 3; void FIFO_pixelq_op_img_rows_V_chann...
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: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: static bool reg_Q; Q_N = reg_Q; The right code snippet is: static bool reg_Q; Q_N = ~reg_Q;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SCD...
The right code snippet is: static bool reg_Q; Q_N = ~reg_Q;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ...
The wrong part of the code is: static bool reg_Q; Q_N = reg_Q; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ...
The wrong part of the code is: static bool reg_Q; Q_N = reg_Q; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static bool reg_Q; Q_N = ~reg_Q;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: while(1) { } The right code snippet is: if (CLK) { if (SCD) { reg_Q = 0; } else if (SCE) { reg_Q = 1; } else { reg_Q = D; } }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SCD...
The right code snippet is: if (CLK) { if (SCD) { reg_Q = 0; } else if (SCE) { reg_Q = 1; } else { reg_Q = D; } }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ...
The wrong part of the code is: while(1) { } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ...
The wrong part of the code is: while(1) { } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (CLK) { if (SCD) { reg_Q = 0; } else if (SCE) { reg_Q = 1; } else { reg_Q = D; } }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS UNROLL_FACTOR=2 The right code snippet is: #pragma HLS PIPELINE II=1
'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_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SCD...
The right code snippet is: #pragma HLS PIPELINE II=1
'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_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ...
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_none port=Q #pragma HLS INTERFACE ap_none port=Q_N #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ...
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 PIPELINE II=1
'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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: sum = a + b + 1; The right code snippet is: sum = a + b;
'OOB': Out-of-bounds array access
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: sum = a + b;
'OOB': Out-of-bounds array access
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: sum = a + b + 1; The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access
'OOB': Out-of-bounds array access
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: sum = a + b + 1; The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access The right code snippet is: sum = a + b;
'OOB': Out-of-bounds array access
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: consecutive_ones_count = (consecutive_ones_count << 8) | (sum[15] & sum[14] & sum[13] & sum[12]); The right code snippet is: consecutive_ones_count = (consecutive_ones_count << 1) | (sum[7] & sum[6] & sum[5] & sum[4]);
'SHFT': Bit shift by an out-of-bounds amount
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: consecutive_ones_count = (consecutive_ones_count << 1) | (sum[7] & sum[6] & sum[5] & sum[4]);
'SHFT': Bit shift by an out-of-bounds amount
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: consecutive_ones_count = (consecutive_ones_count << 8) | (sum[15] & sum[14] & sum[13] & sum[12]); The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount
'SHFT': Bit shift by an out-of-bounds amount
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: consecutive_ones_count = (consecutive_ones_count << 8) | (sum[15] & sum[14] & sum[13] & sum[12]); The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount The right code snippet is: consecutive_ones_count = (consecutive_ones_count...
'SHFT': Bit shift by an out-of-bounds amount
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: for (int i = 0; i <= n; i++) { // some code here } The right code snippet is: for (int i = 0; i < n; i++) { // some code here }
'INF': An infinite loop arising from an incorrect loop termination
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: for (int i = 0; i < n; i++) { // some code here }
'INF': An infinite loop arising from an incorrect loop termination
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: for (int i = 0; i <= n; i++) { // some code here } The high-level-synthesis bug type of the code is: 'INF': An infinite loop arising from an incorrect loop termination
'INF': An infinite loop arising from an incorrect loop termination
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: for (int i = 0; i <= n; i++) { // some code here } The high-level-synthesis bug type of the code is: 'INF': An infinite loop arising from an incorrect loop termination The right code snippet is: for (int i = 0; i < n; i++) { // some code here }
'INF': An infinite loop arising from an incorrect loop termination
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { // some code here } The right code snippet is: for (int i = 0; i < 8; i++) { // some code here }
'MLU': Errors in manual loop unrolling
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: for (int i = 0; i < 8; i++) { // some code here }
'MLU': Errors in manual loop unrolling
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { // some code here } The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling
'MLU': Errors in manual loop unrolling
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { // some code here } The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling The right code snippet is: for (int i = 0; i < 8; i++) { // some code here }
'MLU': Errors in manual loop unrolling
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<1> select, ap_uint<8> max, ap_uint<4> &consecutive_ones_count) { The right code snippet is: void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<1> selec...
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<1> select, ap_uint<8> &max, ap_uint<4> &consecutive_ones_count) {
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<1> select, ap_uint<8> max, ap_uint<4> &consecutive_ones_count) { The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface...
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<1> select, ap_uint<8> max, ap_uint<4> &consecutive_ones_count) { The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface...
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS pipeline II=2 for (int i = 0; i < n; i++) { // some code here } The right code snippet is: #pragma HLS pipeline II=1 for (int i = 0; i < n; i++) { // some code here }
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS pipeline II=1 for (int i = 0; i < n; i++) { // some code here }
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS pipeline II=2 for (int i = 0; i < n; i++) { // some code here } The high-level-synthesis bug type of the code is: 'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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> void max_value(ap_uint<1> reset, ap_uint<8> a, ap_uint<8> b, ap_uint<8> &max) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS pipeline II=2 for (int i = 0; i < n; i++) { // some code here } The high-level-synthesis bug type of the code is: 'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline' The right code snippet is: #pragma HLS pipeline II=1 for (int i = 0; i...
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int temp = a[99]; The right code snippet is: int temp = a[101];
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: int temp = a[101];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int temp = a[99]; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: int temp = a[99]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: int temp = a[101];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int temp; The right code snippet is: int temp; sum[0] = temp;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: int temp; sum[0] = temp;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int temp; sum[0] = temp;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int temp = 1 << -1; The right code snippet is: int temp = 1 << 33;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: int temp = 1 << 33;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int temp = 1 << -1; 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: int temp = 1 << -1; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: int temp = 1 << 33;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: for(int i=0; i>=0; i++) { // do something } The right code snippet is: for(int i=0; i<10; i++) { // do something }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: for(int i=0; i<10; i++) { // do something }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: for(int i=0; i>=0; i++) { // do something } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: for(int i=0; i>=0; i++) { // do something } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for(int i=0; i<10; i++) { // do something }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: signed char c = -1; int i = c; The right code snippet is: unsigned char c = -1; int i = c;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: unsigned char c = -1; int i = c;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: signed char c = -1; int i = c; 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: signed char c = -1; int i = c; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: unsigned char c = -1; int i = c;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: for(int i=0; i<11; i+=2) { // do something } The right code snippet is: for(int i=0; i<10; i++) { // do something }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: for(int i=0; i<10; i++) { // do something }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: for(int i=0; i<11; i+=2) { // do something } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: for(int i=0; i<11; i+=2) { // do something } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for(int i=0; i<10; i++) { // do something }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: int temp; The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: int temp; 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: memcpy(dest, &src[50], sizeof(src)); The right code snippet is: memcpy(dest, src, sizeof(src));
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: memcpy(dest, src, sizeof(src));
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: memcpy(dest, &src[50], sizeof(src)); The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: memcpy(dest, &src[50], sizeof(src)); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(dest, src, sizeof(src));
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=a cyclic factor=10 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a The right code snippet is: #pragma HLS interface ap_none port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS interface ap_none port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_fifo port=a The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface m_axi port=a depth=10 The right code snippet is: #pragma HLS interface m_axi port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS interface m_axi port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface m_axi port=a depth=10 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface m_axi port=a depth=10 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=a
'RAMB'