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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH; i+=2) {
btb_tag[i] = btb_tag[i] + btb_tag[i+1];
}
The right code snippet is:
None | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH; i+=2) {
btb_tag[i] = btb_tag[i] + btb_tag[i+1];
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH; i+=2) {
btb_tag[i] = btb_tag[i] + btb_tag[i+1];
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
None | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = ;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = ... |
The wrong part of the code is:
const ap_uint<11> BTB_TAG_INIT = ;
The right code snippet is:
const ap_uint<11> BTB_TAG_INIT = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = ;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
const ap_uint<11> BTB_TAG_INIT = 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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = ;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARG... |
The wrong part of the code is:
const ap_uint<11> BTB_TAG_INIT = ;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = ;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int ... |
The wrong part of the code is:
const ap_uint<11> BTB_TAG_INIT = ;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
const ap_uint<11> BTB_TAG_INIT = 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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH/2; i++) {
btb_target[i] = btb_target[i + BTB_DEPTH/2];
}
The right code snippet is:
None | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH/2; i++) {
btb_target[i] = btb_target[i + BTB_DEPTH/2];
}
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
for (int i = 0; i < BTB_DEPTH/2; i++) {
btb_target[i] = btb_target[i + BTB_DEPTH/2];
}
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
None | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=2
The right code snippet is:
None | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
None | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=3 dim=1
The right code snippet is:
None | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
None | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=1
The right code snippet is:
None | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS array_partition variable=btb_tag cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
None | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
None | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
None | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS interface ap_none port=btb_tag
The right code snippet is:
None | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS interface ap_none port=btb_tag
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS interface ap_none port=btb_tag
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
None | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS interface m_axi port=btb_tag
The right code snippet is:
None | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
The right code snippet is:
None | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS interface m_axi port=btb_tag
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS interface m_axi port=btb_tag
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
None | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS interface axis port=btb_tag
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS interface axis port=btb_tag
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS interface axis port=btb_tag
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=btb_tag
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=btb_tag
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=btb_tag
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH =... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TARGET_WIDTH = 32;
... |
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:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int PC_TAG_WIDTH = 11;
const int BTB_TAR... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const ap_uint<11> BTB_TAG_INIT = 0;
const ap_uint<32> BTB_TARGET_INIT = 0;
const int BTB_DEPTH = 64;
const int... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
if (in_inv[8:5]) {
priority = 3;
} else if (in_inv[4:3]) {
priority = 2;
} else if (in_inv[2]) {
priority = 1;
} else if (in_inv[1]) {
priority = 0;
} else {
priority = 7;
}
The right code snippet is:
if (in_inv[7:5]) {
priority = 3;
} else if (in_... | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
if (in_inv[7:5]) {
priority = 3;
} else if (in_inv[4:3]) {
priority = 2;
} else if (in_inv[2]) {
priority = 1;
} else if (in_inv[1]) {
priority = 0;
} else {
priority = 7;
} | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
if (in_inv[8:5]) {
priority = 3;
} else if (in_inv[4:3]) {
priority = 2;
} else if (in_inv[2]) {
priority = 1;
} else if (in_inv[1]) {
priority = 0;
} else {
priority = 7;
}
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
if (in_inv[8:5]) {
priority = 3;
} else if (in_inv[4:3]) {
priority = 2;
} else if (in_inv[2]) {
priority = 1;
} else if (in_inv[1]) {
priority = 0;
} else {
priority = 7;
}
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
ap_uint<4> count;
The right code snippet is:
static ap_uint<4> count = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
static ap_uint<4> count = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<4> count;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
ap_uint<4> count;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<4> count = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
while(1){}
The right code snippet is:
if (count == 15) {
count = 0;
} else {
count++;
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
if (count == 15) {
count = 0;
} else {
count++;
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
while(1){}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
while(1){}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (count == 15) {
count = 0;
} else {
count++;
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
ap_int<3> priority;
The right code snippet is:
ap_uint<3> priority; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
ap_uint<3> priority; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
ap_int<3> priority;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
ap_int<3> priority;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<3> priority; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
ap_uint<4> mult_out = priority * (count + 1);
The right code snippet is:
ap_uint<4> mult_out = priority * count; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
ap_uint<4> mult_out = priority * count; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<4> mult_out = priority * (count + 1);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
ap_uint<4> mult_out = priority * (count + 1);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<4> mult_out = priority * count; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=in factor=3
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in 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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS array_partition variable=in factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=in dim=2
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in 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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS array_partition variable=in dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS dataflow region
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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS dataflow region
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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
The right code snippet is:
#pragma HLS interface ap_none port=q | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS interface ap_none port=q | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=q | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in random
The right code snippet is:
#pragma HLS interface m_axi port=in | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS interface m_axi port=in | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in 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:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=in | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=in
The right code snippet is:
#pragma HLS interface ap_none port=in | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS interface ap_none port=in | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variable=ap_clk_divider
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=in
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_function(ap_clk_divider, ap_uint<8> in, ap_uint<4> &q) {
#pragma HLS INTERFACE ap_clk_divider variabl... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=in | 'SMA' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.