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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } The right code snippet is: for (int i = 0; i < N; i++) { // code block }
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: for (int i = 0; i < N; i++) { // code block }
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code block } The high-level-synthesis bug type of the code is: INF The right code snippet is: for (int i = 0; i < N; i++) { // code block }
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: int a_ff; The right code snippet is: bool a_ff;
USE
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: bool a_ff;
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: int a_ff; 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: int a_ff; The high-level-synthesis bug type of the code is: USE The right code snippet is: bool a_ff;
USE
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: for (int i = 0; i < N; i++) { // code block i++; } The right code snippet is: for (int i = 0; i < N; i += 2) { // code block }
MLU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: for (int i = 0; i < N; i += 2) { // code block }
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: for (int i = 0; i < N; i++) { // code block i++; } The high-level-synthesis bug type of the code is: MLU
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: for (int i = 0; i < N; i++) { // code block i++; } The high-level-synthesis bug type of the code is: MLU The right code snippet is: for (int i = 0; i < N; i += 2) { // code block }
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: static bool a_ff = 0; The right code snippet is: static bool a_ff;
ZERO
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: static bool a_ff;
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: static bool a_ff = 0; The high-level-synthesis bug type of the code is: ZERO
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: static bool a_ff = 0; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: static bool a_ff;
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: memcpy(buffer1 + size/2, buffer2, size); The right code snippet is: memcpy(buffer1, buffer2, size);
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: memcpy(buffer1, buffer2, 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: memcpy(buffer1 + size/2, buffer2, 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: memcpy(buffer1 + size/2, buffer2, size); The high-level-synthesis bug type of the code is: BUF The right code snippet is: memcpy(buffer1, buffer2, 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff cyclic dim=0 The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff complete dim=1 The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff complete dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff complete dim=2 The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff complete dim=2 The high-level-synthesis bug type of the code is: DID
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS array_partition variable=out_comb_ff complete dim=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS array_partition variable=out_comb_ff 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS interface ap_ctrl_none port=out_comb_ff 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS interface ap_ctrl_none port=out_comb_ff 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS interface ap_ctrl_none port=out_comb_ff 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave depth=1024 The right code snippet is: #pragma HLS interface m_axi port=mem depth=1024
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS interface m_axi port=mem depth=1024
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave depth=1024 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave depth=1024 The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=mem depth=1024
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS interface bram port=mem scalar The right code snippet is: #pragma HLS interface bram port=mem
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS interface bram port=mem
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS interface bram port=mem scalar 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS interface bram port=mem scalar The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface bram port=mem
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both po...
The wrong part of the code is: #pragma HLS interface ap_memory port=mem depth=1024 The right code snippet is: #pragma HLS interface ap_memory port=mem
AMS
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
The right code snippet is: #pragma HLS interface ap_memory port=mem
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
The wrong part of the code is: #pragma HLS interface ap_memory port=mem depth=1024 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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
The wrong part of the code is: #pragma HLS interface ap_memory port=mem depth=1024 The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface ap_memory port=mem
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
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 xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both 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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis register both port=ou...
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis regis...
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: ``` void xor_comb_ff( bool clk, bool a, bool b, bool &out_comb_ff ) { #pragma HLS INTERFACE ap_ctrl_none port=return...
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: #pragma HLS INTERFACE ap_none port=pd #pragma HLS INTERFACE ap_none port=phin #pragma HLS INTERFACE ap_none port=phout void stratixv_pll_dpa_output(int output_clock_frequency, int pll...
The wrong part of the code is: int input_clk_freq; Bug_type: 'INF' The right code snippet is: int input_clk_freq = phin + 40;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=pd #pragma HLS INTERFACE ap_none port=phin #pragma HLS INTERFACE ap_none port=phout void stratixv_pll_dpa_output(int output_clock_frequency, int pll_vcop...
The right code snippet is: int input_clk_freq = phin + 40;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=pd #pragma HLS INTERFACE ap_none port=phin #pragma HLS INTERFACE ap_none port=phout void stratixv_pll_dpa_output(int output_clock_frequen...
The wrong part of the code is: int input_clk_freq; Bug_type: 'INF' The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=pd #pragma HLS INTERFACE ap_none port=phin #pragma HLS INTERFACE ap_none port=phout void stratixv_pl...
The wrong part of the code is: int input_clk_freq; Bug_type: 'INF' The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int input_clk_freq = phin + 40;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void data_converter( hls::stream<ap_uint<16> >& data_in, hls::stream<ap_uint<4> >& data_out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ...
The wrong part of the code is: ap_uint<16> in_data; Bug_type: OOB The right code snippet is: ap_uint<16> in_data = data_in.read();
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void data_converter( hls::stream<ap_uint<16> >& data_in, hls::stream<ap_uint<4> >& data_out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis ...
The right code snippet is: ap_uint<16> in_data = data_in.read();
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: ``` void data_converter( hls::stream<ap_uint<16> >& data_in, hls::stream<ap_uint<4> >& data_out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: ap_uint<16> in_data; Bug_type: OOB 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: ``` void data_converter( hls::stream<ap_uint<16> >& data_in, hls::stream<ap_uint<4> >& data_out) { #pragma HLS INTERFACE ap_...
The wrong part of the code is: ap_uint<16> in_data; Bug_type: OOB The high-level-synthesis bug type of the code is: INIT The right code snippet is: ap_uint<16> in_data = data_in.read();
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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: count[10]++; The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
The wrong part of the code is: count[10]++; 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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: count[10]++; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count != 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: if (count != 255) { The right code snippet is: if (count == 255) {
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count != 255) { count = 0; pwm_out = (count < ctrl); } else { ...
The right code snippet is: if (count == 255) {
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count != 255) { count = 0; pwm_out = (count < ctrl);...
The wrong part of the code is: if (count != 255) { 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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count != 255) { count =...
The wrong part of the code is: if (count != 255) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (count == 255) {
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (int)(count < ctrl); }...
The wrong part of the code is: pwm_out = (int)(count < ctrl); The right code snippet is: pwm_out = (count < ctrl);
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (int)(count < ctrl); } else...
The right code snippet is: pwm_out = (count < ctrl);
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (int)(count < c...
The wrong part of the code is: pwm_out = (int)(count < ctrl); 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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: pwm_out = (int)(count < ctrl); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: pwm_out = (count < ctrl);
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: count_half1++; The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
The wrong part of the code is: count_half1++; 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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: count_half1++; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: count++;
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic factor=2 dim=2 The right code snippet is: #pragma HLS array_partition variable=count cyclic factor=2 dim=1
'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 PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
The right code snippet is: #pragma HLS array_partition variable=count cyclic factor=2 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
The wrong part of the code is: #pragma HLS array_partition variable=count 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: #pragma HLS array_partition variable=count 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=count cyclic factor=2 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: #pragma HLS interface ap_stable 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
The wrong part of the code is: #pragma HLS interface ap_stable 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: #pragma HLS interface ap_stable 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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl); } else { ...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count = 0; pwm_out = (count < ctrl);...
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: #include <ap_int.h> void PWM(ap_uint<8> ctrl, bool &pwm_out) { static ap_uint<8> count = 0; if (count == 255) { count =...
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'