instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERF...
The wrong part of the code is: q = (q.range(3,1), q[4]); The right code snippet is: q = (q.range(2,0), q[3]);
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE a...
The right code snippet is: q = (q.range(2,0), q[3]);
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma...
The wrong part of the code is: q = (q.range(3,1), q[4]); The high-level-synthesis bug type of the code is: OOB
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HL...
The wrong part of the code is: q = (q.range(3,1), q[4]); The high-level-synthesis bug type of the code is: OOB The right code snippet is: q = (q.range(2,0), q[3]);
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERF...
The wrong part of the code is: static ap_uint<4> counter; The right code snippet is: static ap_uint<4> counter = 0;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE a...
The right code snippet is: static ap_uint<4> counter = 0;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma...
The wrong part of the code is: static ap_uint<4> counter; The high-level-synthesis bug type of the code is: INIT
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HL...
The wrong part of the code is: static ap_uint<4> counter; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static ap_uint<4> counter = 0;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERF...
The wrong part of the code is: q = (q.range(2,0), q[4]); The right code snippet is: q = (q.range(2,0), q[3]);
SHFT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE a...
The right code snippet is: q = (q.range(2,0), q[3]);
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma...
The wrong part of the code is: q = (q.range(2,0), q[4]); The high-level-synthesis bug type of the code is: SHFT
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HL...
The wrong part of the code is: q = (q.range(2,0), q[4]); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: q = (q.range(2,0), q[3]);
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERF...
The wrong part of the code is: static ap_uint<4> counter = 1; The right code snippet is: static ap_uint<4> counter = 0;
ZERO
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE a...
The right code snippet is: static ap_uint<4> counter = 0;
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma...
The wrong part of the code is: static ap_uint<4> counter = 1; The high-level-synthesis bug type of the code is: ZERO
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=areset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HL...
The wrong part of the code is: static ap_uint<4> counter = 1; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: static ap_uint<4> counter = 0;
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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 2; The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1...
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; }
'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: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 2; 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: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 2; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 ...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: bool Q1 = false, bool Q0 = false; The right code snippet is: bool Q1, bool Q0
Q1 = 1; } else { Q0 = 0; Q1 = 0; } 'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: bool Q1, bool Q0
Q1 = 1; } else { Q0 = 0; Q1 = 0; } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: bool Q1 = false, bool Q0 = false; The high-level-synthesis bug type of the code is: Q1 = 1; } else { Q0 = 0; Q1 = 0; } 'INIT'
Q1 = 1; } else { Q0 = 0; Q1 = 0; } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool Q1 = false, bool Q0 = false; The high-level-synthesis bug type of the code is: Q1 = 1; } else { Q0 = 0; Q1 = 0; } 'INIT' The right code snippet is: bool Q1, bool Q0
Q1 = 1; } else { Q0 = 0; Q1 = 0; } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: while (true) { The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; }
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: while (true) { 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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: while (true) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = ...
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: int Q1, int Q0; The right code snippet is: bool Q1, bool Q0
if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; } } 'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: bool Q1, bool Q0
if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; } } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: int Q1, int Q0; The high-level-synthesis bug type of the code is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; ...
if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; } } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: int Q1, int Q0; The high-level-synthesis bug type of the code is: if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; ...
if (Q0 == 0 && Q1 == 0) { Q0 = 1; } else if (Q0 == 1 && Q1 == 0) { Q0 = 0; Q1 = 1; } else if (Q0 == 0 && Q1 == 1) { Q0 = 1; Q1 = 1; } else { Q0 = 0; Q1 = 0; } } '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: bool Q1 = 0, bool Q0 = 0; The right code snippet is: bool Q1 = false, bool Q0 = false;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: bool Q1 = false, bool Q0 = false;
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: bool Q1 = 0, bool Q0 = 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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: bool Q1 = 0, bool Q0 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool Q1 = false, bool Q0 = false;
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=1 The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=1 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 complete dim=2 The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
#pragma HLS array_partition variable=Q1 complete dim=1 'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
#pragma HLS array_partition variable=Q1 complete dim=1 'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 complete dim=2 The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'FND'
#pragma HLS array_partition variable=Q1 complete dim=1 'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 complete dim=2 The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'FND' The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array...
#pragma HLS array_partition variable=Q1 complete dim=1 'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=2 The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
#pragma HLS array_partition variable=Q1 complete dim=1 'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_partition variable=Q1 complete dim=1
#pragma HLS array_partition variable=Q1 complete dim=1 'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=2 The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'DID'
#pragma HLS array_partition variable=Q1 complete dim=1 'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=Q0 cyclic dim=2 The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'DID' The right code snippet is: #pragma HLS array_partition variable=Q0 complete dim=1 #pragma HLS array_p...
#pragma HLS array_partition variable=Q1 complete dim=1 'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET ...
The wrong part of the code is: #pragma HLS dataflow off The right code snippet is: #pragma HLS dataflow
#pragma HLS array_partition variable=Q1 complete dim=1 'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #prag...
The right code snippet is: #pragma HLS dataflow
#pragma HLS array_partition variable=Q1 complete dim=1 '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis ...
The wrong part of the code is: #pragma HLS dataflow off The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'DFP'
#pragma HLS array_partition variable=Q1 complete dim=1 '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS dataflow off The high-level-synthesis bug type of the code is: #pragma HLS array_partition variable=Q1 complete dim=1 'DFP' The right code snippet is: #pragma HLS dataflow
#pragma HLS array_partition variable=Q1 complete dim=1 '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=CLK if (RESET) { Q1 = 0; ...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=CLK The right code snippet is: #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #pragma HLS INTERFACE axis port=Q1 #pragma HLS INTERFACE axis port=Q0
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=CLK if (RESET) { Q1 = 0; ...
The right code snippet is: #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #pragma HLS INTERFACE axis port=Q1 #pragma HLS INTERFACE axis port=Q0
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=CLK if (RESET) { ...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=CLK 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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_f...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=CLK The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #pragma HLS INTERFACE axis port=Q1 #pragma HLS INTERFACE axis port=Q0
'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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=CLK if (RESET) { Q1 = 0; ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=CLK The right code snippet is: #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #pragma HLS INTERFACE axis port=Q1 #pragma HLS INTERFACE axis port=Q0
#pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=CLK if (RESET) { Q1 = 0; Q...
The right code snippet is: #pragma HLS INTERFACE axis port=CLK #pragma HLS INTERFACE axis port=RESET #pragma HLS INTERFACE axis port=Q1 #pragma HLS INTERFACE axis port=Q0
#pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_axi port=CLK if (RESET) { Q...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=CLK The high-level-synthesis bug type of the code is: #pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 'RAMB'
#pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 '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 counter_2bit (bool CLK, bool RESET, bool &Q1, bool &Q0) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE m_ax...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=CLK The high-level-synthesis bug type of the code is: #pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 'RAMB' The right code snippet is: #pragma HLS INTERFACE axis ...
#pragma HLS INTERFACE ap_fifo port=RESET #pragma HLS INTERFACE ap_fifo port=Q1 #pragma HLS INTERFACE ap_fifo port=Q0 '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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask...
The wrong part of the code is: func_output = (func_data.range(31, 32), ap_uint<24>(0)); The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask == 0...
The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; i...
The wrong part of the code is: func_output = (func_data.range(31, 32), ap_uint<24>(0)); 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: func_output = (func_data.range(31, 32), ap_uint<24>(0)); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0; if(func_...
The wrong part of the code is: ap_uint<32> func_output = 0; The right code snippet is: ap_uint<32> func_output;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0; if(func_mask ...
The right code snippet is: ap_uint<32> func_output;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0; ...
The wrong part of the code is: ap_uint<32> func_output = 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: ap_uint<32> func_output = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<32> func_output;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask...
The wrong part of the code is: return func_output >> 5; The right code snippet is: return func_output >> 2;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask == 0...
The right code snippet is: return func_output >> 2;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; i...
The wrong part of the code is: return func_output >> 5; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: return func_output >> 5; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: return func_output >> 2;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask...
The wrong part of the code is: if(func_mask != 0xf) { func_output = func_data; } The right code snippet is: if(func_mask == 0xf) { func_output = func_data; }
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask == 0...
The right code snippet is: if(func_mask == 0xf) { func_output = func_data; }
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; i...
The wrong part of the code is: if(func_mask != 0xf) { func_output = func_data; } 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: if(func_mask != 0xf) { func_output = func_data; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if(func_mask == 0xf) { func_output = func_data; }
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask...
The wrong part of the code is: func_output = (ap_int<32>) (func_data.range(31, 24), ap_uint<24>(0)); The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask == 0...
The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; i...
The wrong part of the code is: func_output = (ap_int<32>) (func_data.range(31, 24), ap_uint<24>(0)); 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: func_output = (ap_int<32>) (func_data.range(31, 24), ap_uint<24>(0)); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: func_output = (func_data.range(31, 24), ap_uint<24>(0));
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask...
The wrong part of the code is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ap_uint<24>(0)); func_output += 1; } The right code snippet is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ap_uint<24>(0)); }
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; if(func_mask == 0...
The right code snippet is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ap_uint<24>(0)); }
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output; i...
The wrong part of the code is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ap_uint<24>(0)); func_output += 1; } 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ap_uint<24>(0)); func_output += 1; } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: else if(func_mask == 0x2) { func_output = (func_data.range(23, 16), ...
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0xffffffff; ...
The wrong part of the code is: ap_uint<32> func_output = 0xffffffff; The right code snippet is: ap_uint<32> func_output;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0xffffffff; if(f...
The right code snippet is: ap_uint<32> func_output;
'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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data ) { ap_uint<32> func_output = 0xff...
The wrong part of the code is: ap_uint<32> func_output = 0xffffffff; 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> ap_uint<32> func_load_fairing( ap_uint<4> func_mask, ap_uint<2> func_shift, ap_uint<32> func_data )...
The wrong part of the code is: ap_uint<32> func_output = 0xffffffff; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<32> func_output;
'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 pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_d...
The wrong part of the code is: case 4'd12: The right code snippet is: case 4'd10:
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_dec_o ...
The right code snippet is: case 4'd10:
'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: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none...
The wrong part of the code is: case 4'd12: 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: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=add...
The wrong part of the code is: case 4'd12: The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: case 4'd10:
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_d...
The wrong part of the code is: bool pre_dec; The right code snippet is: bool pre_dec = false;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_dec_o ...
The right code snippet is: bool pre_dec = false;
'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 pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none...
The wrong part of the code is: bool pre_dec; 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 pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=add...
The wrong part of the code is: bool pre_dec; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool pre_dec = false;
'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 pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_d...
The wrong part of the code is: case 4'd-5: The right code snippet is: case 4'd5:
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none port=pre_dec_o ...
The right code snippet is: case 4'd5:
'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: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=addr_i #pragma HLS INTERFACE ap_none...
The wrong part of the code is: case 4'd-5: The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void pre_decoder( ap_uint<6> addr_i, bool &pre_dec_o, bool &pre_dec_err_o ) { #pragma HLS INTERFACE ap_none port=add...
The wrong part of the code is: case 4'd-5: The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: case 4'd5:
'SHFT'