instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=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=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 DATAFLOW loop_flatten
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#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 DATAFLOW | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#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 DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_vld 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 por... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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_vld 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 INTERFACE ap_none port=A1 | '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_vld 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 INTERFACE ap_vld port=A1
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_vld port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A1
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 INTERFACE m_axi port=mem random
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 INTERFACE m_axi port=mem | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 INTERFACE m_axi port=mem random
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 INTERFACE m_axi port=mem random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem | '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 bram 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=... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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 bram 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
#p... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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 bram 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... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
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 bram port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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 s_axilite 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 ... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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 s_axilite 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=... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | '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 s_axilite 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 INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=A1
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 s_axilite port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=A3
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=A1
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 PIPELINE II=2
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 PIPELINE II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 UNROLL factor=3
The right code snippet is:
#pragma HLS UNROLL factor=4 | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 UNROLL factor=4 | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 UNROLL factor=3
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=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 UNROLL factor=3
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS UNROLL factor=4 | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
memory[depth] = data_in;
The right code snippet is:
memory[address] = data_in; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
memory[address] = data_in; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
memory[depth] = data_in;
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
memory[depth] = data_in;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
memory[address] = data_in; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
int data_out = 0;
The right code snippet is:
int data_out; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
int data_out; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
int data_out = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
int data_out = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int data_out; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
address << depth;
The right code snippet is:
address << 1; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
address << 1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
address << depth;
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
address << depth;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
address << 1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {}
The right code snippet is:
for (int i = 0; i < depth; i++) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
for (int i = 0; i < depth; i++) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {}
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < depth; i++) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
signed int address;
The right code snippet is:
unsigned int address; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
unsigned int address; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
signed int address;
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
signed int address;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
unsigned int address; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
for (int i = 0; i < depth; i+=3) {}
The right code snippet is:
for (int i = 0; i < depth; i+=4) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
for (int i = 0; i < depth; i+=4) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
for (int i = 0; i < depth; i+=3) {}
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < depth; i+=3) {}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < depth; i+=4) {} | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
const int depth = 0;
The right code snippet is:
const int depth = 1024; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
const int depth = 1024; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
const int depth = 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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
const int depth = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
const int depth = 1024; | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
memcpy(memory, memory + depth, depth/2);
The right code snippet is:
memcpy(memory, memory + depth/2, depth/2); | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
memcpy(memory, memory + depth/2, depth/2); | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
memcpy(memory, memory + depth, depth/2);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
memcpy(memory, memory + depth, depth/2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(memory, memory + depth/2, depth/2); | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory block factor=4 dim=1
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory block factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory block factor=4 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=5 dim=1
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=5 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=5 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=2
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=memory cyclic factor=4 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=memory cyclic factor=4 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS dataflow off
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS dataflow off
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow off
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=write_en
The right code snippet is:
#pragma HLS interface ap_none port=write_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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface ap_none port=write_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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=write_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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=write_en
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=write_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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface m_axi port=memory random
The right code snippet is:
#pragma HLS interface m_axi port=memory | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface m_axi port=memory | '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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi port=memory random
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=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface m_axi port=memory random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=memory | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface bram port=write_en
The right code snippet is:
#pragma HLS interface ap_none port=write_en | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface ap_none port=write_en | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS interface bram port=write_en
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface bram port=write_en
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=write_en | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface ap_none port=memory
The right code snippet is:
#pragma HLS interface bram port=memory | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface bram port=memory | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_none port=memory
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_none port=memory
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface bram port=memory | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS pipeline | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=write_en
#pragm... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.