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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
ap_uint<16> en_out_data;
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
ap_uint<16> en_out_data;
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
ap_uint<16> en_out_data;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
codeout(wb_clk_i, wb_rst_i, dc(23, 0), en_out_data(15, 0), de_out_data(30, 0), en_out_valid, de_out_valid, en_out_done, de_out_done, m_enable, m_dst_putn, m_dst, m_dst_last, m_endn);
The right code snippet is:
codeout(wb_clk_i, wb_rst_i, dc(23, 0), en_out_data(15, 0), de_... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
codeout(wb_clk_i, wb_rst_i, dc(23, 0), en_out_data(15, 0), de_out_data(15, 0), en_out_valid, de_out_valid, en_out_done, de_out_done, m_enable, m_dst_putn, m_dst, m_dst_last, m_endn); | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
codeout(wb_clk_i, wb_rst_i, dc(23, 0), en_out_data(15, 0), de_out_data(30, 0), en_out_valid, de_out_valid, en_out_done, de_out_done, m_enable, m_dst_putn, m_dst, m_dst_last, m_endn);
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
codeout(wb_clk_i, wb_rst_i, dc(23, 0), en_out_data(15, 0), de_out_data(30, 0), en_out_valid, de_out_valid, en_out_done, de_out_done, m_enable, m_dst_putn, m_dst, m_dst_last, m_endn);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
c... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
while(1);
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
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:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
int8_t m_enable_signed = m_enable;
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
int8_t m_enable_signed = m_enable;
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
int8_t m_enable_signed = m_enable;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
ap_uint<16> en_out_data = 0;
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
ap_uint<16> en_out_data = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
ap_uint<16> en_out_data = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<16> en_out_data, de_out_data; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
memcpy(&m_dst, &m_src, sizeof(m_src));
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
memcpy(&m_dst, &m_src, sizeof(m_src));
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
memcpy(&m_dst, &m_src, sizeof(m_src));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_da... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data c... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=3 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_da... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=3 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=3 dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data c... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_da... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data complete dim=0
#pragma HLS ARRAY_PARTITION variable=de_out_data 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=en_out_data cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=de_out_data complete dim=0
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=en_out_data c... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
None | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
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:
None | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_enable bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=dc bundle=C... | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
None | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_enable bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=dc bundle=C... | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_enable bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=dc bundle=C... | 'IDAP' |
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK + 1)) ? 0 : (q_cnt + 1);
The right code snippet is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK - 1)) ? 0 : (q_cnt + 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK - 1)) ? 0 : (q_cnt + 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK + 1)) ? 0 : (q_cnt + 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK + 1)) ? 0 : (q_cnt + 1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
d_cnt = (q_cnt == (CLKS_PER_OVERSAMPLE_TICK - 1)) ? 0 : (q_cnt + 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
ap_uint<16> q_cnt;
The right code snippet is:
static ap_uint<16> q_cnt = 0; | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
static ap_uint<16> q_cnt = 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
ap_uint<16> q_cnt;
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
ap_uint<16> q_cnt;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<16> q_cnt = 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
CLKS_PER_OVERSAMPLE_TICK << 2;
The right code snippet is:
CLKS_PER_OVERSAMPLE_TICK / 2; | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
CLKS_PER_OVERSAMPLE_TICK / 2; | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
CLKS_PER_OVERSAMPLE_TICK << 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
CLKS_PER_OVERSAMPLE_TICK << 2;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
CLKS_PER_OVERSAMPLE_TICK / 2; | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
while (1) {}
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
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:
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
static int16_t q_cnt = 0;
The right code snippet is:
static ap_uint<16> q_cnt = 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
static ap_uint<16> q_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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
static int16_t q_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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
static int16_t q_cnt = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static ap_uint<16> q_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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
for (int i = 0; i < 8; i++) {
// loop body
}
The right code snippet is:
for (int i = 0; i < 16; 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
for (int i = 0; i < 16; 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
for (int i = 0; i < 8; 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
for (int i = 0; i < 8; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 16; 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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
static ap_uint<16> q_cnt;
The right code snippet is:
static ap_uint<16> q_cnt = 0; | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
static ap_uint<16> q_cnt = 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
static ap_uint<16> q_cnt;
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
static ap_uint<16> q_cnt;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static ap_uint<16> q_cnt = 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
memcpy(dest_buffer, &src_buffer[sizeof(src_buffer)/2], sizeof(src_buffer)/2);
The right code snippet is:
memcpy(dest_buffer, src_buffer, sizeof(src_buffer)); | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
memcpy(dest_buffer, src_buffer, sizeof(src_buffer)); | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
memcpy(dest_buffer, &src_buffer[sizeof(src_buffer)/2], sizeof(src_buffer)/2);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
memcpy(dest_buffer, &src_buffer[sizeof(src_buffer)/2], sizeof(src_buffer)/2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(dest_buffer, src_buffer, sizeof(src_buffer)); | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=3
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=3
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=7
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=7
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt cyclic factor=7
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete dim=1 | '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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=d_cnt complete 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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS DATAFLOWII
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS DATAFLOWII
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS DATAFLOWII
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=baud_clk_tick
The right code snippet is:
#pragma HLS INTERFACE ap_none port=baud_clk_tick | 'IDAP' |
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=baud_clk_tick | '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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=baud_clk_tick
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=baud_clk_tick
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=baud_clk_tick | 'IDAP' |
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=c... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=64 port=baud_clk_tick
The right code snippet is:
#pragma HLS INTERFACE m_axi port=baud_clk_tick | 'RAMB' |
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 uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=clk
... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=baud_clk_tick | '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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=64 port=baud_clk_tick
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:
```
#include <ap_int.h>
void uart_baud_clk(
bool clk,
bool reset,
bool &baud_clk_tick
) {
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=64 port=baud_clk_tick
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=baud_clk_tick | 'RAMB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.