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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: ap_uint<1> nor_a; The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: ap_uint<1> nor_a; 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: ap_uint<1> nor_a; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: ap_uint<4> a_inv = ~a << 5; The right code snippet is: ap_uint<4> a_inv = ~a;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: ap_uint<4> a_inv = ~a;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: ap_uint<4> a_inv = ~a << 5; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: ap_uint<4> a_inv = ~a << 5; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: ap_uint<4> a_inv = ~a;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // loop body } The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // loop body } 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // loop body } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: short eq_out; short lt_out; magnitude_comp(a, b, eq_out, lt_out); The right code snippet is: ap_uint<1> eq_out; ap_uint<1> lt_out; magnitude_comp(a, b, eq_out, lt_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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: ap_uint<1> eq_out; ap_uint<1> lt_out; magnitude_comp(a, b, eq_out, lt_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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: short eq_out; short lt_out; magnitude_comp(a, b, eq_out, lt_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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: short eq_out; short lt_out; magnitude_comp(a, b, eq_out, lt_out); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<1> eq_out; ap_uint<1> lt_out; magnitude_comp(a, b, eq_out, lt_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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: for (int i = 0; i < 10; i += 2) { // loop body } The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: for (int i = 0; i < 10; i += 2) { // loop body } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: for (int i = 0; i < 10; i += 2) { // loop body } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { // loop body }
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: ap_uint<1> nor_a = 0; The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: ap_uint<1> nor_a = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: ap_uint<1> nor_a = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<1> nor_a = a_inv & b_inv;
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: memcpy(buffer1, buffer2 + BUFFER_SIZE/2, BUFFER_SIZE); The right code snippet is: memcpy(buffer1, buffer2, BUFFER_SIZE);
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: memcpy(buffer1, buffer2, BUFFER_SIZE);
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: memcpy(buffer1, buffer2 + BUFFER_SIZE/2, BUFFER_SIZE); 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: memcpy(buffer1, buffer2 + BUFFER_SIZE/2, BUFFER_SIZE); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, BUFFER_SIZE);
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic 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=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=out cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=out 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS DATAFLOW off The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS DATAFLOW off The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS DATAFLOW off The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_vld port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mod...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld 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_clk port=clk #pragma HLS INTERFACE ap_vld port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(a...
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_clk port=clk #pragma HLS INTERFACE ap_vld port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> v...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld 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_clk port=clk #pragma HLS INTERFACE ap_vld port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=mem random The right code snippet is: #pragma HLS INTERFACE m_axi port=mem
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS INTERFACE m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=mem random The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=mem random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_modul...
The wrong part of the code is: #pragma HLS INTERFACE bram 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 ap_clk port=clk #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(ap_...
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 ap_clk port=clk #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> voi...
The wrong part of the code is: #pragma HLS INTERFACE bram 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 ap_clk port=clk #pragma HLS INTERFACE bram port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_no...
The wrong part of the code is: #pragma HLS INTERFACE bram 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_clk port=clk #pragma HLS INTERFACE ap_fifo port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
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
'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_fifo port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
The right code snippet is: #pragma HLS INTERFACE ap_none port=a
'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_fifo port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.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: '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_fifo port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=a The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=a
'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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS PIPELINE II=3 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_mo...
The wrong part of the code is: #pragma HLS UNROLL factor=1 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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> void top_module(...
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_clk port=clk #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=out #include <ap_int.h> ...
The wrong part of the code is: #pragma HLS UNROLL factor=1 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_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS UNROLL factor=1 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: ap_uint<4> temp; result = temp; The right code snippet is: result = A ^ B;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=A ...
The right code snippet is: result = A ^ B;
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: ap_uint<4> temp; result = temp; 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: ap_uint<4> temp; result = temp; The high-level-synthesis bug type of the code is: INIT The right code snippet is: result = A ^ B;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: #pragma HLS unroll factor(2) if (A < B) { result = 0; } else { result = A ^ B; } The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=A ...
The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS unroll factor(2) if (A < B) { result = 0; } else { result = A ^ B; } 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: #pragma HLS unroll factor(2) if (A < B) { result = 0; } else { result = A ^ B; } The high-level-synthesis bug type of the code is: ILNU The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTE...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE...
The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { #pragma HLS INTERFACE ap_ctrl_none port=return #prag...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { #pragma HLS INTERFA...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result, ap_uint<4> &temp) { The high-level-synthesis bug type of the code is: SMA The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uint<4> A[3], ...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uint<4> A[3], ap_uint<4> B[3], ap_uint<4> &result) { The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B,...
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uint<4> A[3], ap_ui...
The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
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: ``` #include <ap_int.h> #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uin...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uint<4> A[3], ap_uint<4> B[3], ap_uint<4> &result) { 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: ``` #include <ap_int.h> #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic fact...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=1 #pragma HLS array_partition variable=B cyclic factor=3 dim=1 void compare_module(ap_uint<4> A[3], ap_uint<4> B[3], ap_uint<4> &result) { The high-level-synthesis bug type of the code is: FND The right code snipp...
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: while (1) { if (A < B) { result = 0; } else { result = A ^ B; } } The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=A ...
The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: while (1) { if (A < B) { result = 0; } else { result = A ^ B; } } 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: while (1) { if (A < B) { result = 0; } else { result = A ^ B; } } The high-level-synthesis bug type of the code is: INF The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete } #pra...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete } The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete } #pragma H...
The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete } 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS a...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { ap_uint<4> temp[2]; #pragma HLS array_partition variable=temp complete } The high-level-synthesis bug type of the code is: BUF The right code snippet is: void compare_module(ap_uint<4> A, ap...
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: if (A < B+1) { result = 0; } else { result = A ^ B; } The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=A ...
The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: if (A < B+1) { result = 0; } else { result = A ^ B; } 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS INTERFACE ap_ctrl_none po...
The wrong part of the code is: if (A < B+1) { result = 0; } else { result = A ^ B; } The high-level-synthesis bug type of the code is: OOB The right code snippet is: if (A < B) { result = 0; } else { result = A ^ B; }
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } #pragma HLS INTERFACE ap_ctrl_none port=r...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } #pragma HLS INTERFACE ap_ctrl_none port=return...
The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } #pragma HLS INTERFACE ap_ctrl_...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } 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: ``` #include <ap_int.h> void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2...
The wrong part of the code is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) { #pragma HLS interface ap_fifo depth=2 } The high-level-synthesis bug type of the code is: IDAP The right code snippet is: void compare_module(ap_uint<4> A, ap_uint<4> B, ap_uint<4> &result) {
IDAP