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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data5
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data5
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data5
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data5
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data5
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data5
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
None | 'AMS' |
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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
None | '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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
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:
None | '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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS UNROLL_FACTOR=2
The right code snippet is:
None | '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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS UNROLL_FACTOR=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS UNROLL_FACTOR=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
None | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int arr[1];
arr[2] = inst;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int arr[1];
arr[2] = inst;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int arr[1];
arr[2] = inst;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'OOB'
The right code sni... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int uninitialized_var;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int uninitialized_var;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
int uninitialized_var;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is... | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst << 32);
} else {
data = (inst & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst << 32);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst << 32);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
N/A | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
while (true) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
}
```
The right code snippet is:
N/A | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
while (true) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
}
```
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
while (true) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
}
```
The high-level-synthesis bug type of the code is: 'INF'
The righ... | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
short signed_inst = inst;
if (inst & 0x8000) {
data = (signed_inst | 0xffff0000);
} else {
data = (signed_inst & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
short signed_inst = inst;
if (inst & 0x8000) {
data = (signed_inst | 0xffff0000);
} else {
data = (signed_inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
short signed_inst = inst;
if (inst & 0x8000) {
data = (signed_inst | 0xffff0000);
} else {
data = (signed_inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'USE'
The right... | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
if (inst & 0x4000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
... | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
if (inst & 0x4000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
... | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
if (inst & 0x4000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
... | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
data = 0;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
data = 0;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
data = 0;
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
N/A | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of ... | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of ... | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst cyclic factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst cyclic factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of... | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst cyclic factor=2 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of... | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=3 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The right code snippet is:
N/A | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=3 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of ... | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
```
void signExt (int inst, int &data) {
#pragma HLS array_partition variable=inst block factor=3 dim=1
if (inst[1] & 0x8000) {
data = (inst[1] | 0xffff0000);
} else {
data = (inst[1] & 0x0000ffff);
}
}
```
The high-level-synthesis bug type of ... | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
The right code snippet is:
N/A | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
The wrong part of the ... |
The right code snippet is:
N/A | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst & 0x0000ffff);
}
}
```
|
The wrong part of the code is:
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void signExt (int inst, int &data) {
if (inst & 0x8000) {
data = (inst | 0xffff0000);
} else {
data = (inst ... |
The wrong part of the code is:
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
N/A | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
X = -1;
The right code snippet is:
X = 3; | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
X = 3; | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
X = -1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
X = -1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
X = 3; | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
switch((A << 4) | (B << 2) | (C << 1) | D)
The right code snippet is:
switch((A << 3) | (B << 2) | (C << 1) | D) | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
switch((A << 3) | (B << 2) | (C << 1) | D) | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
switch((A << 4) | (B << 2) | (C << 1) | D)
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
switch((A << 4) | (B << 2) | (C << 1) | D)
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
switch((A << 3) | (B << 2) | (C << 1) | D) | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
case 9:
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 9:
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 9:
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
int A, int B, int C, int D, int &X, int &Y
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
int A, int B, int C, int D, int &X, int &Y
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
int A, int B, int C, int D, int &X, int &Y
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
case 8:
X = 0;
Y = 1;
break;
case 9:
X = 1;
Y = 1;
break;
case 10:
X = 2;
Y = 1;
break;
case 11:
X = 3;
Y = 1;
break;
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 8:
X = 0;
Y = 1;
break;
case 9:
X = 1;
Y = 1;
break;
case 10:
X = 2;
Y = 1;
break;
case 11:
X = 3;
Y = 1;
break;
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 8:
X = 0;
Y = 1;
break;
case 9:
X = 1;
Y = 1;
break;
case 10:
X = 2;
Y = 1;
break;
case 11:
X = 3;
Y = 1;
break;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
case 8: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, ap_uint<2> &X = 0, bool &Y
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
case 3:
The right code snippet is:
case 2: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
case 2: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 3:
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
case 3:
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
case 2: | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X cyclic dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X cyclic dim=0
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=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | '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=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=0 | 'FND' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.