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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
while (true) {}
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
while (true) {}
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
while (true) {}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
q = (int16_t) (prev_bcd<<16 | 0);
The right code snippet is:
q = (prev_bcd, 0); | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
q = (prev_bcd, 0); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
q = (int16_t) (prev_bcd<<16 | 0);
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
q = (int16_t) (prev_bcd<<16 | 0);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
q = (prev_bcd, 0); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i=0; i<4; i++) {
switch (gray_count+(i*2)) {
case 0: bcd_out = 0; break;
case 1: bcd_out = 1; break;
case 3: bcd_out = 2; break;
case 2: bcd_out = 3; break;
case 6: bcd_out = 4; break;
case 7: bcd_out = 5; break;
... | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
for (int i=0; i<4; i++) {
switch (gray_count+(i*2)) {
case 0: bcd_out = 0; break;
case 1: bcd_out = 1; break;
case 3: bcd_out = 2; break;
case 2: bcd_out = 3; break;
case 6: bcd_out = 4; break;
case 7: bcd_out = 5; break;
... | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
for (int i=0; i<4; i++) {
switch (gray_count+(i*2)) {
case 0: bcd_out = 0; break;
case 1: bcd_out = 1; break;
case 3: bcd_out = 2; break;
case 2: bcd_out = 3; break;
case 6: bcd_out = 4; break;
case 7: bcd_out = 5; break;
... | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
gray_count = 1;
The right code snippet is:
gray_count = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
gray_count = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
gray_count = 1;
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
gray_count = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
gray_count = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
q.range(7,0) = prev_bcd.range(7,0);
q.range(15,8) = bcd_in.range(7,0);
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
q.range(7,0) = prev_bcd.range(7,0);
q.range(15,8) = bcd_in.range(7,0);
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
q.range(7,0) = prev_bcd.range(7,0);
q.range(15,8) = bcd_in.range(7,0);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=5
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=5
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=5
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=3
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out dim=2 factor=4
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out dim=2 factor=4
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=bcd_out dim=2 factor=4
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=direct
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=direct
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=direct
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS interface bram port=bcd_out
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface bram port=bcd_out
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface bram port=bcd_out
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS interface ap_none port=bcd_out
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_none port=bcd_out
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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface ap_none port=bcd_out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#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' | '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=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
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:
// No suitable code snippet found | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
The right code snippet is:
// No suitable code snippet found | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
// No suitable code snippet found | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INTERFACE ap_none port=ena
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=comp_in
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
// No suitable code snippet found | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
shifted = (in.range(2,1), 2'b00);
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | '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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
shifted = (in.range(2,1), 2'b00);
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
shifted = (in.range(2,1), 2'b00);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
if (rst) {
shifted = 0;
} else {
while (1) {
shifted = (in.range(1,0), 2'b00);
}
}
The right code snippet is:
if (rst) {
shifted = 0;
} else {
shifted = (in.range(1,0), 2'b00);
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
if (rst) {
shifted = 0;
} else {
shifted = (in.range(1,0), 2'b00);
} | '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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
if (rst) {
shifted = 0;
} else {
while (1) {
shifted = (in.range(1,0), 2'b00);
}
}
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
if (rst) {
shifted = 0;
} else {
while (1) {
shifted = (in.range(1,0), 2'b00);
}
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (rst) {
shifted = 0;
} else {
shifted = (in.range(1,0), 2'b00);
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
for (int i = 0; i < 2; i++) {
shifted = (in.range(1,0), 2'b00);
}
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | '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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
for (int i = 0; i < 2; i++) {
shifted = (in.range(1,0), 2'b00);
}
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
for (int i = 0; i < 2; i++) {
shifted = (in.range(1,0), 2'b00);
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
static ap_uint<4> shifted;
shifted = 0;
The right code snippet is:
static ap_uint<4> shifted = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
static ap_uint<4> shifted = 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
static ap_uint<4> shifted;
shifted = 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
static ap_uint<4> shifted;
shifted = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static ap_uint<4> shifted = 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
shifted = (in.range(5,4), 2'b00);
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | '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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
shifted = (in.range(5,4), 2'b00);
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
shifted = (in.range(5,4), 2'b00);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
shifted = (in.range(3,2), 2'b00);
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | '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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
shifted = (in.range(3,2), 2'b00);
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
shifted = (in.range(3,2), 2'b00);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
shifted = (in.range(1,0), 2'b00); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in cyclic factor=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in cyclic 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in cyclic 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 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in block factor=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in block factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
```
void shift_right(
ap_uint<4> in,
ap_uint<4> &out,
bool rst
) {
#pragma HLS INTERFACE ap_none port=rst
#pragma HL... |
The wrong part of the code is:
#pragma HLS DATAFLOW flatten
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.