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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: #pragma HLS interface ap_fifo port=CLK The right code snippet is: #pragma HLS interface ap_none port=CLK
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
The right code snippet is: #pragma HLS interface ap_none port=CLK
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
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 ap_none port=CLK
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: for (int i = 0; i < size; i++) { #pragma HLS interface m_axi port=mem[i] } The right code snippet is: #pragma HLS interface m_axi port=mem
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
The right code snippet is: #pragma HLS interface m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 0; i < size; i++) { #pragma HLS interface m_axi port=mem[i] } 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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
The wrong part of the code is: for (int i = 0; i < size; i++) { #pragma HLS interface m_axi port=mem[i] } The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: #pragma HLS interface ap_none port=D The right code snippet is: #pragma HLS interface ap_memory port=D
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
The right code snippet is: #pragma HLS interface ap_memory port=D
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_none port=D 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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
The wrong part of the code is: #pragma HLS interface ap_none port=D The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_memory port=D
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: #pragma HLS interface ap_memory port=D The right code snippet is: #pragma HLS interface ap_none port=D
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
The right code snippet is: #pragma HLS interface ap_none port=D
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_memory port=D 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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
The wrong part of the code is: #pragma HLS interface ap_memory port=D The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=D
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: for (int i = 0; i < 10; i++) { Q = D[i]; } The right code snippet is: for (int i = 0; i < 10; i++) { Q = D; }
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=CLK ...
The right code snippet is: for (int i = 0; i < 10; i++) { Q = D; }
'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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 0; i < 10; i++) { Q = D[i]; } 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 SNPS_CLOCK_GATE_HIGH_Up_counter_COUNTER_WIDTH4 (bool CLK, bool EN, bool TE, bool& ENCLK) { #pragma HLS INTERFACE ap_ctrl_none ...
The wrong part of the code is: for (int i = 0; i < 10; i++) { Q = D[i]; } The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: for (int i = 0; i < 10; i++) { Q = D; }
'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=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: bool Q = true; The right code snippet is: bool Q;
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=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: bool Q;
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=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: bool Q = true; 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=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: bool Q = true; The high-level-synthesis bug type of the code is: INIT The right code snippet is: bool Q;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: dut.D = (int)D; The right code snippet is: dut.D = D;
USE
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.D = D;
USE
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: dut.D = (int)D; The high-level-synthesis bug type of the code is: USE
USE
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: dut.D = (int)D; The high-level-synthesis bug type of the code is: USE The right code snippet is: dut.D = D;
USE
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS unroll for(int i = 0; i < 2; i++){ dut.Q = Q; } The right code snippet is: dut.Q = Q;
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.Q = Q;
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS unroll for(int i = 0; i < 2; i++){ dut.Q = Q; } The high-level-synthesis bug type of the code is: ILNU
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS unroll for(int i = 0; i < 2; i++){ dut.Q = Q; } The high-level-synthesis bug type of the code is: ILNU The right code snippet is: dut.Q = Q;
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=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut[1]; The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut;
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut;
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut[1]; The high-level-synthesis bug type of the code is: FND
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut[1]; The high-level-synthesis bug type of the code is: FND The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut;
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: while(true){ dut.CLK_N = CLK_N; } The right code snippet is: dut.CLK_N = CLK_N;
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.CLK_N = CLK_N;
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: while(true){ dut.CLK_N = CLK_N; } The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: while(true){ dut.CLK_N = CLK_N; } The high-level-synthesis bug type of the code is: INF The right code snippet is: dut.CLK_N = CLK_N;
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: dut.SET[10] = SET; The right code snippet is: dut.SET = SET;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.SET = SET;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: dut.SET[10] = SET; 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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: dut.SET[10] = SET; The high-level-synthesis bug type of the code is: OOB The right code snippet is: dut.SET = SET;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q cyclic The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q cyclic The high-level-synthesis bug type of the code is: APT
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q cyclic The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS interface ap_vld port=D The right code snippet is: #pragma HLS interface ap_none port=D
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: #pragma HLS interface ap_none port=D
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS interface ap_vld port=D The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS interface ap_vld port=D The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_none port=D
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS interface ap_memory port=D The right code snippet is: #pragma HLS interface ap_none port=D
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: #pragma HLS interface ap_none port=D
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS interface ap_memory port=D The high-level-synthesis bug type of the code is: SMA
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS interface ap_memory port=D The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface ap_none port=D
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS interface s_axilite port=D The right code snippet is: #pragma HLS interface m_axi port=D
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: #pragma HLS interface m_axi port=D
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS interface s_axilite port=D The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS interface s_axilite port=D The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=D
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS pipeline II=1 void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { #pragma HLS pipeline II=1 sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CL...
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = Q; }
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS pipeline II=1 void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { #pragma HLS pipeline II=1 sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CL...
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS pipeline II=1 void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { #pragma HLS pipeline II=1 sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CL...
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: dut.D = SET; The right code snippet is: dut.D = D;
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.D = D;
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: dut.D = SET; The high-level-synthesis bug type of the code is: BUF
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: dut.D = SET; The high-level-synthesis bug type of the code is: BUF The right code snippet is: dut.D = D;
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS dataflow void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = Q; } The r...
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = Q; }
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS dataflow void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = Q; } The h...
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS dataflow void dff_with_async_set_reset(bool D, bool SET, bool RESET, bool CLK_N, bool &Q) { sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = Q; } The h...
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q complete dim=2 The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
DID
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q 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: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS array_partition variable=dut.Q complete dim=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS array_partition variable=dut.Q complete
DID
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: dut.Q = Q << 10; The right code snippet is: dut.Q = Q;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: dut.Q = Q;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: dut.Q = Q << 10; 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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: dut.Q = Q << 10; The high-level-synthesis bug type of the code is: SHFT The right code snippet is: dut.Q = Q;
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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = 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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTERFACE ap_ctrl_no...
The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N; dut.Q = 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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFACE ap_none port=CLK_N #pragma HLS INTE...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N 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_none port=D #pragma HLS INTERFACE ap_none port=SET #pragma HLS INTERFACE ap_none port=RESET #pragma HLS INTERFAC...
The wrong part of the code is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESET; dut.D = D; dut.CLK_N = CLK_N The high-level-synthesis bug type of the code is: ZERO The right code snippet is: sky130_fd_sc_ms__udp_dff$NSR dut; dut.SET = SET; dut.RESET = RESE...
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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: result = a - b - cin - 1; The right code snippet is: result = a - b - cin;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The right code snippet is: result = a - b - cin;
'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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=retu...
The wrong part of the code is: result = a - b - cin - 1; 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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma...
The wrong part of the code is: result = a - b - cin - 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: result = a - b - cin;
'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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: bool overflow; The right code snippet is: bool overflow = false;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The right code snippet is: bool overflow = 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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=retu...
The wrong part of the code is: bool overflow; 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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma...
The wrong part of the code is: bool overflow; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool overflow = 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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: result = a << b + cin; The right code snippet is: result = a + b + cin;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The right code snippet is: result = a + b + cin;
'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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma HLS INTERFACE ap_ctrl_none port=retu...
The wrong part of the code is: result = a << b + cin; 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 add_sub( ap_uint<4> a, ap_uint<4> b, bool cin, bool control, ap_uint<4>& result, bool& overflow ) { #pragma...
The wrong part of the code is: result = a << b + cin; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: result = a + b + cin;
'SHFT'