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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final complete 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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=3 dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=2 dim=0 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=2 dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=3 dim=0
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=3 dim=0
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=out_final cyclic factor=2 dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait
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
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
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
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait
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
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait
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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_fifo port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_fifo port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_fifo port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
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_fifo port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_fifo port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=a
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=wrong_bundle
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=wrong_bundle
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=a offset=slave bundle=wrong_bundle
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=a offset=slave | '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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE axis port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=a
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE axis port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE axis port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=a
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 axis port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE axis port=a_bitwise
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=a
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=a | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out_final
The right code snippet is:
#pragma HLS INTERFACE ap_fifo port=out_final | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS INTERFACE ap_fifo port=out_final | '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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out_final
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_none port=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out_final
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_fifo port=out_final | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
The right code snippet is:
#pragma HLS UNROLL factor=2 | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma HLS INTERFACE ap_... |
The right code snippet is:
#pragma HLS UNROLL factor=2 | '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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTERFACE ap_none port=b_bitwise
#pragma H... |
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=a
#pragma HLS INTERFACE ap_none port=b
#pragma HLS INTERFACE ap_none port=a_bitwise
#pragma HLS INTER... |
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=2 | '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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
q = q + 10;
The right code snippet is:
q = q + 1; | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
q = q + 1; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
q = q + 10;
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
q = q + 10;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
q = q + 1; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
ap_uint<4> q
The right code snippet is:
ap_uint<4>& q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
ap_uint<4>& q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
ap_uint<4> q
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
ap_uint<4> q
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
ap_uint<4>& q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
while (cnt_en) {
The right code snippet is:
if (cnt_en) { | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
if (cnt_en) { | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
while (cnt_en) {
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
while (cnt_en) {
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
if (cnt_en) { | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
The right code snippet is:
for (int i = 0; i < 4; i++) { | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
for (int i = 0; i < 4; i++) { | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
The high-level-synthesis bug type of the code is: MLU | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 3; i++) {
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
for (int i = 0; i < 4; i++) { | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
ap_uint<4> data;
The right code snippet is:
ap_uint<4> data = 0; | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
ap_uint<4> data = 0; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
ap_uint<4> data;
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
ap_uint<4> data;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
ap_uint<4> data = 0; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q cyclic dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q cyclic dim=0
The high-level-synthesis bug type of the code is: APT | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q cyclic dim=0
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q complete 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=1
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=q complete dim=0 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=q
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=q
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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=q
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=q depth=32
The right code snippet is:
#pragma HLS INTERFACE m_axi port=q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=q | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=q depth=32
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=q depth=32
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE m_axi port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=q
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=q
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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=q
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS INTERFACE ap_none port=q | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=data
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data | 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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=data
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_none port=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=data
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#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 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < 4; i++) {
The right code snippet is:
for (int i = 0; i < 4; i++) { | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
for (int i = 0; i < 4; i++) { | 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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS INTERFACE ap_none port=sclr
#pragma HL... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < 4; i++) {
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=aclr
#pragma HLS INTERFACE ap_none port=clock
#pragma HLS INTERFACE ap_none port=cnt_en
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < 4; i++) {
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
for (int i = 0; i < 4; i++) { | 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=reset
#pragma HLS INTERFACE ap_none port=count
#pragma HLS INTERFACE ap_none port=mod3
#include <ap_int.h>
voi... |
The wrong part of the code is:
count = uninitialized_variable;
Bug_type:
OOB
The right code snippet is:
count = 0; | 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=reset
#pragma HLS INTERFACE ap_none port=count
#pragma HLS INTERFACE ap_none port=mod3
#include <ap_int.h>
void cou... |
The right code snippet is:
count = 0; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=count
#pragma HLS INTERFACE ap_none port=mod3
#include <ap_... |
The wrong part of the code is:
count = uninitialized_variable;
Bug_type:
OOB
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=reset
#pragma HLS INTERFACE ap_none port=count
#pragma HLS INTER... |
The wrong part of the code is:
count = uninitialized_variable;
Bug_type:
OOB
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
count = 0; | INIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.