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_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS interface ap_memory port=X The right code snippet is: #pragma HLS interface ap_none port=X
'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_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS interface ap_none port=X
'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_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: #pragma HLS interface ap_memory port=X 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_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS interface ap_memory port=X The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=X
'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_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A5, S); The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals bool mux_2to1...
The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB, bool VNB) { // Local signals ...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A5, S); 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: ```c #include <hls_math.h> void mux4to1_with_pwrgood(bool X, bool A0, bool A1, bool A2, bool A3, bool S, bool VPWR, bool VGND, bool VPB...
The wrong part of the code is: mux_2to1_out_0 = udp_mux_2to1(A0, A5, S); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: mux_2to1_out_0 = udp_mux_2to1(A0, A1, S);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in[2]; data_out = select ? data_in[2] : data_in[0]; The right code snippet is: None
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: bool data_in[2]; ...
The right code snippet is: None
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in[2]; data_out = select ? data_in[2] : data_in[0]; 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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ``` ...
The wrong part of the code is: bool data_in[2]; data_out = select ? data_in[2] : data_in[0]; The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access The right code snippet is: None
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, data_out;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in_0, bool data_in_1, bool select, data_out; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'INIT': Read of uninitialized variable
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, data_out;) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: bool data_in_0, bool d...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, data_out;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in_0, bool data_in_1, bool select, data_out; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, data_out;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in_0, bool data_in_1, bool select, data_out; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(data_out = select ? data_in_1 << 2 : data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? data_in_1 << 2 : data_in_0; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(data_out = select ? data_in_1 << 2 : data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: data_out = select ? data_in_1...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(data_out = select ? data_in_1 << 2 : data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? data_in_1 << 2 : data_in_0; 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: ``` void mux2to1(data_out = select ? data_in_1 << 2 : data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? data_in_1 << 2 : data_in_0; The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: while (1) { data_out = select ? data_in_1 : data_in_0; } The right code snippet is: None
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: while (1) { d...
The right code snippet is: None
'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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: while (1) { data_out = select ? data_in_1 : data_in_0; } 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: ``` void mux2to1(bool data_in_0, bool data_in_1, bool select, bool &data_out) { data_out = select ? data_in_1 : data_in_0; } ``` ...
The wrong part of the code is: while (1) { data_out = select ? data_in_1 : data_in_0; } 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: None
'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: ``` void mux2to1(data_out = select ? (int)data_in_1 : (int)data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? (int)data_in_1 : (int)data_in_0; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'USE': Unintended sign extension
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(data_out = select ? (int)data_in_1 : (int)data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: data_out = select ? (int...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(data_out = select ? (int)data_in_1 : (int)data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? (int)data_in_1 : (int)data_in_0; The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(data_out = select ? (int)data_in_1 : (int)data_in_0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: data_out = select ? (int)data_in_1 : (int)data_in_0; The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; }) { data_out = select ? data_in_1 : data_in_0; } ``` ...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; } The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(#pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; }) { data_out = select ? data_in_1 : data_in_0; } ``` The ...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(#pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; }) { data_out = select ? data_in_1 : data_in_0...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; } 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: ``` void mux2to1(#pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; }) { data...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { data_out = select ? data_in_1 : data_in_0; } The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling The right code snippet is: bool data_in_0, bool data_in_1, bool select,...
'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: ``` void mux2to1(bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0;) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: ...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0; The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0;) { data_out = select ? data_in_1 : dat...
The wrong part of the code is: bool data_in_0 = 0, bool data_in_1 = 0, bool select = 0, bool &data_out = 0; The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer The right code snippet is: bool data_in_0, bool data_in_1, bool select, b...
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ``` The wr...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; ...
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'BUF': Copying from the wrong half of a split buffer
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_o...
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'BUF': Copying from the wrong half of a split buffer The right code snippet is: bool data_in_0, bool data_in_1, ...
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: #pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0]; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'APT': Array partition type error for the pragma '#pragma HLS array_partition'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ``` The wro...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'APT': Array partition type error for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; }...
The wrong part of the code is: #pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'APT': Array partition type error for the pragma '#pragma HLS array_partition'
'APT': Array partition type error for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0];) { data_ou...
The wrong part of the code is: #pragma HLS array_partition variable=data_in block factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'APT': Array partition type error for the pragma '#pragma HLS array_partition' The right code snippet is: bool da...
'APT': Array partition type error for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0]; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'FND': Factor not divisible for the pragma '#pragma HLS array_partition'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ``` The wr...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'FND': Factor not divisible for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; ...
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0]; The high-level-synthesis bug type of the code is: 'FND': Factor not divisible for the pragma '#pragma HLS array_partition'
'FND': Factor not divisible for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0];) { data_o...
The wrong part of the code is: #pragma HLS array_partition variable=data_in cyclic factor=3 data_out = select ? data_in[2] : data_in[0]; The high-level-synthesis bug type of the code is: 'FND': Factor not divisible for the pragma '#pragma HLS array_partition' The right code snippet is: bool data_in...
'FND': Factor not divisible for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ```...
The wrong part of the code is: #pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_in_0; } ``` ...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { data_out = select ? data_in_1 : data_...
The wrong part of the code is: #pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0];) { ...
The wrong part of the code is: #pragma HLS array_partition variable=data_in dim=2 cyclic factor=2 data_out = select ? data_in[1] : data_in[0]; The high-level-synthesis bug type of the code is: 'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition' The right code snippet is: boo...
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS dataflow data_out = select ? data_in_0 : data_in_1;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: #pragma HLS dataflow data_out = select ? data_in_0 : data_in_1; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void mux2to1(#pragma HLS dataflow data_out = select ? data_in_0 : data_in_1;) { data_out = select ? data_in_1 : data_in_0; } ``` The wrong part of the code is: #pragma HLS d...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void mux2to1(#pragma HLS dataflow data_out = select ? data_in_0 : data_in_1;) { data_out = select ? data_in_1 : data_in_0; } ```
The wrong part of the code is: #pragma HLS dataflow data_out = select ? data_in_0 : data_in_1; The high-level-synthesis bug type of the code is: 'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS dataflow data_out = select ? data_in_0 : data_in_1;) { data_out = select ? data_in_1 : data_in_0; } ```...
The wrong part of the code is: #pragma HLS dataflow data_out = select ? data_in_0 : data_in_1; The high-level-synthesis bug type of the code is: 'DFP': Dataflow position error for the pragma '#pragma HLS dataflow' The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_ou...
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void mux2to1(#pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? data_in_1 : da...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? data_in_1 : data_in_0; The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(#pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? data_in_1 : data_in...
The right code snippet is: bool data_in_0, bool data_in_1, bool select, bool &data_out
'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: ``` void mux2to1(#pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? dat...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? data_in_1 : data_in_0; The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the prag...
'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: ``` void mux2to1(#pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld p...
The wrong part of the code is: #pragma HLS interface ap_fifo port=data_out #pragma HLS interface ap_none port=data_in_0 #pragma HLS interface ap_vld port=data_in_1 data_out = select ? data_in_1 : data_in_0; The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the prag...
'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_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: static unsigned int counter; The right code snippet is: static unsigned int counter = 0;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: static unsigned int counter = 0;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: static unsigned int counter; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: static unsigned int counter; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static unsigned int counter = 0;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here } The right code snippet is: #pragma HLS unroll for (int i = 0; i < N; i++) { // some code here }
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: #pragma HLS unroll for (int i = 0; i < N; i++) { // some code here }
'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_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here } 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_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here } The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll for (int i = 0; i < N; i++) { // some code here }
'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_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The right code snippet is: #pragma HLS array_partition variable=count complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: #pragma HLS array_partition variable=count 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: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=count 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: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem1 The right code snippet is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem1 The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem1 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=data offset=slave bundle=gmem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: count.data = counter << 32; The right code snippet is: count.data = counter << 2;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: count.data = counter << 2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: count.data = counter << 32; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: count.data = counter << 32; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: count.data = counter << 2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: int arr[N]; arr[N] = 5; The right code snippet is: int arr[N]; arr[N+1] = 5;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: int arr[N]; arr[N+1] = 5;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: int arr[N]; arr[N] = 5; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: int arr[N]; arr[N] = 5; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: int arr[N]; arr[N+1] = 5;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code here } The right code snippet is: for (int i = 0; i < N; i++) { // some code here }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: for (int i = 0; i < N; i++) { // some code here }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code here } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code here } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < N; i++) { // some code here }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: for (int i = 0; i < N/2; i++) { #pragma HLS unroll // some code here } The right code snippet is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: for (int i = 0; i < N/2; i++) { #pragma HLS unroll // some code here } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: for (int i = 0; i < N/2; i++) { #pragma HLS unroll // some code here } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < N; i++) { #pragma HLS unroll // some code here }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: int x = 0; The right code snippet is: int x = 5;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_ctrl_none port=re...
The right code snippet is: int x = 5;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bool clk) { #pragma HLS INTERFACE ap_c...
The wrong part of the code is: int x = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_axi_sdata.h> #define N 4 typedef ap_axis<32, 2, 5, 6> intSdCh; void binary_up_counter(bool reset, intSdCh& count, bo...
The wrong part of the code is: int x = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int x = 5;
'ZERO'