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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
and1 = (unsigned int) A1 & A2;
The right code snippet is:
and1 = A1 & A2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
and1 = A1 & A2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
and1 = (unsigned int) A1 & A2;
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
and1 = (unsigned int) A1 & A2;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
and1 = A1 & A2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
for(int i=5; i<10; i++){
// 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
for(int i=5; i<10; i++){
// 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
for(int i=5; i<10; i++){
// 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
bool and1=0, and2=0, or1=0, and3=0, not1=0, not2=0;
The right code snippet is:
bool and1, and2, or1, and3, not1, not2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
bool and1, and2, or1, and3, not1, not2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
bool and1=0, and2=0, or1=0, and3=0, not1=0, not2=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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
bool and1=0, and2=0, or1=0, and3=0, not1=0, not2=0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool and1, and2, or1, and3, not1, not2; | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
memcpy(buf1+10, buf2, sizeof(buf1));
The right code snippet is:
memcpy(buf1, buf2, sizeof(buf1)); | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
memcpy(buf1, buf2, sizeof(buf1)); | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
memcpy(buf1+10, buf2, sizeof(buf1));
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
memcpy(buf1+10, buf2, sizeof(buf1));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(buf1, buf2, sizeof(buf1)); | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic
The right code snippet is:
#pragma HLS array_partition variable=A1 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=A1 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=A1 complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block factor=3
The right code snippet is:
#pragma HLS array_partition variable=A1 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=A1 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 block factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=A1 complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 dim=2
The right code snippet is:
#pragma HLS array_partition variable=A1 complete | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS array_partition variable=A1 complete | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS array_partition variable=A1 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=A1 complete | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface ap_none port=return
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_none port=return
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS interface ap_none port=return
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A2_BUS
The right code snippet is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A1_BUS | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A1_BUS | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A2_BUS
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A2_BUS
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi depth=512 port=A1 offset=slave bundle=A1_BUS | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface bram port=A1
The right code snippet is:
#pragma HLS interface ap_fifo 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface ap_fifo 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
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_fifo 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=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS interface ap_none port=A1
The right code snippet is:
#pragma HLS interface axis 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=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS interface axis 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=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_none 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=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS interface ap_none port=A1
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface axis 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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
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' |
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=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The right code snippet is:
#pragma HLS unroll | '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 s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A2 bundle=CTRL_BUS
#pragm... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=Y bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=A1 bundle=CTRL_BUS
#pragma HLS INTERFACE s_a... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
mux_output = in[3];
The right code snippet is:
mux_output = in[2]; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
mux_output = in[2]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
mux_output = in[3];
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
mux_output = in[3];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
mux_output = in[2]; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
uintFinalOutput final_output = 0;
The right code snippet is:
uintFinalOutput final_output; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
uintFinalOutput final_output; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
uintFinalOutput final_output = 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
uintFinalOutput final_output = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
uintFinalOutput final_output; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
product = a << b;
The right code snippet is:
product = a * b; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
product = a * b; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
product = a << b;
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
product = a << b;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
product = a * b; | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
intFinalOutput final_output = (int)mux_output + (int)sum;
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
intFinalOutput final_output = (int)mux_output + (int)sum;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
intFinalOutput final_output = (int)mux_output + (int)sum;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
uintFinalOutput final_output = 0;
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
uintFinalOutput final_output = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
uintFinalOutput final_output = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
uintFinalOutput final_output = mux_output + sum; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
for (int i = 0; i < 50; i++) {
out[i] = in[i + 50];
}
The right code snippet is:
for (int i = 0; i < 100; i++) {
out[i] = in[i];
} | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
for (int i = 0; i < 100; i++) {
out[i] = in[i];
} | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
for (int i = 0; i < 50; i++) {
out[i] = in[i + 50];
}
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
for (int i = 0; i < 50; i++) {
out[i] = in[i + 50];
}
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
for (int i = 0; i < 100; i++) {
out[i] = in[i];
} | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic dim=1 factor=2
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic dim=1 factor=2
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic dim=1 factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS array_partition variable=in complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS array_partition variable=in complete dim=2
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS array_partition variable=in complete dim=2
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS array_partition variable=in complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=in complete dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS array_partition variable=in 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS array_partition variable=in 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS array_partition variable=in complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=in 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS dataflow region
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const 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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.