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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS array_partition variable=arr cyclic The right code snippet is: #pragma HLS array_partition variable=arr complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS array_partition variable=arr complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=arr cyclic The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=arr cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=arr complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS array_partition variable=arr factor=7 The right code snippet is: #pragma HLS array_partition variable=arr factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS array_partition variable=arr factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=arr factor=7 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=arr factor=7 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=arr factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS array_partition variable=arr dim=2 factor=8 The right code snippet is: #pragma HLS array_partition variable=arr dim=1 factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS array_partition variable=arr dim=1 factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS array_partition variable=arr dim=2 factor=8 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=arr dim=2 factor=8 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=arr dim=1 factor=8
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS dataflow region The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface ap_fifo_depth=8 port=arr The right code snippet is: #pragma HLS interface ap_fifo port=arr
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS interface ap_fifo port=arr
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_fifo_depth=8 port=arr The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface ap_fifo_depth=8 port=arr The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_fifo port=arr
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface m_axi port=arr random The right code snippet is: #pragma HLS interface m_axi port=arr
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS interface m_axi port=arr
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface m_axi port=arr 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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface m_axi port=arr random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=arr
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface s_axilite port=arr The right code snippet is: #pragma HLS interface bram port=arr
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS interface bram port=arr
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface s_axilite port=arr The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface s_axilite port=arr The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface bram port=arr
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface bram port=arr The right code snippet is: #pragma HLS interface s_axilite port=arr
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS interface s_axilite port=arr
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface bram port=arr The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface bram port=arr The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface s_axilite port=arr
'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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
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=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE ap_none port=D1...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ap_none port=C1 #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A1 #pragma HLS INTERFACE ap_none port=A2 #pragma HLS INTERFACE ap_none port=B1 #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: and0_out = A1 & A2 & A3 & A4 & A5; The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: and0_out = A1 & A2 & A3 & A4 & A5; 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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: and0_out = A1 & A2 & A3 & A4 & A5; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; bool or0...
The wrong part of the code is: ap_uint<4> and0_out = 0; The right code snippet is: ap_uint<4> and0_out;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; bool or0_out_...
The right code snippet is: ap_uint<4> and0_out;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; ...
The wrong part of the code is: ap_uint<4> and0_out = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: ap_uint<4> and0_out = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<4> and0_out;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: and0_out = A1 << 5 & A2 & A3 & A4; The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'SHFT'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: and0_out = A1 << 5 & A2 & A3 & A4; 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: and0_out = A1 << 5 & A2 & A3 & A4; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'SHFT'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: while (1) { and0_out = A1 & A2 & A3 & A4; } The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: while (1) { and0_out = A1 & A2 & A3 & A4; } 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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: while (1) { and0_out = A1 & A2 & A3 & A4; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: ap_int<5> A5 = -1; and0_out = A1 & A2 & A3 & A4 & A5; The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'USE'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: ap_int<5> A5 = -1; and0_out = A1 & A2 & A3 & A4 & A5; 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: ap_int<5> A5 = -1; and0_out = A1 & A2 & A3 & A4 & A5; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'USE'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: and0_out = A1 & A2; and0_out = and0_out & A3 & A4; The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'MLU'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: and0_out = A1 & A2; and0_out = and0_out & A3 & A4; 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: and0_out = A1 & A2; and0_out = and0_out & A3 & A4; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'MLU'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; bool or0...
The wrong part of the code is: ap_uint<4> and0_out = 0; The right code snippet is: ap_uint<4> and0_out;
'ZERO'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; bool or0_out_...
The right code snippet is: ap_uint<4> and0_out;
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out = 0; ...
The wrong part of the code is: ap_uint<4> 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: ap_uint<4> and0_out = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<4> and0_out;
'ZERO'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: and0_out = A1 & A2 & A3; The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: and0_out = A1 & A2 & A3; 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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: and0_out = A1 & A2 & A3; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: and0_out = A1 & A2 & A3 & A4;
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out complete dim=1 The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out complete dim=1 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out complete dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out complete dim=2 The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'DID'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS array_partition variable=and0_out complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=and0_out complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS dataflow pipeline The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A1 #pragma HLS interface ap_fifo port=A2 #pragma HLS interface ap_fifo port=A3 #pragma HLS interface ap_fifo port=A4 #pragma HLS interface ap_fifo port=B1 #pragma HLS interface ap_fifo port=X The right code snippet is: #pragma HLS interf...
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS interface ap_none port=A1 #pragma HLS interface ap_none port=A2 #pragma HLS interface ap_none port=A3 #pragma HLS interface ap_none port=A4 #pragma HLS interface ap_none port=B1 #pragma HLS interface ap_none port=X
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A1 #pragma HLS interface ap_fifo port=A2 #pragma HLS interface ap_fifo port=A3 #pragma HLS interface ap_fifo port=A4 #pragma HLS interface ap_fifo port=B1 #pragma HLS interface ap_fifo port=X The high-level-synthesis bug type of the code is:...
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS interface ap_fifo port=A1 #pragma HLS interface ap_fifo port=A2 #pragma HLS interface ap_fifo port=A3 #pragma HLS interface ap_fifo port=A4 #pragma HLS interface ap_fifo port=B1 #pragma HLS interface ap_fifo port=X The high-level-synthesis bug type of the code is:...
'IDAP'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 #pragma HLS interface m_axi port=A2 #pragma HLS interface m_axi port=A3 #pragma HLS interface m_axi port=A4 #pragma HLS interface m_axi port=B1 #pragma HLS interface m_axi port=X random The right code snippet is: #pragma HLS interface m...
'RAMB'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS interface m_axi port=A1 #pragma HLS interface m_axi port=A2 #pragma HLS interface m_axi port=A3 #pragma HLS interface m_axi port=A4 #pragma HLS interface m_axi port=B1 #pragma HLS interface m_axi port=X
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 #pragma HLS interface m_axi port=A2 #pragma HLS interface m_axi port=A3 #pragma HLS interface m_axi port=A4 #pragma HLS interface m_axi port=B1 #pragma HLS interface m_axi port=X random The high-level-synthesis bug type of the code is: 'RAM...
'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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS interface m_axi port=A1 #pragma HLS interface m_axi port=A2 #pragma HLS interface m_axi port=A3 #pragma HLS interface m_axi port=A4 #pragma HLS interface m_axi port=B1 #pragma HLS interface m_axi port=X random The high-level-synthesis bug type of the code is: 'RAM...
'RAMB'
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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out...
The wrong part of the code is: #pragma HLS interface bram port=A1 #pragma HLS interface bram port=A2 #pragma HLS interface bram port=A3 #pragma HLS interface bram port=A4 #pragma HLS interface bram port=B1 #pragma HLS interface bram port=X 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: ``` #include <ap_int.h> void my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; bool or0_out_X; ...
The right code snippet is: #pragma HLS interface ap_none port=A1 #pragma HLS interface ap_none port=A2 #pragma HLS interface ap_none port=A3 #pragma HLS interface ap_none port=A4 #pragma HLS interface ap_none port=B1 #pragma HLS interface ap_none port=X
'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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local signals ap_uint<4> and0_out; b...
The wrong part of the code is: #pragma HLS interface bram port=A1 #pragma HLS interface bram port=A2 #pragma HLS interface bram port=A3 #pragma HLS interface bram port=A4 #pragma HLS interface bram port=B1 #pragma HLS interface bram port=X 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 my_module( bool A1, bool A2, bool A3, bool A4, bool B1, bool& X ) { // Local s...
The wrong part of the code is: #pragma HLS interface bram port=A1 #pragma HLS interface bram port=A2 #pragma HLS interface bram port=A3 #pragma HLS interface bram port=A4 #pragma HLS interface bram port=B1 #pragma HLS interface bram port=X The high-level-synthesis bug type of the code is: 'SMA' The rig...
'SMA'