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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
while (count < 10) {
The right code snippet is:
while (true) {
// do something infinitely
} | tx = 1;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
while (true) {
// do something infinitely
} | tx = 1;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
while (count < 10) {
The high-level-synthesis bug type of the code is: tx = 1;
}
INF | tx = 1;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
while (count < 10) {
The high-level-synthesis bug type of the code is: tx = 1;
}
INF
The right code snippet is:
while (true) {
// do something infinitely
} | tx = 1;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
static char count;
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
static char count;
The high-level-synthesis bug type of the code is: // do something
}
USE | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
static char count;
The high-level-synthesis bug type of the code is: // do something
}
USE
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 8; i+=2) {
The right code snippet is:
for (int i = 0; i < 8; i++) {
// do something
} | if (reset) {
count = 0;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
for (int i = 0; i < 8; i++) {
// do something
} | if (reset) {
count = 0;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
for (int i = 0; i < 8; i+=2) {
The high-level-synthesis bug type of the code is: if (reset) {
count = 0;
}
MLU | if (reset) {
count = 0;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
for (int i = 0; i < 8; i+=2) {
The high-level-synthesis bug type of the code is: if (reset) {
count = 0;
}
MLU
The right code snippet is:
for (int i = 0; i < 8; i++) {
// do something
} | if (reset) {
count = 0;
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
static ap_uint<4> count = 0;
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
static ap_uint<4> count = 0;
The high-level-synthesis bug type of the code is: // do something
}
ZERO | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
static ap_uint<4> count = 0;
The high-level-synthesis bug type of the code is: // do something
}
ZERO
The right code snippet is:
static ap_uint<4> count;
if (reset) {
count = 0;
} | // do something
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
memcpy(buffer2, buffer1+sizeof(buffer1)/2, sizeof(buffer1));
The right code snippet is:
memcpy(buffer2, buffer1, sizeof(buffer1)); | 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
memcpy(buffer2, buffer1, 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
memcpy(buffer2, buffer1+sizeof(buffer1)/2, 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
memcpy(buffer2, buffer1+sizeof(buffer1)/2, sizeof(buffer1));
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
memcpy(buffer2, buffer1, 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in block factor=2 dim=1
The right code snippet is:
#pragma HLS array_partition variable=data_in cyclic factor=2 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS array_partition variable=data_in cyclic factor=2 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in block 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in block 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=data_in cyclic factor=2 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=data_in 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS array_partition variable=data_in 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in 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=data_in 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=data_in cyclic factor=2 dim=1 | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS array_partition variable=data_in cyclic factor=2 dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: DID | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in 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=data_in cyclic factor=2 dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: DFP | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The right code snippet is:
#pragma HLS interface ap_none port=data_in | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS interface ap_none port=data_in | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS interface ap_none port=data_in | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mem random
The right code snippet is:
#pragma HLS interface m_axi port=mem | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS interface m_axi port=mem | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mem random
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mem random
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS interface m_axi port=mem | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface bram port=data_in
The right code snippet is:
#pragma HLS interface axis port=data_in | 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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS interface axis port=data_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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS interface bram port=data_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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS interface bram port=data_in
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS interface axis port=data_in | 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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_none port
The right code snippet is:
#pragma HLS interface bram port=data_in | 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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS interface bram port=data_in | 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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_uint<16> baud_rate,
bool &tx
) {
#p... |
The wrong part of the code is:
#pragma HLS interface ap_none port
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
void uart_tx(
ap_uint<8> data_in,
bool start,
ap_ui... |
The wrong part of the code is:
#pragma HLS interface ap_none port
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS interface bram port=data_in | 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_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
int shifted_data1 = shifted_data2;
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
int shifted_data1 = shifted_data2;
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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
int shifted_data1 = shifted_data2;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
shifted_data = data_in >> (shift_amount + 1);
The right code snippet is:
shifted_data = data_in >> shift_amount; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
shifted_data = data_in >> shift_amount; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
shifted_data = data_in >> (shift_amount + 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
shifted_data = data_in >> (shift_amount + 1);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
shifted_data = data_in >> shift_amount; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1);
#pragma HLS UNROLL(factor=2)
The right code snippet is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1); | 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_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1); | 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_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1);
#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_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1);
#pragma HLS UNROLL(factor=2)
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
barrel_shifter(data_in1, shift_amount1, shift_control, shifted_data1); | 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 ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
int i=0;
while(i<10){
//infinite loop
i--;
}
The right code snippet is:
while(1){
//infinite loop
} | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
while(1){
//infinite loop
} | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
int i=0;
while(i<10){
//infinite loop
i--;
}
The high-level-synthesis bug type of the code is: INF | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
int i=0;
while(i<10){
//infinite loop
i--;
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
while(1){
//infinite loop
} | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
unsigned int data_in;
The right code snippet is:
int data_in; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
int data_in; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
unsigned int data_in;
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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
unsigned int data_in;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
int data_in; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
int shifted_data2;
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
int shifted_data2;
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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
int shifted_data2;
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
int shifted_data1; | 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=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 cyclic factor=2 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 ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 cyclic factor=2 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 ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 block 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 block 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=shifted_data1 cyclic factor=2 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 ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 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 ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=shifted_data1 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=shifted_data1 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in1 | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in1 | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_am... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=data_in1
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in1 | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 offset=1024
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 offset=1024
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 offset=1024
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=data_in1 | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=shifted_data1
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=shifted_data1 | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=shift_amount2
#pr... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=shifted_data1 | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1
#pragma HLS INTERFACE ap_none port=s... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=shifted_data1
The high-level-synthesis bug type of the code is: SMA | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=data_in1
#pragma HLS INTERFACE ap_none port=data_in2
#pragma HLS INTERFACE ap_none port=shift_amount1... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=shifted_data1
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=shifted_data1 | SMA |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.