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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=256 port=A
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2];
... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bo... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=256 port=A
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bo... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=256 port=A
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A | '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 bram port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2]... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2];
b... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool ... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool ... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=A
The right code snippet is:
#pragma HLS INTERFACE ap_vld port=A | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2];
... |
The right code snippet is:
#pragma HLS INTERFACE ap_vld port=A | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bo... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=A
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bo... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=A
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_vld port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2];
... |
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bo... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bo... |
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 II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out... |
The wrong part of the code is:
#pragma HLS UNROLL factor=4
The right code snippet is:
#pragma HLS UNROLL factor=8 | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bool nand_out[2];
... |
The right code snippet is:
#pragma HLS UNROLL factor=8 | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bool A[2], bool B[2], bool &out) {
bo... |
The wrong part of the code is:
#pragma HLS UNROLL factor=4
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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=out
void comparator2bit(bo... |
The wrong part of the code is:
#pragma HLS UNROLL factor=4
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS UNROLL factor=8 | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
read_mux_out = (address == 1) ? data_out : 0;
The right code snippet is:
read_mux_out = (address == 0) ? data_out : 0; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
read_mux_out = (address == 0) ? data_out : 0; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
read_mux_out = (address == 1) ? data_out : 0;
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
read_mux_out = (address == 1) ? data_out : 0;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
read_mux_out = (address == 0) ? data_out : 0; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
int data_out;
The right code snippet is:
int data_out = 0; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
int data_out = 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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
int data_out;
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
int data_out;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int data_out = 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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
data_out = writedata << 64;
The right code snippet is:
data_out = writedata & 0x3F; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
data_out = writedata & 0x3F; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
data_out = writedata << 64;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
data_out = writedata << 64;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
data_out = writedata & 0x3F; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
while(1) {}
The right code snippet is:
// No infinite loop in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No infinite loop in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
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:
// No infinite loop in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
char clk_en = true;
The right code snippet is:
bool clk_en = true; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
bool clk_en = true; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
char clk_en = true;
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
char clk_en = true;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool clk_en = true; | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
for(int i=0; i<10; i++) {
// loop body
}
The right code snippet is:
// No manual loop unrolling in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No manual loop unrolling in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
for(int i=0; i<10; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
for(int i=0; i<10; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
// No manual loop unrolling in the original 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 ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
int data_out = 1;
The right code snippet is:
int data_out = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
int data_out = 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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
int data_out = 1;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
int data_out = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
int data_out = 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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + buffer_size/2, buffer_size);
The right code snippet is:
// No split buffer in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No split buffer in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + buffer_size/2, buffer_size);
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + buffer_size/2, buffer_size);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
// No split buffer in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out cyclic factor=2 dim=1
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out 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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out block factor=3 dim=1
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out block 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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out block factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
// No #pragma HLS array_partition in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out cyclic factor=2 dim=2
The right code snippet is:
// No #pragma HLS array_partition in the original code | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS array_partition in the original code | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_out cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
// No #pragma HLS array_partition in the original code | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
// No #pragma HLS dataflow in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS dataflow in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
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:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
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:
// No #pragma HLS dataflow in the original code | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 port=readdata
The right code snippet is:
// No #pragma HLS interface in the original code | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS interface in the original code | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 port=readdata
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 port=readdata
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
// No #pragma HLS interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
m_axi.write(address, data_out);
The right code snippet is:
// No m_axi interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No m_axi interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
m_axi.write(address, data_out);
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
m_axi.write(address, data_out);
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
// No m_axi interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=address bundle=ctrl
The right code snippet is:
// No array interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No array interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=address bundle=ctrl
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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=address bundle=ctrl
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
// No array interface in the original code | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface axis port=data_out
The right code snippet is:
// No scalar interface in the original code | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No scalar interface in the original code | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS interface axis port=data_out
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS interface axis port=data_out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
// No scalar interface in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
// No #pragma HLS pipeline in the original code | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS pipeline in the original code | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
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:
// No #pragma HLS pipeline in the original code | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
// No #pragma HLS unroll in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERF... |
The right code snippet is:
// No #pragma HLS unroll in the original code | '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=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=reset_n
#p... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=chipselect
#pragma HLS INTERFACE ap_none port=clk
#pragma ... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
// No #pragma HLS unroll in the original code | '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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
tsdcompout_wire = tsdcalo_reg - compouttest - 1;
The right code snippet is:
tsdcompout_wire = tsdcalo_reg - compouttest; | '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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
tsdcompout_wire = tsdcalo_reg - compouttest; | '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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
tsdcompout_wire = tsdcalo_reg - compouttest - 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
tsdcompout_wire = tsdcalo_reg - compouttest - 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
tsdcompout_wire = tsdcalo_reg - compouttest; | '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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
static int tsdcalo_reg;
The right code snippet is:
static int tsdcalo_reg = 0; | '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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
static int tsdcalo_reg = 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:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
static int tsdcalo_reg;
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=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
static int tsdcalo_reg;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static int tsdcalo_reg = 0; | 'INIT' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.