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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
c_reg = (signed)a_reg * (signed)b_reg;
The right code snippet is:
c_reg = a_reg * b_reg; | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
c_reg = a_reg * b_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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
c_reg = (signed)a_reg * (signed)b_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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
c_reg = (signed)a_reg * (signed)b_reg;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
c_reg = a_reg * b_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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
for (int i = 0; i < n/2; i++) {
#pragma HLS UNROLL
// loop body
}
for (int i = n/2; i < n; i++) {
#pragma HLS UNROLL
// loop body
}
The right code snippet is:
for (int i = 0; i < n; i++) {
#pragma HLS UNROLL
// loop body
} | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
for (int i = 0; i < n; i++) {
#pragma HLS UNROLL
// 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:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
for (int i = 0; i < n/2; i++) {
#pragma HLS UNROLL
// loop body
}
for (int i = n/2; i < n; i++) {
#pragma HLS UNROLL
// 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; i < n/2; i++) {
#pragma HLS UNROLL
// loop body
}
for (int i = n/2; i < n; i++) {
#pragma HLS UNROLL
// loop body
}
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
for (int i = 0; i < n; i++) {
#prag... | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
reg<16> c_reg = 0;
The right code snippet is:
reg<16> c_reg; | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
reg<16> c_reg; | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
reg<16> c_reg = 0;
The high-level-synthesis bug type of the code is: ZERO | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
reg<16> c_reg = 0;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
reg<16> c_reg; | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
memcpy(buffer1 + size/2, buffer2, size);
The right code snippet is:
memcpy(buffer1, buffer2, size); | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
memcpy(buffer1, buffer2, size); | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
memcpy(buffer1 + size/2, buffer2, 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
memcpy(buffer1 + size/2, buffer2, size);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
memcpy(buffer1, buffer2, size); | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a 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=a 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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | 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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | 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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem1
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem | 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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem | 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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem1
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=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem1
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=gmem | 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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE axis 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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none p... |
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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE axis 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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE axis 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_vld port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=a
The right code snippet is:
#pragma HLS INTERFACE ap_none 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_vld port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS INTERFACE ap_none 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_vld port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld 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_vld port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=ctrl
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=a
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS INTERFACE ap_none 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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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=ctrl
#pragma HLS INTERFACE ... |
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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
for (int i = 0; i < n; i++) {
// loop body
}
The right code snippet is:
for (int i = 0; i < n; i++) {
#pragma HLS UNROLL
// loop body
} | 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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
for (int i = 0; i < n; i++) {
#pragma HLS UNROLL
// loop body
} | 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=ctrl
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
for (int i = 0; i < n; i++) {
// loop body
}
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=ctrl
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; i < n; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
for (int i = 0; i < n; i++) {
#pragma HLS UNROLL
// loop body
} | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
if (uart_ctl_val == 6 && cnt == bps256000_2) {
The right code snippet is:
if (uart_ctl_val == 5 && cnt == bps256000_2) { | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
if (uart_ctl_val == 5 && cnt == bps256000_2) { | '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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
if (uart_ctl_val == 6 && cnt == bps256000_2) {
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
if (uart_ctl_val == 6 && cnt == bps256000_2) {
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (uart_ctl_val == 5 && cnt == bps256000_2) { | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
bool bps_sel;
The right code snippet is:
bool bps_sel = false; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
bool bps_sel = 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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
bool bps_sel;
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
bool bps_sel;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool bps_sel = 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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
tran_cnt <<= 20;
The right code snippet is:
tran_cnt <<= 18; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
tran_cnt <<= 18; | '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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
tran_cnt <<= 20;
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
tran_cnt <<= 20;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
tran_cnt <<= 18; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
while (cnt != 5) {
The right code snippet is:
while (true) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
while (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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
while (cnt != 5) {
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
while (cnt != 5) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while (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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
int cnt = 0;
The right code snippet is:
sc_uint<13> cnt = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
sc_uint<13> cnt = 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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
int cnt = 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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
int cnt = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
sc_uint<13> cnt = 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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
const sc_uint<13> bps9600_2 = 2604;
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'ZERO' | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'ZERO' | '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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
const sc_uint<13> bps9600_2 = 2604;
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
const sc_uint<13> bps9600_2 = 2604;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'ZERO' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
uart_ctl.read(rs_rx_val);
The right code snippet is:
rs_rx.read(rs_rx_val); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
rs_rx.read(rs_rx_val); | '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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
uart_ctl.read(rs_rx_val);
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
uart_ctl.read(rs_rx_val);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
rs_rx.read(rs_rx_val); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::strea... |
The wrong part of the code is:
// No code snippet found for this bug type.
Bug_type:
'DID'
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'FND' | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
hls::stream<boo... |
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'FND' | '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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hls::stream<sc_uint<3> >& uart_ctl,
... |
The wrong part of the code is:
// No code snippet found for this bug type.
Bug_type:
'DID'
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:
Here is the HLS translation of the given Verilog code:
```
void uart_rx(
hls::stream<bool>& clk,
hls::stream<bool>& rst_n,
hl... |
The wrong part of the code is:
// No code snippet found for this bug type.
Bug_type:
'DID'
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
// No code snippet found for this bug type.
Bug_type:
'FND' | '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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTE... |
The wrong part of the code is:
if (reset_n == false) {
readdata = readdata; // uninitialized variable read
} else if (clk_en) {
readdata = 0xFFFFFFFF & read_mux_out;
}
The right code snippet is:
if (reset_n == false) {
readdata = 0;
} else if (clk_en) {
readdata = 0xFFFFFFFF & read_mux_... | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERFACE... |
The right code snippet is:
if (reset_n == false) {
readdata = 0;
} else if (clk_en) {
readdata = 0xFFFFFFFF & read_mux_out;
} | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#prag... |
The wrong part of the code is:
if (reset_n == false) {
readdata = readdata; // uninitialized variable read
} else if (clk_en) {
readdata = 0xFFFFFFFF & read_mux_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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS... |
The wrong part of the code is:
if (reset_n == false) {
readdata = readdata; // uninitialized variable read
} else if (clk_en) {
readdata = 0xFFFFFFFF & read_mux_out;
}
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
if (reset_n == false) {
readdata = 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTE... |
The wrong part of the code is:
void switch (
ap_uint<2> address,
bool clk,
ap_uint<8> in_port,
bool reset_n,
ap_uint<8> &readdata // scalar value mapped to array interface
) {
The right code snippet is:
void switch (
ap_uint<2> address,
bool clk,
ap_uint<8> in_port,
... | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERFACE... |
The right code snippet is:
void switch (
ap_uint<2> address,
bool clk,
ap_uint<8> in_port,
bool reset_n,
ap_uint<32> &readdata
) { | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#prag... |
The wrong part of the code is:
void switch (
ap_uint<2> address,
bool clk,
ap_uint<8> in_port,
bool reset_n,
ap_uint<8> &readdata // scalar value mapped to array interface
) {
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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS... |
The wrong part of the code is:
void switch (
ap_uint<2> address,
bool clk,
ap_uint<8> in_port,
bool reset_n,
ap_uint<8> &readdata // scalar value mapped to array interface
) {
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
void switch (
ap_u... | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS UNROLL // inner loops not fully unrolled
The right code snippet is:
#pragma HLS PIPELINE II=1 | 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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS PIPELINE II=1 | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=address
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS INTERFACE ap_none port=reset_n
#prag... |
The wrong part of the code is:
#pragma HLS UNROLL // inner loops not fully unrolled
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=clk
#pragma HLS INTERFACE ap_none port=in_port
#pragma HLS... |
The wrong part of the code is:
#pragma HLS UNROLL // inner loops not fully unrolled
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
#pragma HLS PIPELINE II=1 | ILNU |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.