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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<2> sel;
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
ap_uint<2> sel;
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<2> sel;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[3] == 0) ? mux_1_0 : mux_1_1;
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[3] == 0) ? mux_1_0 : mux_1_1;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[3] == 0) ? mux_1_0 : mux_1_1;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The high-level-synthesis bug type of the code is: 'INF' | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_int<8> mux_1_1 = (sel[0] == 0) ? din3 : din4;
The right code snippet is:
ap_uint<8> mux_1_1 = (sel[0] == 0) ? din3 : din4; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<8> mux_1_1 = (sel[0] == 0) ? din3 : din4; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
ap_int<8> mux_1_1 = (sel[0] == 0) ? din3 : din4;
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
ap_int<8> mux_1_1 = (sel[0] == 0) ? din3 : din4;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<8> mux_1_1 = (sel[0] == 0) ? din3 : din4; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
The right code snippet is:
for (int i = 0; i < 10; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
for (int i = 0; i < 10; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 5; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<2> sel = 0;
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
ap_uint<2> sel = 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<2> sel = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<2> sel = din5; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[1] == 1) ? mux_1_0 : mux_1_1;
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[1] == 1) ? mux_1_0 : mux_1_1;
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<8> mux_2_0 = (sel[1] == 1) ? mux_1_0 : mux_1_1;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<8> mux_2_0 = (sel[1] == 0) ? mux_1_0 : mux_1_1; | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 cyclic dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 cyclic dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 cyclic dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 complete factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 complete factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 complete factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mux_1_0 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
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:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
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:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
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' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_vld port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=din1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_vld port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_vld port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=din1
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_vld port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=din1
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=din1 random
The right code snippet is:
#pragma HLS INTERFACE m_axi port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=din1 random
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=din1 random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=din1 | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE bram port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=din1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE bram port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE bram port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=din1
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE bram port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=din1
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=din1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=din1
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS IN... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=din1
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=din1 | '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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#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_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
The right code snippet is:
for (int i = 0; i < 10; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
for (int i = 0; i < 10; 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=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTERFACE ap_none port=din4
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=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 ap_none port=din1
#pragma HLS INTERFACE ap_none port=din2
#pragma HLS INTERFACE ap_none port=din3
#pragma HLS INTE... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 10; 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_none port=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out);
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out);
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and0_out;
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and0_out;
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and0_out;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and7_out = hls_logic_and(and6_out, in9 << 10);
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and7_out = hls_logic_and(and6_out, in9 << 10);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and7_out = hls_logic_and(and6_out, in9 << 10);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
while(true) {
bool and7_out = hls_logic_and(and6_out, in9);
}
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
while(true) {
bool and7_out = hls_logic_and(and6_out, in9);
}
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
while(true) {
bool and7_out = hls_logic_and(and6_out, in9);
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
bool and7_out = hls_logic_and(and6_out, in9); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
int32_t and5_out = hls_logic_and(and2_out, and3_out);
The right code snippet is:
bool and5_out = hls_logic_and(and2_out, and3_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and5_out = hls_logic_and(and2_out, and3_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
int32_t and5_out = hls_logic_and(and2_out, and3_out);
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
int32_t and5_out = hls_logic_and(and2_out, and3_out);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool and5_out = hls_logic_and(and2_out, and3_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out, and3_out);
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out, and3_out);
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and4_out = hls_logic_and(and0_out, and1_out, and2_out, and3_out);
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
bool and4_out = hls_logic_and(and0_out, and1_out); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and0_out = 0;
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and0_out = 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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and0_out = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
bool and0_out = hls_logic_and(in1+1, in2);
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | '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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFACE ap_none port=in4
#pragma HLS INTER... |
The wrong part of the code is:
bool and0_out = hls_logic_and(in1+1, in2);
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=in1
#pragma HLS INTERFACE ap_none port=in2
#pragma HLS INTERFACE ap_none port=in3
#pragma HLS INTERFA... |
The wrong part of the code is:
bool and0_out = hls_logic_and(in1+1, in2);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
bool and0_out = hls_logic_and(in1, in2); | 'BUF' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.