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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_reg;
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_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:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_reg;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
QBAR_reg = D << 2;
The right code snippet is:
QBAR_reg = ~D; | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
QBAR_reg = ~D; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
QBAR_reg = D << 2;
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
QBAR_reg = D << 2;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
QBAR_reg = ~D; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
else if (EN) {
while (1) {
Q_reg = D;
QBAR_reg = ~D;
}
}
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
else if (EN) {
while (1) {
Q_reg = D;
QBAR_reg = ~D;
}
}
The high-level-synthesis bug type of the code is: INF | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
else if (EN) {
while (1) {
Q_reg = D;
QBAR_reg = ~D;
}
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
QBAR_reg = (signed char) Q_reg;
The right code snippet is:
QBAR_reg = Q_reg; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
QBAR_reg = Q_reg; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
QBAR_reg = (signed char) Q_reg;
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
QBAR_reg = (signed char) Q_reg;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
QBAR_reg = Q_reg; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
else if (EN) {
for (int i = 0; i < 10; i++) {
Q_reg = D;
QBAR_reg = ~D;
}
}
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
else if (EN) {
for (int i = 0; i < 10; i++) {
Q_reg = D;
QBAR_reg = ~D;
}
}
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:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
else if (EN) {
for (int i = 0; i < 10; i++) {
Q_reg = D;
QBAR_reg = ~D;
}
}
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
else if (EN) {
Q_reg = D;
QBAR_reg = ~D;
} | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_reg = 1;
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_reg = 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:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
static bool Q_reg;
static bool QBAR_reg = 1;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
static bool Q_reg = 0;
static bool QBAR_reg = 1; | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
Q = QBAR_reg;
The right code snippet is:
Q = Q_reg; | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
Q = Q_reg; | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
Q = QBAR_reg;
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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
Q = QBAR_reg;
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
Q = Q_reg; | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR cyclic factor=2 dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR cyclic factor=2 dim=0
The high-level-synthesis bug type of the code is: APT | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR cyclic factor=2 dim=0
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma ... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=1
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=1
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=1
The high-level-synthesis bug type of the code is: FND | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=1
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=1
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PART... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=2
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=0 | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=2
#pragma HLS ARRAY_PARTITION variable=QBAR complete 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=2
#pragma HLS ARRAY_PARTITION variable=QBAR complete dim=2
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=Q complete dim=0
#pragma HLS ARRAY_PART... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=D
#pragma HLS INTERFACE axis port=CLK
#pragma HLS INTERFACE axis port=RESET
#pragma HLS INTERFACE axis port=SET
#pragma HLS INTERFACE axis port=EN
#pragma HLS INTERFACE ap_vld port=Q
#pragma HLS INTERF... | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=D
#pragma HLS INTERFACE axis port=CLK
#pragma HLS INTERFACE axis port=RESET
#pragma HLS INTERFACE axis port=SET
#pragma HLS INTERFACE axis port=EN
#pragma HLS INTERFACE axis port=Q
#pragma HLS INTERFACE ax... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=D
#pragma HLS INTERFACE axis port=CLK
#pragma HLS INTERFACE axis port=RESET
#pragma HLS INTERFACE axis port=SET
#pragma HLS INTERFACE axis port=EN
#pragma HLS INTERFACE ap_vld port=Q
#pragma HLS INTERF... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=D
#pragma HLS INTERFACE axis port=CLK
#pragma HLS INTERFACE axis port=RESET
#pragma HLS INTERFACE axis port=SET
#pragma HLS INTERFACE axis port=EN
#pragma HLS INTERFACE ap_vld port=Q
#pragma HLS INTERF... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axi port=D
#pragma HLS INTERFACE m_axi port=CLK
#pragma HLS INTERFACE m_axi port=RESET
#pragma HLS INTERFACE m_axi port=SET
#pragma HLS INTERFACE m_axi port=EN
#pragma HLS INTERFACE m_axi port=Q
#pragma HLS IN... | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=D
#pragma HLS INTERFACE axis port=CLK
#pragma HLS INTERFACE axis port=RESET
#pragma HLS INTERFACE axis port=SET
#pragma HLS INTERFACE axis port=EN
#pragma HLS INTERFACE axis port=Q
#pragma HLS INTERFACE ax... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
#pragma HLS INTERFACE ap_ctrl_none ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axi port=D
#pragma HLS INTERFACE m_axi port=CLK
#pragma HLS INTERFACE m_axi port=RESET
#pragma HLS INTERFACE m_axi port=SET
#pragma HLS INTERFACE m_axi port=EN
#pragma HLS INTERFACE m_axi port=Q
#pragma HLS IN... | 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 dff_async_reset_set_enable(
bool D,
bool CLK,
bool RESET,
bool SET,
bool EN,
bool &Q,
bool &QBAR
) {
... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE m_axi port=D
#pragma HLS INTERFACE m_axi port=CLK
#pragma HLS INTERFACE m_axi port=RESET
#pragma HLS INTERFACE m_axi port=SET
#pragma HLS INTERFACE m_axi port=EN
#pragma HLS INTERFACE m_axi port=Q
#pragma HLS IN... | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
counter = counter + 10;
The right code snippet is:
counter = counter + 1; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
counter = counter + 1; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
counter = counter + 10;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
counter = counter + 10;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
counter = counter + 1; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
static bool reset;
The right code snippet is:
static bool reset = false; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
static bool reset = false; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
static bool reset;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
static bool reset;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static bool reset = false; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
counter = counter << 5;
The right code snippet is:
counter = counter << 1; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
counter = counter << 1; | '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:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
counter = counter << 5;
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:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
counter = counter << 5;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
counter = counter << 1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
if (counter != 3) {
reset = true;
}
The right code snippet is:
if (counter == 3) {
reset = true;
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
if (counter == 3) {
reset = true;
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
if (counter != 3) {
reset = true;
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
if (counter != 3) {
reset = true;
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (counter == 3) {
reset = true;
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
static ap_int<2> counter = 0;
The right code snippet is:
static ap_uint<2> counter = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
static ap_uint<2> counter = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
static ap_int<2> counter = 0;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
static ap_int<2> counter = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static ap_uint<2> counter = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// loop body
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// 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:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
const ap_uint<2> TCQ = 0;
The right code snippet is:
const ap_uint<2> TCQ = 1; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
const ap_uint<2> TCQ = 1; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
const ap_uint<2> TCQ = 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:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
const ap_uint<2> TCQ = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
const ap_uint<2> TCQ = 1; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
// no suitable code snippet found
The right code snippet is:
// no suitable code snippet found | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
// no suitable code snippet found | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
// no suitable code snippet found | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
// no suitable code snippet found
The right code snippet is:
// no suitable code snippet found | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
// no suitable code snippet found | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
// no suitable code snippet found | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
// no suitable code snippet found
The right code snippet is:
// no suitable code snippet found | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
// no suitable code snippet found | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
// no suitable code snippet found | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
// no suitable code snippet found
The right code snippet is:
// no suitable code snippet found | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
// no suitable code snippet found | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
// no suitable code snippet found | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#prag... |
The wrong part of the code is:
// no suitable code snippet found
The right code snippet is:
// no suitable code snippet found | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN1
#pragma HL... |
The right code snippet is:
// no suitable code snippet found | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=CLK_IN... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void clk32to40(bool CLK_IN1, ap_uint<1>& CLK_OUT) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pra... |
The wrong part of the code is:
// no suitable code snippet found
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
// no suitable code snippet found | 'DFP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.