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=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
int buffer[1024];
memcpy(buffer, &i_data0, sizeof(int)*1024);
The right code snippet is:
// No buffer splitting in this code | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No buffer splitting in this code | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
int buffer[1024];
memcpy(buffer, &i_data0, sizeof(int)*1024);
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=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
int buffer[1024];
memcpy(buffer, &i_data0, sizeof(int)*1024);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
// No buffer splitting in this code | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 dim=1
The right code snippet is:
// No array partitioning in this code | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No array partitioning in this code | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
// No array partitioning in this code | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=7 dim=2
The right code snippet is:
// No array partitioning in this code | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No array partitioning in this code | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=7 dim=2
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=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=7 dim=2
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
// No array partitioning in this code | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 dim=2
The right code snippet is:
// No array partitioning in this code | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No array partitioning in this code | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=w1 cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
// No array partitioning in this code | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The right code snippet is:
// No dataflow in this code | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No dataflow in this code | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
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=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
// No dataflow in this code | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=i_data0
The right code snippet is:
// No interface pragma in this code | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No interface pragma in this code | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=i_data0
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=i_data0
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
// No interface pragma in this code | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=i_data0
The right code snippet is:
// No m_axi interface in this code | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No m_axi interface in this code | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=i_data0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=i_data0
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
// No m_axi interface in this code | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=w1 bundle=CTRL_BUS
The right code snippet is:
// No scalar interface in this code | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No scalar interface in this code | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=w1 bundle=CTRL_BUS
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=w1 bundle=CTRL_BUS
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
// No scalar interface in this code | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=w1
The right code snippet is:
// No array interface in this code | AMS |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No array interface in this code | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=w1
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=w1
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
// No array interface in this code | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2 depth=5
The right code snippet is:
// No multi-level pipelining in this code | MLP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No multi-level pipelining in this code | MLP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2 depth=5
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2 depth=5
The high-level-synthesis bug type of the code is: MLP
The right code snippet is:
// No multi-level pipelining in this code | MLP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplie... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
The right code snippet is:
// No loop unrolling in this code | ILNU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
void multiplier_blo... |
The right code snippet is:
// No loop unrolling in this code | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=o_data0 bundle=CTRL_BUS
voi... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
The high-level-synthesis bug type of the code is: ILNU | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=i_data0 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
// No loop unrolling in this code | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
storage[wr_ptr+10].data = wr_data;
The right code snippet is:
storage[wr_ptr].data = wr_data; | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
storage[wr_ptr].data = wr_data; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
storage[wr_ptr+10].data = wr_data;
The high-level-synthesis bug type of the code is: OOB | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
storage[wr_ptr+10].data = wr_data;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
storage[wr_ptr].data = wr_data; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
bool can_burst = false;
bool do_valid = true;
The right code snippet is:
bool can_burst;
bool do_valid; | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
bool can_burst;
bool do_valid; | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
bool can_burst = false;
bool do_valid = true;
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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
bool can_burst = false;
bool do_valid = true;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
bool can_burst;
bool do_valid; | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
rd_data = storage[rd_ptr].data.range(32, 16);
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 0); | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 0); | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
rd_data = storage[rd_ptr].data.range(32, 16);
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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
rd_data = storage[rd_ptr].data.range(32, 16);
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 0); | 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
while (rd_en && do_valid) {
The right code snippet is:
if (rd_en && do_valid) { | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
if (rd_en && do_valid) { | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
while (rd_en && do_valid) {
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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
while (rd_en && do_valid) {
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
if (rd_en && do_valid) { | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
rd_data = (ap_int<16>)storage[rd_ptr].data.range(15, 0);
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 0); | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 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:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
rd_data = (ap_int<16>)storage[rd_ptr].data.range(15, 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:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
rd_data = (ap_int<16>)storage[rd_ptr].data.range(15, 0);
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
rd_data = storage[rd_ptr].data.range(15, 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:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
The right code snippet is:
for (int i = 0; i < 8; i++) { | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
for (int i = 0; i < 8; i++) { | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
for (int i = 0; i < 4; i++) {
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
for (int i = 0; i < 8; i++) { | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<3> wr_ptr = 0;
The right code snippet is:
ap_uint<3> wr_ptr; | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
ap_uint<3> wr_ptr; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
ap_uint<3> wr_ptr = 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
ap_uint<3> wr_ptr = 0;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
ap_uint<3> wr_ptr; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
storage_t storage[4];
The right code snippet is:
storage_t storage[8]; | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
storage_t storage[8]; | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
storage_t storage[4];
The high-level-synthesis bug type of the code is: BUF | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
storage_t storage[4];
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
storage_t storage[8]; | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=3 dim=0
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS array_partition variable=storage 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=3 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=3 dim=0
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=5 dim=0
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS array_partition variable=storage 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=5 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=5 dim=0
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=2 dim=1
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS array_partition variable=storage 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_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: DID | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=storage cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
#pragma HLS array_partition variable=storage complete dim=0 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS dataflow region
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: DFP | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
#pragma HLS dataflow | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=wr_en
The right code snippet is:
#pragma HLS interface ap_none port=wr_en | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS interface ap_none port=wr_en | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=wr_en
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=wr_en
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS interface ap_none port=wr_en | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=rd_data
The right code snippet is:
#pragma HLS interface ap_none port=rd_data | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#pragma HLS INTERFACE... |
The right code snippet is:
#pragma HLS interface ap_none port=rd_data | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=wr_en
#prag... |
The wrong part of the code is:
#pragma HLS interface m_axi port=rd_data
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma H... |
The wrong part of the code is:
#pragma HLS interface m_axi port=rd_data
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS interface ap_none port=rd_data | RAMB |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.