instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS interface bram port=in_vec // mapping scalar values to array interfaces The right code snippet is: #pragma HLS interface ap_none port=in_vec
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS interface ap_none port=in_vec
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS interface bram port=in_vec // mapping scalar values to array interfaces The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS interface bram port=in_vec // mapping scalar values to array interfaces The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=in_vec
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS interface ap The right code snippet is: #pragma HLS interface ap_none port=in_vec
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS interface ap_none port=in_vec
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS interface ap The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS interface ap The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=in_vec
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: adder4(A(4, 1), B(3, 0), S1); The right code snippet is: adder4(A(3, 0), B(3, 0), S1);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: adder4(A(3, 0), B(3, 0), S1);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: adder4(A(4, 1), B(3, 0), S1); The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: adder4(A(4, 1), B(3, 0), S1); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: adder4(A(3, 0), B(3, 0), S1);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: ap_uint<4> S1; The right code snippet is: ap_uint<4> S1, S2;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<4> S1, S2;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: ap_uint<4> S1; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: ap_uint<4> S1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<4> S1, S2;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: S3 = S1(3) ^ S2(5); The right code snippet is: S3 = S1(3) ^ S2(0);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: S3 = S1(3) ^ S2(0);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: S3 = S1(3) ^ S2(5); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: S3 = S1(3) ^ S2(5); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: S3 = S1(3) ^ S2(0);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: while (1) {} The right code snippet is: N/A
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: while (1) {} The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: while (1) {} The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: N/A
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: S3 = (ap_uint<1>) S1(3) ^ (ap_uint<1>) S2(0); The right code snippet is: S3 = S1(3) ^ S2(0);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: S3 = S1(3) ^ S2(0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: S3 = (ap_uint<1>) S1(3) ^ (ap_uint<1>) S2(0); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: S3 = (ap_uint<1>) S1(3) ^ (ap_uint<1>) S2(0); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: S3 = S1(3) ^ S2(0);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { adder4(A(i+1, i), B(i+1, i), S1(i/2)); } The right code snippet is: N/A
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { adder4(A(i+1, i), B(i+1, i), S1(i/2)); } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: for (int i = 0; i < 8; i+=2) { adder4(A(i+1, i), B(i+1, i), S1(i/2)); } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: N/A
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: ap_uint<4> S1 = 0, S2 = 0; The right code snippet is: ap_uint<4> S1, S2;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<4> S1, S2;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: ap_uint<4> S1 = 0, S2 = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: ap_uint<4> S1 = 0, S2 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<4> S1, S2;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: adder4(A(7, 4), B(7, 4), S1); The right code snippet is: N/A
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: adder4(A(7, 4), B(7, 4), S1); The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: adder4(A(7, 4), B(7, 4), S1); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: N/A
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 cyclic factor=2 #pragma HLS ARRAY_PARTITION variable=S2 cyclic factor=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 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_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 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_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 cyclic factor=2 #pragma HLS ARRAY_PARTITION variable=S2 cyclic factor=2 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 cyclic factor=2 #pragma HLS ARRAY_PARTITION variable=S2 cyclic factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTIT...
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=2 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=2 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=2 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=2 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=2 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITIO...
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=3 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=3 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITION variable=S2 complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=3 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=3 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=S1 complete dim=3 #pragma HLS ARRAY_PARTITION variable=S2 complete dim=3 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=S1 complete #pragma HLS ARRAY_PARTITIO...
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS DATAFLOW The right code snippet is: N/A
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS DATAFLOW The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS DATAFLOW The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: N/A
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_vld port=B #pragma HLS INTERFACE ap_vld port=S The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_vld port=B #pragma HLS INTERFACE ap_vld port=S The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A #pragma HLS INTERFACE ap_vld port=B #pragma HLS INTERFACE ap_vld port=S The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #p...
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A #pragma HLS INTERFACE m_axi port=B #pragma HLS INTERFACE m_axi port=S The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A #pragma HLS INTERFACE m_axi port=B #pragma HLS INTERFACE m_axi port=S The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A #pragma HLS INTERFACE m_axi port=B #pragma HLS INTERFACE m_axi port=S The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #prag...
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE bram port=B #pragma HLS INTERFACE bram port=S The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE bram port=B #pragma HLS INTERFACE bram port=S The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A #pragma HLS INTERFACE bram port=B #pragma HLS INTERFACE bram port=S The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma H...
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_fifo port=B #pragma HLS INTERFACE ap_fifo port=S The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=S
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_fifo port=B #pragma HLS INTERFACE ap_fifo port=S The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=A #pragma HLS INTERFACE ap_fifo port=B #pragma HLS INTERFACE ap_fifo port=S The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B ...
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: N/A
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
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: N/A
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTER...
The wrong part of the code is: #pragma HLS UNROLL factor=2 The right code snippet is: N/A
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The right code snippet is: N/A
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragm...
The wrong part of the code is: #pragma HLS UNROLL factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void adder8(ap_uint<8> A, ap_uint<8> B, ap_uint<8> &S) { #pragma HLS INTERFACE ap_none port=A #pragma HL...
The wrong part of the code is: #pragma HLS UNROLL factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: N/A
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The wrong part of the code is: decoder_out[vec+1] = 1; The right code snippet is: decoder_out[vec] = 1;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The right code snippet is: decoder_out[vec] = 1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_o...
The wrong part of the code is: decoder_out[vec+1] = 1; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint...
The wrong part of the code is: decoder_out[vec+1] = 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: decoder_out[vec] = 1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out = 1; ap_uint<8> decoder_out = 0;...
The wrong part of the code is: ap_uint<3> mux_out = 1; The right code snippet is: ap_uint<3> mux_out;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out = 1; ap_uint<8> decoder_out = 0; ...
The right code snippet is: ap_uint<3> mux_out;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out = 1; ap_uint<8> decod...
The wrong part of the code is: ap_uint<3> mux_out = 1; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint...
The wrong part of the code is: ap_uint<3> mux_out = 1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<3> mux_out;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The wrong part of the code is: mux_out[0] = select ? vec[0] << 4 : 0; The right code snippet is: mux_out[0] = select ? vec[0] : 0;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The right code snippet is: mux_out[0] = select ? vec[0] : 0;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_o...
The wrong part of the code is: mux_out[0] = select ? vec[0] << 4 : 0; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint...
The wrong part of the code is: mux_out[0] = select ? vec[0] << 4 : 0; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: mux_out[0] = select ? vec[0] : 0;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code } The right code snippet is: for(int i=0; i<10; i++){ // some code }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_out = 0; ...
The right code snippet is: for(int i=0; i<10; i++){ // some code }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_uint<8> decoder_o...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint...
The wrong part of the code is: for(int i=0; i>=0; i++){ // some code } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for(int i=0; i<10; i++){ // some code }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_int<8> decoder_out = 0; ...
The wrong part of the code is: ap_int<8> decoder_out = 0; The right code snippet is: ap_uint<8> decoder_out = 0;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_int<8> decoder_out = 0; ...
The right code snippet is: ap_uint<8> decoder_out = 0;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint<3> mux_out; ap_int<8> decoder_ou...
The wrong part of the code is: ap_int<8> decoder_out = 0; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include "ap_int.h" void top_module(ap_uint<3> vec, bool select, ap_uint<3>& outv, bool& o2, bool& o1, bool& o0) { ap_uint...
The wrong part of the code is: ap_int<8> decoder_out = 0; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<8> decoder_out = 0;
'USE'