instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
ap_uint<4> count_reg;
The right code snippet is:
ap_uint<4> count_reg = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
ap_uint<4> count_reg = 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:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
ap_uint<4> count_reg;
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 counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<4> count_reg;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<4> count_reg = 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:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | '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 counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | '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 counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count complete dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=count 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=count cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=count
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=count
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=count
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=count random
The right code snippet is:
#pragma HLS INTERFACE m_axi port=count | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=count | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=count 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:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=count random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=count | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=count
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=count
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=count
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=count | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=count
The right code snippet is:
#pragma HLS INTERFACE bram port=count | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS INTERFACE bram port=count | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=count
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=count
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE bram port=count | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
#pragma HLS PIPELINE | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS PIPELINE | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS PIPELINE | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
count_reg = count_reg + 1;
}
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
count_reg = count_reg + 1;
} | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
count_reg = count_reg + 1;
} | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS IN... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
count_reg = count_reg + 1;
}
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void counter(bool clk, bool reset, bool enable, ap_uint<4>& count) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
count_reg = count_reg + 1;
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 4; i++) {
#pragma HLS UNROLL
count_reg = count_reg + 1;
} | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
shifted_data = (DATA << (SHIFT + 1)) & 0x0F
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
shifted_data = (DATA << (SHIFT + 1)) & 0x0F
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
shifted_data = (DATA << (SHIFT + 1)) & 0x0F
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
int shifted_data = 1;
The right code snippet is:
int shifted_data; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
int shifted_data; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
int shifted_data = 1;
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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
int shifted_data = 1;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int shifted_data; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
shifted_data = (DATA << 100) & 0x0F;
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
shifted_data = (DATA << 100) & 0x0F;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
shifted_data = (DATA << 100) & 0x0F;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
shifted_data = (long long int)(DATA << SHIFT) & 0x0F;
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
shifted_data = (long long int)(DATA << SHIFT) & 0x0F;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
shifted_data = (long long int)(DATA << SHIFT) & 0x0F;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
shifted_data = (DATA << SHIFT) & 0x0F | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
int shifted_data = 0;
The right code snippet is:
int shifted_data; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
int shifted_data; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
int shifted_data = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
int shifted_data = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
int shifted_data; | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
memcpy(buffer1, &buffer2[sizeof(buffer2)/2], sizeof(buffer2)/2);
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer2)); | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer2)); | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
memcpy(buffer1, &buffer2[sizeof(buffer2)/2], sizeof(buffer2)/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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
memcpy(buffer1, &buffer2[sizeof(buffer2)/2], sizeof(buffer2)/2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer2)); | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic dim=1
The right code snippet is:
#pragma HLS array_partition variable=my_array complete dim=1 | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=my_array complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=my_array complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic dim=1 | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array 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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic factor=3 dim=2
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic factor=3 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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic factor=3 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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic factor=3 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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=my_array cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=my_array cyclic factor=3 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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=my_port
The right code snippet is:
#pragma HLS interface ap_none port=my_port | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface ap_none port=my_port | '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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=my_port
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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=my_port
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=my_port | 'IDAP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.