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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=bi...
The wrong part of the code is: ``` #pragma HLS interface m_axi port=excess_3_reg offset=slave bundle=gmem excess_3_reg = binary_reg + 3; ``` The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=binary ...
The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_n...
The wrong part of the code is: ``` #pragma HLS interface m_axi port=excess_3_reg offset=slave bundle=gmem excess_3_reg = binary_reg + 3; ``` 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: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: ``` #pragma HLS interface m_axi port=excess_3_reg offset=slave bundle=gmem excess_3_reg = binary_reg + 3; ``` The high-level-synthesis bug type of the code is: RAMB The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=bi...
The wrong part of the code is: ``` #pragma HLS interface s_axilite port=excess_3_reg excess_3_reg = binary_reg + 3; ``` The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=binary ...
The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_n...
The wrong part of the code is: ``` #pragma HLS interface s_axilite port=excess_3_reg excess_3_reg = binary_reg + 3; ``` 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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: ``` #pragma HLS interface s_axilite port=excess_3_reg excess_3_reg = binary_reg + 3; ``` The high-level-synthesis bug type of the code is: SMA The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=bi...
The wrong part of the code is: ``` #pragma HLS interface ap_vld port=excess_3_reg excess_3_reg = binary_reg + 3; ``` The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
AMS
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=binary ...
The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_n...
The wrong part of the code is: ``` #pragma HLS interface ap_vld port=excess_3_reg excess_3_reg = binary_reg + 3; ``` 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: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: ``` #pragma HLS interface ap_vld port=excess_3_reg excess_3_reg = binary_reg + 3; ``` The high-level-synthesis bug type of the code is: AMS The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
AMS
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 excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=bi...
The wrong part of the code is: ``` #pragma HLS pipeline II=2 excess_3_reg = binary_reg + 3; ``` The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=binary ...
The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_n...
The wrong part of the code is: ``` #pragma HLS pipeline II=2 excess_3_reg = binary_reg + 3; ``` The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void excess_3_converter(ap_uint<4> binary, ap_uint<8> &excess_3) { #pragma HLS INTERFACE ap_ctrl_none port=...
The wrong part of the code is: ``` #pragma HLS pipeline II=2 excess_3_reg = binary_reg + 3; ``` The high-level-synthesis bug type of the code is: MLP The right code snippet is: ``` excess_3_reg = binary_reg + 3; ```
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 counter(int max_val, bool reset, bool clk, int& count_val) { static int reg_count = 0; if (reset) { reg_count = 0; } else if (reg_count == max_val) { reg_count = 0;...
The wrong part of the code is: reg_count++; Bug_type: 'INIT' The right code snippet is: reg_count++;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void counter(int max_val, bool reset, bool clk, int& count_val) { static int reg_count = 0; if (reset) { reg_count = 0; } else if (reg_count == max_val) { reg_count = 0; } ...
The right code snippet is: reg_count++;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void counter(int max_val, bool reset, bool clk, int& count_val) { static int reg_count = 0; if (reset) { reg_count = 0; } else if (reg_count == max_val) { reg...
The wrong part of the code is: reg_count++; Bug_type: 'INIT' The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void counter(int max_val, bool reset, bool clk, int& count_val) { static int reg_count = 0; if (reset) { reg_count = 0; } els...
The wrong part of the code is: reg_count++; Bug_type: 'INIT' The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: reg_count++;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #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 INTERFACE ap_n...
The wrong part of the code is: bool temp1; temp1 = temp1 & VPWR & VGND & VPB & VNB; The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: bool temp1; temp1 = temp1 & VPWR & VGND & VPB & VNB; 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: bool temp1; temp1 = temp1 & VPWR & VGND & VPB & VNB; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB & (VNB << 2); The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB & (VNB << 2); 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB & (VNB << 2); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS PIPELINE II=1 bool temp1 = VPWR & VGND & VPB & VNB; while(temp1){ VDD = 1; } bool temp2 = VPWR | VGND | VPB | VNB; while(temp2){ VSS = 0; } The right code snippet is: #pragma HLS PIPELINE II=1 bool temp1 = VPWR & VGND & VPB & VNB; VDD = temp1 ? 1 : 0; ...
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS PIPELINE II=1 bool temp1 = VPWR & VGND & VPB & VNB; VDD = temp1 ? 1 : 0; bool temp2 = VPWR | VGND | VPB | VNB; VSS = temp2 ? 0 : 1;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: #pragma HLS PIPELINE II=1 bool temp1 = VPWR & VGND & VPB & VNB; while(temp1){ VDD = 1; } bool temp2 = VPWR | VGND | VPB | VNB; while(temp2){ VSS = 0; } 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS PIPELINE II=1 bool temp1 = VPWR & VGND & VPB & VNB; while(temp1){ VDD = 1; } bool temp2 = VPWR | VGND | VPB | VNB; while(temp2){ VSS = 0; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: #pragma HLS PIPELINE II=1...
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: unsigned char temp1 = VPWR & VGND & VPB & VNB; The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: unsigned char temp1 = VPWR & VGND & VPB & VNB; 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: unsigned char temp1 = VPWR & VGND & VPB & VNB; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: bool temp1 = VPWR & VGND; temp1 &= VPB & VNB; The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: bool temp1 = VPWR & VGND; temp1 &= VPB & VNB; 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: bool temp1 = VPWR & VGND; temp1 &= VPB & VNB; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=1 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=2 dim=1
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=2 dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #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 INT...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=1 dim=1 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=1 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=VDD cyclic factor=2 dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #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 INTERFACE ap_n...
The wrong part of the code is: #pragma HLS DATAFLOW wait 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: #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 INTERFACE ap_none p...
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: #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 INT...
The wrong part of the code is: #pragma HLS DATAFLOW wait The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS DATAFLOW wait 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: #pragma HLS INTERFACE ap_vld 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 INTERFACE ap_no...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=VPWR The right code snippet is: #pragma HLS INTERFACE ap_none port=VPWR
'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_vld 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 INTERFACE ap_none po...
The right code snippet is: #pragma HLS INTERFACE ap_none port=VPWR
'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_vld 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 INTE...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=VPWR 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_vld port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=VPWR The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=VPWR
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=VDD random The right code snippet is: #pragma HLS INTERFACE m_axi port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS INTERFACE m_axi port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=VDD random 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=VDD random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=VDD The right code snippet is: #pragma HLS INTERFACE ap_fifo port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS INTERFACE ap_fifo port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=VDD 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=VDD The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_fifo port=VDD
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS INTERFACE axis port=VDD The right code snippet is: #pragma HLS INTERFACE ap_none port=VDD
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE 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 INTERFACE axis port...
The right code snippet is: #pragma HLS INTERFACE ap_none port=VDD
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE 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 INT...
The wrong part of the code is: #pragma HLS INTERFACE axis port=VDD The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS INTERFACE axis port=VDD The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=VDD
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE 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 INTERFACE ap_n...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #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 INTERFACE ap_none p...
The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #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 INT...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #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 INTERFACE ap_n...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB; temp1 &= VNB; The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTERFACE ap_none port=VNB #pragma HLS INT...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB; temp1 &= VNB; 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB #pragma HLS INTER...
The wrong part of the code is: bool temp1 = VPWR & VGND & VPB; temp1 &= VNB; The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: bool temp1 = VPWR & VGND & VPB & VNB;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: MemOut = mem[ALUOut+1]; The right code snippet is: MemOut = mem[ALUOut];
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: MemOut = mem[ALUOut];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: MemOut = mem[ALUOut+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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: MemOut = mem[ALUOut+1]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: MemOut = mem[ALUOut];
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: uint16_t A; The right code snippet is: static uint16_t A;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: static uint16_t A;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: uint16_t A; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: uint16_t A; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static uint16_t A;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: ALUOut = A << 20; The right code snippet is: ALUOut = A ^ ALUIn2;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: ALUOut = A ^ ALUIn2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: ALUOut = A << 20; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: ALUOut = A << 20; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: ALUOut = A ^ ALUIn2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: PCPrime = (PC.range(14, 0), IR.range(7, 0), true); The right code snippet is: PCPrime = Branch ? (PC.range(14, 0), IR.range(7, 0), false) : PC + 1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: PCPrime = Branch ? (PC.range(14, 0), IR.range(7, 0), false) : PC + 1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: PCPrime = (PC.range(14, 0), IR.range(7, 0), true); The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: PCPrime = (PC.range(14, 0), IR.range(7, 0), true); The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: PCPrime = Branch ? (PC.range(14, 0), IR.range(7, 0), false) : PC + 1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: static int opcode; The right code snippet is: static ap_uint<4> opcode;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: static ap_uint<4> opcode;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: static int opcode; 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: static int opcode; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: static ap_uint<4> opcode;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: ALUIn2 = ALUSrc ? sign_ext : A; The right code snippet is: ALUIn2 = ALUSrc ? sign_ext : B;
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: ALUIn2 = ALUSrc ? sign_ext : B;
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: ALUIn2 = ALUSrc ? sign_ext : A; The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: ALUIn2 = ALUSrc ? sign_ext : A; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: ALUIn2 = ALUSrc ? sign_ext : B;
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: static bool RegWrite = 0; The right code snippet is: static bool RegWrite;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: static bool RegWrite;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: static bool RegWrite = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: static bool RegWrite = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static bool RegWrite;
'ZERO'