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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
ap_uint<2> douta_wire;
ap_uint<2> doutb_wire;
douta_wire = 0;
doutb_wire = 0;
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
ap_uint<2> douta_wire;
ap_uint<2> doutb_wire;
douta_wire = 0;
doutb_wire = 0;
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
ap_uint<2> douta_wire;
ap_uint<2> doutb_wire;
douta_wire = 0;
doutb_wire = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
addra_wire = addra << 16385;
addrb_wire = addrb >> 1;
The right code snippet is:
addra_wire = addra;
addrb_wire = addrb; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
addra_wire = addra;
addrb_wire = addrb; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
addra_wire = addra << 16385;
addrb_wire = addrb >> 1;
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
addra_wire = addra << 16385;
addrb_wire = addrb >> 1;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
addra_wire = addra;
addrb_wire = addrb; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code here
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code here
}
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// some code here
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
static int8_t douta_wire;
static int8_t doutb_wire;
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
static int8_t douta_wire;
static int8_t doutb_wire;
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
static int8_t douta_wire;
static int8_t doutb_wire;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
static ap_uint<2> douta_wire = 0;
static ap_uint<2> doutb_wire = 0;
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
static ap_uint<2> douta_wire = 0;
static ap_uint<2> doutb_wire = 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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
static ap_uint<2> douta_wire = 0;
static ap_uint<2> doutb_wire = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static ap_uint<2> douta_wire;
static ap_uint<2> doutb_wire; | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
blk_mem_gen_prim_wrapper <ap_uint<2>, 16384, "block"> my_block_ram (
addra_wire,
addrb_wire,
clka_wire,
clkb_wire,
dina_wire,
dinb_wire,
douta_wire,
dinb_wire,
ena_wire,
enb_wire,
rsta_wire,
rstb_wire,
wea_wire,
web_wire
);
... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
blk_mem_gen_prim_wrapper <ap_uint<2>, 16384, "block"> my_block_ram (
addra_wire,
addrb_wire,
clka_wire,
clkb_wire,
dina_wire,
dinb_wire,
douta_wire,
doutb_wire,
ena_wire,
enb_wire,
rsta_wire,
rstb_wire,
wea_wire,
web_wire
); | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
blk_mem_gen_prim_wrapper <ap_uint<2>, 16384, "block"> my_block_ram (
addra_wire,
addrb_wire,
clka_wire,
clkb_wire,
dina_wire,
dinb_wire,
douta_wire,
dinb_wire,
ena_wire,
enb_wire,
rsta_wire,
rstb_wire,
wea_wire,
web_wire
);
... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
blk_mem_gen_prim_wrapper <ap_uint<2>, 16384, "block"> my_block_ram (
addra_wire,
addrb_wire,
clka_wire,
clkb_wire,
dina_wire,
dinb_wire,
douta_wire,
dinb_wire,
ena_wire,
enb_wire,
rsta_wire,
rstb_wire,
wea_wire,
web_wire
);
... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire cyclic factor=2
#pragma HLS array_partition variable=dinb_wire cyclic factor=3
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire complete | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire cyclic factor=2
#pragma HLS array_partition variable=dinb_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire cyclic factor=2
#pragma HLS array_partition variable=dinb_wire cyclic factor=3
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pr... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire factor=3
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire complete | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire factor=3
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array_partition variable=dinb_wire factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete
#pragma HLS array... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete dim=2
#pragma HLS array_partition variable=dinb_wire complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete dim=1
#pragma HLS array_partition variable=dinb_wire complete dim... | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
#pragma HLS array_partition variable=dina_wire complete dim=1
#pragma HLS array_partition variable=dinb_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete dim=2
#pragma HLS array_partition variable=dinb_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
#pragma HLS array_partition variable=dina_wire complete dim=2
#pragma HLS array_partition variable=dinb_wire complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=dina_wire 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=dina_wire
#pragma HLS interface ap_vld port=dinb_wire
The right code snippet is:
#pragma HLS interface ap_none port=dina_wire
#pragma HLS interface ap_none port=dinb_wire | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
#pragma HLS interface ap_none port=dina_wire
#pragma HLS interface ap_none port=dinb_wire | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=dina_wire
#pragma HLS interface ap_vld port=dinb_wire
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=dina_wire
#pragma HLS interface ap_vld port=dinb_wire
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=dina_wire
#pragma HLS interface ap_none port=dinb_wire | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma H... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dina_wire offset=1024
#pragma HLS interface m_ax
The right code snippet is:
#pragma HLS interface m_axi port=dina_wire
#pragma HLS interface m_axi port=dinb_wire | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clka
#pragma HLS IN... |
The right code snippet is:
#pragma HLS interface m_axi port=dina_wire
#pragma HLS interface m_axi port=dinb_wire | '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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pragma HLS INTERFACE s_axilite port=clk... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dina_wire offset=1024
#pragma HLS interface m_ax
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=douta
#pragma HLS INTERFACE s_axilite port=doutb
#pr... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dina_wire offset=1024
#pragma HLS interface m_ax
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=dina_wire
#pragma HLS interface m_axi port=dinb_wire | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst.setEnRead(true);
ram_inst.s... | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
#pra... |
The right code snippet is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst.setEnRead(true);
ram_inst.setEn... | '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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& d... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst.setEnRead(true);
ram_inst.s... | '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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bo... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst.setEnRead(true);
ram_inst.s... | '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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
... |
The wrong part of the code is:
ap_int<32> reg1 = 0, reg2 = 0, sum = 0;
The right code snippet is:
ap_uint<32> reg1 = 0, reg2 = 0, sum = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
#pra... |
The right code snippet is:
ap_uint<32> reg1 = 0, reg2 = 0, sum = 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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& d... |
The wrong part of the code is:
ap_int<32> reg1 = 0, reg2 = 0, sum = 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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bo... |
The wrong part of the code is:
ap_int<32> reg1 = 0, reg2 = 0, sum = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<32> reg1 = 0, reg2 = 0, sum = 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's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst... | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& douta) {
#pra... |
The right code snippet is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst.set... | '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:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bool>& rst, hls::stream<ap_uint<36>>& d... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst... | '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:
Here's the HLS code translation for the given Verilog code:
```
#include <ap_int.h>
void ram_test(hls::stream<bool>& clk, hls::stream<bo... |
The wrong part of the code is:
while(true) {
if (rst.read()) {
reg1 = 0;
reg2 = 0;
sum = 0;
ram_inst.setEnWrite(false);
ram_inst.setEnRead(false);
}
else {
if (ram_inst.getMode() == "TDP") {
ram_inst... | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
bool and0_out = false;
bool nor0_out_Y = true;
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool and0_out = false;
bool nor0_out_Y = 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool and0_out = false;
bool nor0_out_Y = true;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
and0_out = A3 & A1 & A2 & A1;
The right code snippet is:
and0_out = A3 & A1 & A2; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
and0_out = A3 & A1 & A2; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
and0_out = A3 & A1 & A2 & A1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
and0_out = A3 & A1 & A2 & A1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
and0_out = A3 & A1 & A2; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
for (int i = 0; ; i++) {
// do something
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do something
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do something
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
for (int i = 0; ; i++) {
// do something
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; ; i++) {
// do something
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do something
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
nor0_out_Y = ~(and0_out | B1 | C1 << 10);
The right code snippet is:
nor0_out_Y = ~(and0_out | B1 | C1); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
nor0_out_Y = ~(and0_out | B1 | C1); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
nor0_out_Y = ~(and0_out | B1 | C1 << 10);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
nor0_out_Y = ~(and0_out | B1 | C1 << 10);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
nor0_out_Y = ~(and0_out | B1 | C1); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
int and0_out;
int nor0_out_Y;
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
int and0_out;
int nor0_out_Y;
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int and0_out;
int nor0_out_Y;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool and0_out;
bool nor0_out_Y; | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1);
and0_out = 0;
nor0_out_Y = 0;
The right code snippet is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1); | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1); | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1);
and0_out = 0;
nor0_out_Y = 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1);
and0_out = 0;
nor0_out_Y = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool and0_out = A3 & A1 & A2;
bool nor0_out_Y = ~(and0_out | B1 | C1); | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y, bool &Z) {
The right code snippet is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y, bool &Z) {
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y, bool &Z) {
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
void my_module(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { | '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_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE ap_fifo po... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE ap_fifo port=C1
#pragma HLS INTERFACE ap_ctrl_none port=return
The right code snippet is:
#pragma ... | '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_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE ap_fifo port=C1... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1
#pragma HLS INTERFACE ap_ctrl_none port=return | '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_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE ap_fifo port=C1
#pragma HLS INTERFACE ap_ctrl_none port=return
The high-level-synthesis bug type of th... | '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_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
#pragma HLS INTERFACE ap_fifo port=A2
#pragma HLS INTERFACE ap_fifo port=A3
#pragma HLS INTERFACE ap_fifo port=B1
#pragma HLS INTERFACE ap_fifo port=C1
#pragma HLS INTERFACE ap_ctrl_none port=return
The high-level-synthesis bug type of th... | '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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=C1... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1 cyclic factor=2 dim=1 | 'FND' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.