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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
The wrong part of the code is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=1 The right code snippet is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=2
DID
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=2
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
The wrong part of the code is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: DID
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
The wrong part of the code is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS array_partition variable=sr cyclic factor=2 dim=2
DID
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
The wrong part of the code is: #pragma HLS interface ap_none port=return The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
The wrong part of the code is: #pragma HLS interface ap_none port=return 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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
The wrong part of the code is: #pragma HLS interface ap_none port=return The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
The wrong part of the code is: #pragma HLS interface m_axi port=in The right code snippet is: #pragma HLS interface m_axi port=return
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS interface m_axi port=return
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
The wrong part of the code is: #pragma HLS interface m_axi port=in 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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
The wrong part of the code is: #pragma HLS interface m_axi port=in The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=return
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
The wrong part of the code is: #pragma HLS interface bram port=in The right code snippet is: #pragma HLS interface axis port=in
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS interface axis port=in
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
The wrong part of the code is: #pragma HLS interface bram port=in 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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
The wrong part of the code is: #pragma HLS interface bram port=in The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface axis port=in
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
The wrong part of the code is: #pragma HLS interface ap_none port=sr The right code snippet is: #pragma HLS interface bram port=sr
AMS
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
The right code snippet is: #pragma HLS interface bram port=sr
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
The wrong part of the code is: #pragma HLS interface ap_none port=sr 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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
The wrong part of the code is: #pragma HLS interface ap_none port=sr The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface bram port=sr
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shift register with...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clock cycles of delay // Define a shi...
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: ``` void delay_line( hls::stream<bool>& clk, hls::stream<bool>& in, hls::stream<bool>& out ) { const int d = 4; // number of clo...
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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = (num1 > num2) ? num1 : num2; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = (num1 > num2) ? num1 : num2; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = (num1 > num2) ? num1 : num2; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min; temp_min = (temp_min < num3) ? temp_min : num3; min_val = (temp_min < num4) ? temp_min : num4; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min; temp_min = (temp_min < num3) ? temp_min : num3; min_val = (temp_min < num4) ? temp_min : num4; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min; temp_min = (temp_min < num3) ? temp_min : num3; min_val = (temp_min < num4) ? temp_min : num4; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = (num1 << num2) ? num1 : num2; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = (num1 << num2) ? num1 : num2; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = (num1 << num2) ? num1 : num2; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: while (1) { //infinite loop } The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: while (1) { //infinite loop } 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: while (1) { //infinite loop } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = (unsigned int)(num1 < num2) ? num1 : num2; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = (unsigned int)(num1 < num2) ? num1 : num2; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = (unsigned int)(num1 < num2) ? num1 : num2; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = num1; temp_min = (temp_min < num2) ? temp_min : num2; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = num1; temp_min = (temp_min < num2) ? temp_min : num2; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = num1; temp_min = (temp_min < num2) ? temp_min : num2; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = 0; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: int temp_min = (num3 < num4) ? num3 : num4; The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: int temp_min = (num3 < num4) ? num3 : num4; 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: int temp_min = (num3 < num4) ? num3 : num4; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 dim=1 The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=5 dim=1 The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=5 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=5 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 dim=2 The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_min cyclic factor=3 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS DATAFLOW The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS DATAFLOW The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS DATAFLOW The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE s_axilite port=min_val #pragma HLS INTERFACE ap_none port=temp_min The right code snip...
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE s_axilite port=min_val #pragma HLS INTERFACE ap_none port=temp_min The high-level-synt...
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE s_axilite port=min_val #pragma HLS INTERFACE ap_none port=temp_min The high-level-synt...
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=temp_min offset=slave The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=temp_min offset=slave 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=temp_min offset=slave The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS INTERFACE bram port=temp_min The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS INTERFACE bram port=temp_min 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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE bram port=temp_min The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=temp_min The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=temp_min 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=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=temp_min The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTE...
The wrong part of the code is: #pragma HLS UNROLL_FACTOR=2 The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #pragma HLS INTERFACE...
The right code snippet is: int temp_min = (num1 < num2) ? num1 : num2;
'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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HLS INTERFACE s_axilite port=num4 #prag...
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 s_axilite port=num1 #pragma HLS INTERFACE s_axilite port=num2 #pragma HLS INTERFACE s_axilite port=num3 #pragma HL...
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: int temp_min = (num1 < num2) ? num1 : num2;
'ILNU'