instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
and_result |= (a[i] & b[i] << 33);
The right code snippet is:
and_result |= (a[i] & b[i]); | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
and_result |= (a[i] & b[i]); | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
and_result |= (a[i] & b[i] << 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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
and_result |= (a[i] & b[i] << 33);
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
and_result |= (a[i] & b[i]); | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
for(int i=0; i>=0; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[i]);
}
}
The right code snippet is:
for(int i=0; i<32; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (... | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
for(int i=0; i<32; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
for(int i=0; i>=0; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
for(int i=0; i>=0; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[i]);
}
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
for(int i=0; i<32; 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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
unsigned int and_result = 0;
unsigned int or_result = 0;
The right code snippet is:
int and_result = 0;
int or_result = 0; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
int and_result = 0;
int or_result = 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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
unsigned int and_result = 0;
unsigned int or_result = 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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
unsigned int and_result = 0;
unsigned int or_result = 0;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
int and_result = 0;
int or_result = 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:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
and_result |= (a[i+1] & b[i+1]);
} else {
or_result |= (a[i] | b[i]);
or_result |= (a[i+1] | b[i+1]);
}
}
The right code snippet is:
for(in... | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
for(int i=0; i<32; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[i]);
}
} | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
and_result |= (a[i+1] & b[i+1]);
} else {
or_result |= (a[i] | b[i]);
or_result |= (a[i+1] | b[i+1]);
}
}
The high-level-synthesis bug type of ... | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
and_result |= (a[i+1] & b[i+1]);
} else {
or_result |= (a[i] | b[i]);
or_result |= (a[i+1] | b[i+1]);
}
}
The high-level-synthesis bug type of ... | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
int and_result = 1;
int or_result = 1;
The right code snippet is:
int and_result = 0;
int or_result = 0; | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
int and_result = 0;
int or_result = 0; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
int and_result = 1;
int or_result = 1;
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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
int and_result = 1;
int or_result = 1;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
int and_result = 0;
int or_result = 0; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i+16] & b[i+16]);
} else {
or_result |= (a[i+16] | b[i+16]);
}
}
The right code snippet is:
for(int i=0; i<32; i++) {
#pragma HLS UNROLL
if(ctrl) {
and... | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
The right code snippet is:
for(int i=0; i<32; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i] & b[i]);
} else {
or_result |= (a[i] | b[i]);
}
} | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i+16] & b[i+16]);
} else {
or_result |= (a[i+16] | b[i+16]);
}
}
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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
for(int i=0; i<16; i++) {
#pragma HLS UNROLL
if(ctrl) {
and_result |= (a[i+16] & b[i+16]);
} else {
or_result |= (a[i+16] | b[i+16]);
}
}
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
for(int i=0; i<32... | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
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=ctrl
#pragma HLS INTERFACE ap_fifo port=and_out
#pragma HLS INTERFACE ap_fifo port=or_out
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a
#pragma H... | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
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=ctrl
#pragma HLS INTERFACE ap_none port=and_out
#pragma HLS INTERFACE ap_none port=or_out | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
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=ctrl
#pragma HLS INTERFACE ap_fifo port=and_out
#pragma HLS INTERFACE ap_fifo port=or_out
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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
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=ctrl
#pragma HLS INTERFACE ap_fifo port=and_out
#pragma HLS INTERFACE ap_fifo port=or_out
The high-level-synthesis bug type of the code is: APT
The right code snip... | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=b cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=ctrl cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=and_out cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=or_out cyclic ... | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
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=ctrl
#pragma HLS INTERFACE ap_none port=and_out
#pragma HLS INTERFACE ap_none port=or_out | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=b cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=ctrl cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=and_out cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=or_out cyclic ... | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=b cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=ctrl cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=and_out cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=or_out cyclic ... | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pra... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a dim=2
#pragma HLS ARRAY_PARTITION variable=b dim=2
#pragma HLS ARRAY_PARTITION variable=ctrl dim=2
#pragma HLS ARRAY_PARTITION variable=and_out dim=2
#pragma HLS ARRAY_PARTITION variable=or_out dim=2
The right code snippet is:
#pragm... | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma H... |
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=ctrl
#pragma HLS INTERFACE ap_none port=and_out
#pragma HLS INTERFACE ap_none port=or_out | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a dim=2
#pragma HLS ARRAY_PARTITION variable=b dim=2
#pragma HLS ARRAY_PARTITION variable=ctrl dim=2
#pragma HLS ARRAY_PARTITION variable=and_out dim=2
#pragma HLS ARRAY_PARTITION variable=or_out dim=2
The high-level-synthesis bug type of ... | 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++
void bitwise_and_or(int a[32], int b[32], bool ctrl, int and_out[32], int or_out[32]) {
#pragma HLS INTERFACE ap_none port=a
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a dim=2
#pragma HLS ARRAY_PARTITION variable=b dim=2
#pragma HLS ARRAY_PARTITION variable=ctrl dim=2
#pragma HLS ARRAY_PARTITION variable=and_out dim=2
#pragma HLS ARRAY_PARTITION variable=or_out dim=2
The high-level-synthesis bug type of ... | DID |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
Y = (not_S & A) | (S + 1 & B)
The right code snippet is:
Y = (not_S & A) | (S & 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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
Y = (not_S & A) | (S & 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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
Y = (not_S & A) | (S + 1 & 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
Y = (not_S & A) | (S + 1 & B)
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
Y = (not_S & A) | (S & B) | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
bool not_S = not_S;
The right code snippet is:
bool not_S;
not_S = !S; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
bool not_S;
not_S = !S; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
bool not_S = not_S;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool not_S = not_S;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool not_S;
not_S = !S; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
Y = (not_S & A) | (S << 10 & B);
The right code snippet is:
Y = (not_S & A) | (S & B); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
Y = (not_S & A) | (S & 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
Y = (not_S & A) | (S << 10 & 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
Y = (not_S & A) | (S << 10 & B);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
Y = (not_S & A) | (S & 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
void mux_2to1(bool A, bool B, bool S, bool& Y) {
while(1){}
The right code snippet is:
void mux_2to1(bool A, bool B, bool S, bool& Y) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
void mux_2to1(bool A, bool B, bool S, bool& Y) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
void mux_2to1(bool A, bool B, bool S, bool& Y) {
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void mux_2to1(bool A, bool B, bool S, bool& Y) {
while(1){}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
void mux_2to1(bool A, bool B, bool S, bool& Y) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
bool not_S = (int)S;
The right code snippet is:
bool not_S;
not_S = !S; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
bool not_S;
not_S = !S; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
bool not_S = (int)S;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool not_S = (int)S;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool not_S;
not_S = !S; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
for(int i = 0; i < 10; i+=2) {
#pragma HLS unroll
// some code here
}
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS unroll
// some code here
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS unroll
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
for(int i = 0; i < 10; i+=2) {
#pragma HLS unroll
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
for(int i = 0; i < 10; i+=2) {
#pragma HLS unroll
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS unroll
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
bool not_S = 0;
The right code snippet is:
bool not_S;
not_S = !S; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
bool not_S;
not_S = !S; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
bool not_S = 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 ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool not_S = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool not_S;
not_S = !S; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i+10] = i;
}
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i] = i;
} | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i] = i;
} | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i+10] = i;
}
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i+10] = i;
}
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
for(int i = 0; i < 10; i++) {
#pragma HLS pipeline
buffer[i] = i;
} | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block factor=2
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | 'APT' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=3
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | 'FND' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | '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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=3
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=2 | 'FND' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=buffer 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS array_partition variable=buffer 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer 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=buffer 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
The right code snippet is:
#pragma HLS interface ap_none port=A | 'IDAP' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS interface ap_none 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer random
The right code snippet is:
#pragma HLS interface m_axi port=buffer | 'RAMB' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS interface m_axi port=buffer | '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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer random
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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=buffer | 'RAMB' |
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=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=A
The right code snippet is:
#pragma HLS interface ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS interface ap_none 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS interface ap_memory 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=A
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none 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:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool ... |
The wrong part of the code is:
#pragma HLS interface ap_none port=buffer
The right code snippet is:
#pragma HLS interface ap_memory port=buffer | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bool B, bool S, bo... |
The right code snippet is:
#pragma HLS interface ap_memory port=buffer | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_none port=Y
void mux_2to1(bool A, bo... |
The wrong part of the code is:
#pragma HLS interface ap_none port=buffer
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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=S
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS interface ap_none port=buffer
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_memory port=buffer | 'AMS' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.