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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#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 < 10; i++) {
for (int j = 0; j < 5; ) {
// some code here
}
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; ) {
// 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; ) {
// some code here
}
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// some code he... | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
SUM = A[0] ^ B[1] ^ CI[2];
The right code snippet is:
SUM = A ^ B ^ CI; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
SUM = A ^ B ^ CI; | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
SUM = A[0] ^ B[1] ^ CI[2];
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
SUM = A[0] ^ B[1] ^ CI[2];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
SUM = A ^ B ^ CI; | '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 full_adder(bool A, bool B, bool CI, bool& SUM, COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis ... |
The wrong part of the code is:
bool A, bool B, bool CI, bool& SUM, COUT
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=... |
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTE... |
The wrong part of the code is:
bool A, bool B, bool CI, bool& SUM, COUT
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTER... |
The wrong part of the code is:
bool A, bool B, bool CI, bool& SUM, COUT
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
SUM = A << B >> CI;
The right code snippet is:
SUM = A ^ B ^ CI; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
SUM = A ^ B ^ CI; | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
SUM = A << B >> CI;
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
SUM = A << B >> CI;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
SUM = A ^ B ^ CI; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
for(int i = 0; i >= n; i++) {
//some code
}
The right code snippet is:
for(int i = 0; i < n; 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
for(int i = 0; i < n; 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
for(int i = 0; i >= n; 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
for(int i = 0; i >= n; i++) {
//some code
}
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
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(int A, int B, int CI, int& SUM, int& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The wrong part of the code is:
int A, int B, int CI, int& SUM, int& COUT
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(int A, int B, int CI, int& SUM, int& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port... |
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | '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:
```
void full_adder(int A, int B, int CI, int& SUM, int& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INT... |
The wrong part of the code is:
int A, int B, int CI, int& SUM, int& COUT
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:
```
void full_adder(int A, int B, int CI, int& SUM, int& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
int A, int B, int CI, int& SUM, int& COUT
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool A, bool B, bool CI, bool& SUM, bool& COUT | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
for(int i = 0; i < n-1; i++) {
//some code
}
The right code snippet is:
for(int i = 0; i < n; i++) {
//some code
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
for(int i = 0; i < n; i++) {
//some code
} | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
for(int i = 0; i < n-1; i++) {
//some code
}
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
for(int i = 0; i < n-1; i++) {
//some code
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for(int i = 0; i < n; i++) {
//some code
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool A = 0;
The right code snippet is:
bool A = false; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
bool A = false; | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
bool A = 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
bool A = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool A = false; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
memcpy(dest+size, src, size);
The right code snippet is:
memcpy(dest, src, size); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
memcpy(dest, src, size); | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
memcpy(dest+size, src, size);
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
memcpy(dest+size, src, size);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(dest, src, size); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=2 dim=1
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A bundle=wrong_bundle
The right code snippet is:
#pragma HLS interface ap_fifo port=A | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS interface ap_fifo port=A | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A bundle=wrong_bundle
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A bundle=wrong_bundle
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_fifo port=A | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A offset=slave bundle=gmem1
The right code snippet is:
#pragma HLS interface m_axi port=A 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS interface m_axi port=A 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A 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=A 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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface bram port=A
The right code snippet is:
#pragma HLS interface axis port=A | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS interface axis port=A | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface bram port=A
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface bram port=A
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface axis port=A
The right code snippet is:
#pragma HLS interface bram port=A | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS interface bram port=A | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface axis port=A
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface axis port=A
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface bram port=A | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis 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' | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis 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' | '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:
```
void full_adder(bool A, bool B, bool CI, bool& SUM, bool& COUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk ... |
The wrong part of the code is:
out[i] = pipeline_reg[3][i] & ~pipeline_reg[2][i] & pipeline_reg[1][i];
The right code snippet is:
out[i] = pipeline_reg[2][i] & ~pipeline_reg[1][i] & pipeline_reg[0][i]; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk port=... |
The right code snippet is:
out[i] = pipeline_reg[2][i] & ~pipeline_reg[1][i] & pipeline_reg[0][i]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERF... |
The wrong part of the code is:
out[i] = pipeline_reg[3][i] & ~pipeline_reg[2][i] & pipeline_reg[1][i];
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<W... |
The wrong part of the code is:
out[i] = pipeline_reg[3][i] & ~pipeline_reg[2][i] & pipeline_reg[1][i];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
out[i] = pipeline_reg[2][i] & ~pipeline_reg[1][i] & pipeline_reg[0][i]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk ... |
The wrong part of the code is:
ap_uint<WIDTH> pipeline_reg[3];
The right code snippet is:
static ap_uint<WIDTH> pipeline_reg[3]; | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk port=... |
The right code snippet is:
static ap_uint<WIDTH> pipeline_reg[3]; | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERF... |
The wrong part of the code is:
ap_uint<WIDTH> pipeline_reg[3];
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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<W... |
The wrong part of the code is:
ap_uint<WIDTH> pipeline_reg[3];
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<WIDTH> pipeline_reg[3]; | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk ... |
The wrong part of the code is:
for (int i = 0; i <= WIDTH; i++) {
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk port=... |
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERF... |
The wrong part of the code is:
for (int i = 0; i <= WIDTH; i++) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<W... |
The wrong part of the code is:
for (int i = 0; i <= WIDTH; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo depth=2 port=in
The right code snippet is:
#pragma HLS INTERFACE ap_fifo depth=1 port=in | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk port=... |
The right code snippet is:
#pragma HLS INTERFACE ap_fifo depth=1 port=in | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo depth=2 port=in
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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<W... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo depth=2 port=in
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS INTERFACE ap_fifo depth=1 port=in | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk ... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < WIDTH; i++) {
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERFACE ap_clk port=... |
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | '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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<WIDTH> &out
) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < WIDTH; i++) {
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>
#define WIDTH 32
void rising_edge_detector(
ap_clk clk,
ap_rst reset,
ap_uint<WIDTH> in,
ap_uint<W... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < WIDTH; i++) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < WIDTH; i++) { | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sum
void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) {
sum... |
The wrong part of the code is:
sum = a[1] + b[2];
The right code snippet is:
sum = a + b; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sum
void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum) {
sum = a[... |
The right code snippet is:
sum = a + b; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sum
void adder_8bit(ap_uint<8> a, ap_uint<8> b, ap_uint<8> &sum... |
The wrong part of the code is:
sum = a[1] + b[2];
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=sum
void adder_8bit(ap_uin... |
The wrong part of the code is:
sum = a[1] + b[2];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
sum = a + b; | 'OOB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.