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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool and0_out; if(A1){ and0_out = true; } else{ and0_out = A2; } The right code snippet is: bool and0_out = A1 && A2;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool and0_out; if(A1){ and0_out = true; } else{ and0_out = A2; } 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool and0_out; if(A1){ and0_out = true; } else{ and0_out = A2; } The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool and0_out = A1 && A2;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool nor0_out_Y = !(b || (and0_out << 3)); The right code snippet is: bool nor0_out_Y = !(b || and0_out);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool nor0_out_Y = !(b || and0_out);
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool nor0_out_Y = !(b || (and0_out << 3)); 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool nor0_out_Y = !(b || (and0_out << 3)); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: bool nor0_out_Y = !(b || and0_out);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool nor0_out_Y = !(b || and0_out); while(true){ Y = nor0_out_Y; } The right code snippet is: bool nor0_out_Y = !(b || and0_out); Y = nor0_out_Y;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool nor0_out_Y = !(b || and0_out); Y = nor0_out_Y;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool nor0_out_Y = !(b || and0_out); while(true){ Y = nor0_out_Y; } 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool nor0_out_Y = !(b || and0_out); while(true){ Y = nor0_out_Y; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: bool nor0_out_Y = !(b || and0_out); Y = nor0_out_Y;
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool and0_out = (bool)(signed char)A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool and0_out = (bool)(signed char)A1 && A2; 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool and0_out = (bool)(signed char)A1 && A2; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool and0_out = A1 && A2;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool and0_out_0 = A1 && A2; bool and0_out_1 = A1 && A2; bool and0_out_2 = A1 && A2; bool and0_out_3 = A1 && A2; bool and0_out_4 = A1 && A2; bool and0_out_5 = A1 && A2; bool and0_out_6 = A1 && A2; bool and0_out_7 = A1 && A2; and0_out = and0_out_0 && and0_out_1 && and0_out_2 && and...
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool and0_out_0 = A1 && A2; bool and0_out_1 = A1 && A2; bool and0_out_2 = A1 && A2; bool and0_out_3 = A1 && A2; bool and0_out_4 = A1 && A2; bool and0_out_5 = A1 && A2; bool and0_out_6 = A1 && A2; bool and0_out_7 = A1 && A2; and0_out = and0_out_0 && and0_out_1 && and0_out_2 && and...
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool and0_out_0 = A1 && A2; bool and0_out_1 = A1 && A2; bool and0_out_2 = A1 && A2; bool and0_out_3 = A1 && A2; bool and0_out_4 = A1 && A2; bool and0_out_5 = A1 && A2; bool and0_out_6 = A1 && A2; bool and0_out_7 = A1 && A2; and0_out = and0_out_0 && and0_out_1 && and0_out_2 && and...
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool b = 0; The right code snippet is: bool b = !B1_N;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool b = !B1_N;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool b = 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool b = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool b = !B1_N;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: bool and0_out = A1[-1] && A2; The right code snippet is: bool and0_out = A1 && A2;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool and0_out = A1[-1] && A2; 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: bool and0_out = A1[-1] && A2; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: bool and0_out = A1 && A2;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=3 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=3 bool and0_out = A1 && A2; 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=3 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: bool and0_out = A1 && A2;
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=5 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=5 bool and0_out = A1 && A2; 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic factor=5 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: bool and0_out = A1 && A2;
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic dim=2 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic dim=2 bool and0_out = A1 && A2; 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: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS array_partition variable=A1 cyclic dim=2 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: bool and0_out = A1 && A2;
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS dataflow bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS dataflow bool and0_out = A1 && A2; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS dataflow bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS interface ap_none port=A1 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS interface ap_none port=A1 bool and0_out = A1 && A2; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS interface ap_none port=A1 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 bool and0_out = A1 && A2[-1]; The right code snippet is: bool and0_out = A1 && A2;
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 bool and0_out = A1 && A2[-1]; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 bool and0_out = A1 && A2[-1]; The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS interface bram port=A1 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS interface bram port=A1 bool and0_out = A1 && A2; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS interface bram port=A1 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS interface ap_vld port=A1 bool and0_out = A1[0] && A2; The right code snippet is: bool and0_out = A1 && A2;
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS interface ap_vld port=A1 bool and0_out = A1[0] && A2; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS interface ap_vld port=A1 bool and0_out = A1[0] && A2; The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 ...
The wrong part of the code is: #pragma HLS pipeline II=2 bool and0_out = A1 && A2; The right code snippet is: bool and0_out = A1 && A2;
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=A1 #pr...
The right code snippet is: bool and0_out = A1 && A2;
'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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS pipeline II=2 bool and0_out = A1 && A2; 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++ #include <hls_stream.h> void digital_circuit(bool A1, bool A2, bool B1_N, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: #pragma HLS pipeline II=2 bool and0_out = A1 && A2; The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: bool and0_out = A1 && A2;
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: if (counter_out > register_out) { // Out-of-bounds array access final_output = counter_out; } else { final_output = register_out; } The right code snippet is: if (counter_out < register_out) { final_output = counter_out; } else { final_output = register_o...
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: if (counter_out < register_out) { final_output = counter_out; } else { final_output = register_out; }
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: if (counter_out > register_out) { // Out-of-bounds array access final_output = counter_out; } else { final_output = register_out; } The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: if (counter_out > register_out) { // Out-of-bounds array access final_output = counter_out; } else { final_output = register_out; } The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (counter_out < register_out) { final_...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: static ap_uint<8> reg; // Read of uninitialized variable if (reset) { reg = 0; } else { reg = data_in; } The right code snippet is: static ap_uint<8> reg = 0; if (reset) { reg = 0; } else { reg = data_in; }
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: static ap_uint<8> reg = 0; if (reset) { reg = 0; } else { reg = data_in; }
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: static ap_uint<8> reg; // Read of uninitialized variable if (reset) { reg = 0; } else { reg = data_in; } The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: static ap_uint<8> reg; // Read of uninitialized variable if (reset) { reg = 0; } else { reg = data_in; } The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static ap_uint<8> reg = 0; if (reset) { reg = 0; } else { reg ...
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: counter_out << 10; // Bit shift by an out-of-bounds amount The right code snippet is: counter_out++;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: counter_out++;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: counter_out << 10; // Bit shift by an out-of-bounds amount The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: counter_out << 10; // Bit shift by an out-of-bounds amount The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: counter_out++;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: while (counter_out > register_out) { // An infinite loop arising from an incorrect loop termination counter_out++; } The right code snippet is: while (counter_out < register_out) { counter_out++; }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: while (counter_out < register_out) { counter_out++; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: while (counter_out > register_out) { // An infinite loop arising from an incorrect loop termination counter_out++; } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: while (counter_out > register_out) { // An infinite loop arising from an incorrect loop termination counter_out++; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (counter_out < register_out) { counter_out++; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 255; signed_data = (ap_int<8>) unsigned_data; // Unintended sign extension The right code snippet is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 255; signed_data = unsigned_data;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 255; signed_data = unsigned_data;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 255; signed_data = (ap_int<8>) unsigned_data; // Unintended sign extension The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 255; signed_data = (ap_int<8>) unsigned_data; // Unintended sign extension The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_int<8> signed_data = 0; ap_uint<8> unsigned_data = 2...
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: for (int i = 0; i < 3; i++) { // code block } // Errors in manual loop unrolling The right code snippet is: for (int i = 0; i < 4; i++) { // code block }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: for (int i = 0; i < 4; i++) { // code block }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: for (int i = 0; i < 3; i++) { // code block } // Errors in manual loop unrolling The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: for (int i = 0; i < 3; i++) { // code block } // Errors in manual loop unrolling The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 4; i++) { // code block }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: static ap_uint<8> reg; // Variable initialized to zero instead of nonzero initializer The right code snippet is: static ap_uint<8> reg = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: static ap_uint<8> reg = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: static ap_uint<8> reg; // Variable initialized to zero instead of nonzero initializer The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: static ap_uint<8> reg; // Variable initialized to zero instead of nonzero initializer The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static ap_uint<8> reg = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); // Copying from the wrong half of a split buffer The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); // Copying from the wrong half of a split buffer The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); // Copying from the wrong half of a split buffer The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=buffer1 complete dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' The right code snippet is: #pragma HLS array_partition variable=buffer1 cyclic factor=4
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out #pragma HLS INTE...
The right code snippet is: #pragma HLS array_partition variable=buffer1 cyclic factor=4
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS INTERFACE ap_none port=register_out ...
The wrong part of the code is: #pragma HLS array_partition variable=buffer1 complete dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=counter_out #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=buffer1 complete dim=1 // Array partition type error for the pragma '#pragma HLS array_partition' The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=buffer1 cycl...
'APT'