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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE II=2
// some code
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE
// some code
} | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
#pragma HL... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE
// some code
} | '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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTR... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE II=2
// some code
}
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE II=2
// some code
}
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS PIPELINE
// some code
} | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL FACTOR=2
// some code
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL
// some code
} | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTRL_BUS
#pragma HL... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL
// some code
} | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=we bundle=CTR... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL FACTOR=2
// some code
}
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL FACTOR=2
// some code
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
#pragma HLS UNROLL
// some code
} | 'ILNU' |
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
if (int_AB != c... |
The wrong part of the code is:
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
The right code snippet is:
int_AB = a - b; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
if (int_AB != c) {
... |
The right code snippet is:
int_AB = a - b; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
if (... |
The wrong part of the code is:
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
The high-level-synthesis bug type of the code is: INIT | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_int<23> int_AB_uninit;
int... |
The wrong part of the code is:
ap_int<23> int_AB_uninit;
int_AB = int_AB_uninit + a - b;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
int_AB = a - b; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
ap_int<23> int_array[2];
int_AB = int_array[3] + a - b;
The right code snippet is:
// No suitable code snippet found | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | 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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
ap_int<23> int_array[2];
int_AB = int_array[3] + a - b;
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
ap_int<23> int_array[2];
int_AB = int_array[3] + a - b;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
// No suitable code snippet found | OOB |
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
int_AB += a - b;
}
The right code snippet is:
// No suitable code snippet found | ILNU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | 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:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
int_AB += a - b;
}
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:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
int_AB += a - b;
}
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
// No suitable code snippet found | ILNU |
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_AB_unint = a... |
The wrong part of the code is:
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_AB_unint = a_unint - b_unint;
int_AB = int_AB_unint;
The right code snippet is:
int_AB = a - b; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_AB_unint = a_unin... |
The right code snippet is:
int_AB = a - b; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_A... |
The wrong part of the code is:
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_AB_unint = a_unint - b_unint;
int_AB = int_AB_unint;
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
ap_uint<23> a_unint = a;
ap_u... |
The wrong part of the code is:
ap_uint<23> a_unint = a;
ap_uint<23> b_unint = b;
ap_int<23> int_AB_unint = a_unint - b_unint;
int_AB = int_AB_unint;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
int_AB = a - b; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
while (1) {
int_AB += a - b;
}
The right code snippet is:
// No suitable code snippet found | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
while (1) {
int_AB += a - b;
}
The high-level-synthesis bug type of the code is: INF | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
while (1) {
int_AB += a - b;
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
// No suitable code snippet found | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a << 25 - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
int_AB = a << 25 - b;
The right code snippet is:
int_AB = a - b; | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a << 25 - b;
if (int_AB != c) {
printf("ERROR");
exit... |
The right code snippet is:
int_AB = a - b; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a << 25 - b;
if (int_AB != c) {
printf("ERROR... |
The wrong part of the code is:
int_AB = a << 25 - b;
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a << 25 - b;
if ... |
The wrong part of the code is:
int_AB = a << 25 - b;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
int_AB = a - b; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
ap_int<23> int_AB_zero = 0;
int_AB = int_AB_zero + a - b;
The right code snippet is:
// No suitable code snippet found | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
ap_int<23> int_AB_zero = 0;
int_AB = int_AB_zero + a - b;
The high-level-synthesis bug type of the code is: ZERO | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
ap_int<23> int_AB_zero = 0;
int_AB = int_AB_zero + a - b;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
// No suitable code snippet found | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB complete dim=2
The right code snippet is:
// No suitable code snippet found | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB 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:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB complete dim=2
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
// No suitable code snippet found | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic factor=3
The right code snippet is:
// No suitable code snippet found | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic factor=3
The high-level-synthesis bug type of the code is: APT | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic factor=3
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
// No suitable code snippet found | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic dim=3 factor=2
The right code snippet is:
// No suitable code snippet found | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic dim=3 factor=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:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS array_partition variable=int_AB cyclic dim=3 factor=2
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
// No suitable code snippet found | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
ap_int<23> int_buf[2];
#pragma HLS array_partition variable=int_buf cyclic factor=2
int_AB = int_buf[1] + a - b;
The right code snippet is:
// No suitable code snippet found | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
ap_int<23> int_buf[2];
#pragma HLS array_partition variable=int_buf cyclic factor=2
int_AB = int_buf[1] + a - b;
The high-level-synthesis bug type of the code is: BUF | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
ap_int<23> int_buf[2];
#pragma HLS array_partition variable=int_buf cyclic factor=2
int_AB = int_buf[1] + a - b;
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
// No suitable code snippet found | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS interface ap_none port=int_AB
The right code snippet is:
// No suitable code snippet found | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS interface ap_none port=int_AB
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS interface ap_none port=int_AB
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
// No suitable code snippet found | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS interface m_axi port=int_AB offset=off
The right code snippet is:
// No suitable code snippet found | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=int_AB offset=off
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS interface m_axi port=int_AB offset=off
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
// No suitable code snippet found | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=int_AB
The right code snippet is:
// No suitable code snippet found | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=int_AB
The high-level-synthesis bug type of the code is: SMA | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=int_AB
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
// No suitable code snippet found | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=int_AB
The right code snippet is:
// No suitable code snippet found | AMS |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | 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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=int_AB
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=int_AB
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
// No suitable code snippet found | 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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
// No suitable code snippet found | MLP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | 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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
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:
// No suitable code snippet found | 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 <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
// No suitable code snippet found | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
exit(0);
... |
The right code snippet is:
// No suitable code snippet found | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_AB != c) {
printf("ERROR");
... |
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:
```c++
#include <ap_int.h>
void check(ap_int<23> a, ap_int<23> b, ap_int<23>& int_AB, ap_int<23> c) {
int_AB = a - b;
if (int_A... |
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:
// No suitable code snippet found | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
static int write_address = 0;
static int write_data = 0;
static int read_address = 0;
static int read_data = 0;
static int write_response = 0;
static int read_response = 0;
static bool write_in_progress = false;
static bool read_in_progress = false;
The right code snippet is:... | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
static int write_address;
static int write_data;
static int read_address;
static int read_data;
static int write_response;
static int read_response;
static bool write_in_progress;
static bool read_in_progress; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
static int write_address = 0;
static int write_data = 0;
static int read_address = 0;
static int read_data = 0;
static int write_response = 0;
static int read_response = 0;
static bool write_in_progress = false;
static bool read_in_progress = false;
The high-level-synthesis b... | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
static int write_address = 0;
static int write_data = 0;
static int read_address = 0;
static int read_data = 0;
static int write_response = 0;
static int read_response = 0;
static bool write_in_progress = false;
static bool read_in_progress = false;
The high-level-synthesis b... | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
if (S00_AXI_WDATA[32] == true) {
write_response = 3; // SLVERR
} else {
write_response = 0; // OKAY
}
The right code snippet is:
if (S00_AXI_WDATA[31] == true) {
write_response = 3; // SLVERR
} else {
write_response = 0; // OKAY
} | '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 s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
if (S00_AXI_WDATA[31] == true) {
write_response = 3; // SLVERR
} else {
write_response = 0; // OKAY
} | '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 s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
if (S00_AXI_WDATA[32] == true) {
write_response = 3; // SLVERR
} else {
write_response = 0; // OKAY
}
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 s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
if (S00_AXI_WDATA[32] == true) {
write_response = 3; // SLVERR
} else {
write_response = 0; // OKAY
}
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (S00_AXI_WDATA[31] == true) {
write_response = 3; // SLVERR
} else {... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
read_data[31] >> 33
The right code snippet is:
read_data[31] | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
read_data[31] | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
read_data[31] >> 33
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
read_data[31] >> 33
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
read_data[31] | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
while (true) {
// do something
}
The right code snippet is:
while (read_in_progress) {
// do something
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
while (read_in_progress) {
// do something
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
while (true) {
// do something
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
while (true) {
// do something
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while (read_in_progress) {
// do something
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
static unsigned int write_response;
The right code snippet is:
static int write_response; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
static int write_response; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
static unsigned int write_response;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
static unsigned int write_response;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static int write_response; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
static int write_data = 0;
The right code snippet is:
static int write_data; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
static int write_data; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
static int write_data = 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
static int write_data = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static int write_data; | 'ZERO' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.