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: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: Y = ~(int(A) & int(B) & int(C)); The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: Y = ~(int(A) & int(B) & int(C)); 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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: Y = ~(int(A) & int(B) & int(C)); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: Y = ~(A[0] & B[0] & C[0]); Y = ~(A[1] & B[1] & C[1]); The right code snippet is: Y = ~(A & B & C);
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: Y = ~(A[0] & B[0] & C[0]); Y = ~(A[1] & B[1] & C[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> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: Y = ~(A[0] & B[0] & C[0]); Y = ~(A[1] & B[1] & C[1]); The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: Y = ~(A & B & C);
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0;) { #pragma HLS INTERFACE ap_ctrl_no...
The wrong part of the code is: bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0; The right code snippet is: bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0;) { #pragma HLS INTERFACE ap_ctrl_none po...
The right code snippet is: bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0;) { #pragma HLS INTERFACE...
The wrong part of the code is: bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, boo...
The wrong part of the code is: bool A=0, bool B=0, bool C=0, bool VPWR=0, bool VGND=0, bool VPB=0, bool VNB=0, bool &Y=0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: Y = ~(A[3] & B[3] & C[3]); The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: Y = ~(A[3] & B[3] & C[3]); 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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: Y = ~(A[3] & B[3] & C[3]); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 #pragma HLS array_partition variable=B cyclic factor=3 #pragma HLS array_partition variable=C cyclic factor=3 Y = ~(A & B & C); The right code snippet is: Y = ~(A & B & C);
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 #pragma HLS array_partition variable=B cyclic factor=3 #pragma HLS array_partition variable=C cyclic factor=3 Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 #pragma HLS array_partition variable=B cyclic factor=3 #pragma HLS array_partition variable=C cyclic factor=3 Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: Y ...
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=A complete #pragma HLS array_partition variable=B complete #pragma HLS array_partition variable=C complete Y = ~(A & B & C); The right code snippet is: Y = ~(A & B & C);
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A complete #pragma HLS array_partition variable=B complete #pragma HLS array_partition variable=C complete Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS array_partition variable=A complete #pragma HLS array_partition variable=B complete #pragma HLS array_partition variable=C complete Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: Y = ~(A & B & C);
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=2 #pragma HLS array_partition variable=B cyclic factor=3 dim=2 #pragma HLS array_partition variable=C cyclic factor=3 dim=2 Y = ~(A & B & C); The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=2 #pragma HLS array_partition variable=B cyclic factor=3 dim=2 #pragma HLS array_partition variable=C cyclic factor=3 dim=2 Y = ~(A & B & C); 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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=2 #pragma HLS array_partition variable=B cyclic factor=3 dim=2 #pragma HLS array_partition variable=C cyclic factor=3 dim=2 Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'DID' The right code ...
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS dataflow Y = ~(A & B & C); The right code snippet is: Y = ~(A & B & C);
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS dataflow Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS dataflow Y = ~(A & B & C); The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: Y = ~(A & B & C);
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B #pragma HLS interface ap_none port=C #pragma HLS interface ap_none port=VPWR #pragma HLS interface ap_none port=VGND #pragma HLS interface ap_none port=VPB #pragma HLS interface ap_none port=VNB #pragma HLS...
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B #pragma HLS interface ap_none port=C #pragma HLS interface ap_none port=VPWR #pragma HLS interface ap_none port=VGND #pragma HLS interface ap_none port=VPB #pragma HLS interface ap_none port=VNB #pragma HLS...
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS interface ap_none port=A #pragma HLS interface ap_none port=B #pragma HLS interface ap_none port=C #pragma HLS interface ap_none port=VPWR #pragma HLS interface ap_none port=VGND #pragma HLS interface ap_none port=VPB #pragma HLS interface ap_none port=VNB #pragma HLS...
'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 sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface m_axi port=A #pragma HLS interface m_axi port=B #pragma HLS interface m_axi port=C #pragma HLS interface m_axi port=VPWR #pragma HLS interface m_axi port=VGND #pragma HLS interface m_axi port=VPB #pragma HLS interface m_axi port=VNB #pragma HLS interface m_a...
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS interface m_axi port=A #pragma HLS interface m_axi port=B #pragma HLS interface m_axi port=C #pragma HLS interface m_axi port=VPWR #pragma HLS interface m_axi port=VGND #pragma HLS interface m_axi port=VPB #pragma HLS interface m_axi port=VNB #pragma HLS interface m_a...
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS interface m_axi port=A #pragma HLS interface m_axi port=B #pragma HLS interface m_axi port=C #pragma HLS interface m_axi port=VPWR #pragma HLS interface m_axi port=VGND #pragma HLS interface m_axi port=VPB #pragma HLS interface m_axi port=VNB #pragma HLS interface m_a...
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface s_axilite port=A #pragma HLS interface s_axilite port=B #pragma HLS interface s_axilite port=C #pragma HLS interface s_axilite port The right code snippet is: Y = ~(A & B & C);
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none port=return #pr...
The right code snippet is: Y = ~(A & B & C);
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #pragma HLS INTERFACE ap_ctrl_none por...
The wrong part of the code is: #pragma HLS interface s_axilite port=A #pragma HLS interface s_axilite port=B #pragma HLS interface s_axilite port=C #pragma HLS interface s_axilite port The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void sky130_fd_sc_lp__nand3(bool A, bool B, bool C, bool VPWR, bool VGND, bool VPB, bool VNB, bool &Y) { #...
The wrong part of the code is: #pragma HLS interface s_axilite port=A #pragma HLS interface s_axilite port=B #pragma HLS interface s_axilite port=C #pragma HLS interface s_axilite port The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: Y = ~(A & B & C);
'SMA'
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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } else if (button_i == K4) { The right code snippet is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } else if (button_i == K3) { state = SPAUSE; } else { if...
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } else if (button_i == K3) { state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } else if (button_i == K4) { 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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } else if (button_i == K4) { The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (button_i == K1) { state = SSTOP; counter = 0; second_o = 0; } el...
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: second_t counter; The right code snippet is: static second_t counter = 0;
state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: static second_t counter = 0;
state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: second_t counter; The high-level-synthesis bug type of the code is: state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } 'INIT'
state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: second_t counter; The high-level-synthesis bug type of the code is: state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } 'INIT' The right code snippet is: st...
state = SPAUSE; } else { if (counter == CLKRATE) { counter = 0; second_o = second_o + 1; } else { counter = counter + 1; } } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: counter = counter << CLKRATE; The right code snippet is: counter = counter + 1;
counter = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: counter = counter + 1;
counter = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: counter = counter << CLKRATE; The high-level-synthesis bug type of the code is: counter = 0; 'SHFT'
counter = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: counter = counter << CLKRATE; The high-level-synthesis bug type of the code is: counter = 0; 'SHFT' The right code snippet is: counter = counter + 1;
counter = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: while (counter < CLKRATE) { The right code snippet is: while (true) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: while (true) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: while (counter < CLKRATE) { 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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: while (counter < CLKRATE) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (true) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: const int CLKRATE = 25000; The right code snippet is: const second_t CLKRATE = 25000;
// do something counter++; } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: const second_t CLKRATE = 25000;
// do something counter++; } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: const int CLKRATE = 25000; The high-level-synthesis bug type of the code is: // do something counter++; } 'USE'
// do something counter++; } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: const int CLKRATE = 25000; The high-level-synthesis bug type of the code is: // do something counter++; } 'USE' The right code snippet is: const second_t CLKRATE = 25000;
// do something counter++; } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { The right code snippet is: for (int i = 0; i < 10; i++) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: for (int i = 0; i < 10; i++) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { 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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: for (int i = 0; i < 10; i+=2) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { // do something }
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: static state_t state; The right code snippet is: static state_t state = SSTOP;
// do something // do something else } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: static state_t state = SSTOP;
// do something // do something else } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: static state_t state; The high-level-synthesis bug type of the code is: // do something // do something else } 'ZERO'
// do something // do something else } '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: static state_t state; The high-level-synthesis bug type of the code is: // do something // do something else } 'ZERO' The right code snippet is: static state_t state = SSTOP;
// do something // do something else } 'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: // do something with second half of buffer The right code snippet is: // do something with first half of buffer // do something with second half of buffer
state = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: // do something with first half of buffer // do something with second half of buffer
state = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: // do something with second half of buffer The high-level-synthesis bug type of the code is: state = 0; 'BUF'
state = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: // do something with second half of buffer The high-level-synthesis bug type of the code is: state = 0; 'BUF' The right code snippet is: // do something with first half of buffer // do something with second half of buffer
state = 0; '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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS array_partition variable=second_o cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
// do something with first half of buffer 'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
// do something with first half of buffer 'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS array_partition variable=second_o cyclic dim=0 The high-level-synthesis bug type of the code is: // do something with first half of buffer 'APT'
// do something with first half of buffer 'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS array_partition variable=second_o cyclic dim=0 The high-level-synthesis bug type of the code is: // do something with first half of buffer 'APT' The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
// do something with first half of buffer 'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=1 The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=1 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=2 The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS array_partition variable=second_o complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=second_o complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS dataflow wait (-1) The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS dataflow wait (-1) The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS dataflow wait (-1) The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS interface ap_vld port=signal_i The right code snippet is: #pragma HLS interface ap_none port=signal_i #pragma HLS interface ap_none port=button_i #pragma HLS interface ap_none port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface a...
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS interface ap_none port=signal_i #pragma HLS interface ap_none port=button_i #pragma HLS interface ap_none port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface ap_stable port=clk_i
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS interface ap_vld port=signal_i 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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS interface ap_vld port=signal_i The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=signal_i #pragma HLS interface ap_none port=button_i #pragma HLS interface ap_none port=second_o #pragma H...
'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> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, butto...
The wrong part of the code is: #pragma HLS interface m_axi port=signal_i offset=slave bundle=signal_i #pragma HLS interface m_axi port=button_i offset=slave bundle=button_i #pragma HLS interface m_axi port=second_o offset=slave bundle=second_o #pragma HLS interface s_axilite port=return bundle=control #pragma ...
#pragma HLS interface ap_vld port=button_i #pragma HLS interface ap_vld port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface ap_stable port=clk_i 'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t signal_i, button_t b...
The right code snippet is: #pragma HLS interface m_axi port=signal_i offset=slave bundle=signal_i #pragma HLS interface m_axi port=button_i offset=slave bundle=button_i #pragma HLS interface m_axi port=second_o offset=slave bundle=second_o #pragma HLS interface s_axilite port=return bundle=control
#pragma HLS interface ap_vld port=button_i #pragma HLS interface ap_vld port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface ap_stable port=clk_i 'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTART, SPAUSE}; void Timer(signal_t sign...
The wrong part of the code is: #pragma HLS interface m_axi port=signal_i offset=slave bundle=signal_i #pragma HLS interface m_axi port=button_i offset=slave bundle=button_i #pragma HLS interface m_axi port=second_o offset=slave bundle=second_o #pragma HLS interface s_axilite port=return bundle=control #pragma ...
#pragma HLS interface ap_vld port=button_i #pragma HLS interface ap_vld port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface ap_stable port=clk_i 'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> typedef ap_uint<3> signal_t; typedef ap_uint<3> button_t; typedef ap_uint<32> second_t; enum state_t {SSTOP, SSTAR...
The wrong part of the code is: #pragma HLS interface m_axi port=signal_i offset=slave bundle=signal_i #pragma HLS interface m_axi port=button_i offset=slave bundle=button_i #pragma HLS interface m_axi port=second_o offset=slave bundle=second_o #pragma HLS interface s_axilite port=return bundle=control #pragma ...
#pragma HLS interface ap_vld port=button_i #pragma HLS interface ap_vld port=second_o #pragma HLS interface ap_ctrl_none port=return #pragma HLS interface ap_stable port=clk_i 'RAMB'