instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: reg [7:0] stage1 = 8'b0; reg [7:0] stage2 = 8'b0; The right code snippet is: reg [7:0] stage1; reg [7:0] stage2;
'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=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: reg [7:0] stage1; reg [7:0] stage2;
'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=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: reg [7:0] stage1 = 8'b0; reg [7:0] stage2 = 8'b0; 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=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: reg [7:0] stage1 = 8'b0; reg [7:0] stage2 = 8'b0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: reg [7:0] stage1; reg [7:0] stage2;
'ZERO'
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=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: stage1 <= input_data[15:8]; stage2 <= stage1; The right code snippet is: stage1 <= input_data; stage2 <= stage1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: stage1 <= input_data; stage2 <= stage1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: stage1 <= input_data[15:8]; stage2 <= stage1; 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: stage1 <= input_data[15:8]; stage2 <= stage1; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: stage1 <= input_data; stage2 <= stage1;
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 block factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 block factor=2 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=3 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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=stage1 cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS DATAFLOW off 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS DATAFLOW off 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS DATAFLOW off 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=input_data The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=input_data 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=input_data The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=1024 The right code snippet is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=slave
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=slave
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=1024 The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=1024 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=input_data depth=1024 offset=slave
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE bram port=input_data The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE bram port=input_data 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE bram port=input_data The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS INTERFACE ap_array port=input_data The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS INTERFACE ap_array port=input_data 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE ap_array port=input_data The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=input_data
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS UNROLL factor=1 The right code snippet is: #pragma HLS UNROLL factor=2
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap_n...
The right code snippet is: #pragma HLS UNROLL factor=2
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HL...
The wrong part of the code is: #pragma HLS UNROLL factor=1 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_clk port=clk #pragma HLS INTERFACE ap_rst port=rst #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS UNROLL factor=1 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS UNROLL factor=2
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2[0]) && (A1 >= A3); sel2 = (A2 >=...
The wrong part of the code is: sel1 = (A1 >= A2[0]) && (A1 >= A3); The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2[0]) && (A1 >= A3); sel2 = (A2 >= A1) ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2[0]) && (A1 >= A3); se...
The wrong part of the code is: sel1 = (A1 >= A2[0]) && (A1 >= A3); 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: sel1 = (A1 >= A2[0]) && (A1 >= A3); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1; bool sel2 = sel1; sel1 = (A1 >= A2) && (A1 >= A3); sel2...
The wrong part of the code is: bool sel1; bool sel2 = sel1; The right code snippet is: bool sel1, sel2;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1; bool sel2 = sel1; sel1 = (A1 >= A2) && (A1 >= A3); sel2 = (A...
The right code snippet is: bool sel1, sel2;
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1; bool sel2 = sel1; sel1 = (A1 >= A2) && (A1 >= A3...
The wrong part of the code is: bool sel1; bool sel2 = sel1; 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1; bool sel2 = sel...
The wrong part of the code is: bool sel1; bool sel2 = sel1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool sel1, sel2;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 << A2) && (A1 >= A3); sel2 = (A2 >= A1...
The wrong part of the code is: sel1 = (A1 << A2) && (A1 >= A3); The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 << A2) && (A1 >= A3); sel2 = (A2 >= A1) && ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 << A2) && (A1 >= A3); sel2 ...
The wrong part of the code is: sel1 = (A1 << A2) && (A1 >= A3); 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: sel1 = (A1 << A2) && (A1 >= A3); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; while (sel1) {} sel2 = (A2 >= A1) && (A2 >= A3); ...
The wrong part of the code is: while (sel1) {} The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; while (sel1) {} sel2 = (A2 >= A1) && (A2 >= A3); ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; while (sel1) {} sel2 = (A2 >= A1) && (...
The wrong part of the code is: while (sel1) {} 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; while...
The wrong part of the code is: while (sel1) {} The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >= A3; se...
The wrong part of the code is: sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >= A3; The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >= A3; sel2 = ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >=...
The wrong part of the code is: sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >= A3; 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: sel1 = (int8_t) A1 >= A2 && (int8_t) A1 >= A3; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) || (A1 >= A3); sel2 = (A2 >= A1...
The wrong part of the code is: sel1 = (A1 >= A2) || (A1 >= A3); The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) || (A1 >= A3); sel2 = (A2 >= A1) && ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) || (A1 >= A3); sel2 ...
The wrong part of the code is: sel1 = (A1 >= A2) || (A1 >= A3); 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: sel1 = (A1 >= A2) || (A1 >= A3); The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1 = 0; bool sel2 = 0; sel1 = (A1 >= A2) && (A1 >= A3); sel...
The wrong part of the code is: bool sel1 = 0; bool sel2 = 0; The right code snippet is: bool sel1, sel2;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1 = 0; bool sel2 = 0; sel1 = (A1 >= A2) && (A1 >= A3); sel2 = (...
The right code snippet is: bool sel1, sel2;
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1 = 0; bool sel2 = 0; sel1 = (A1 >= A2) && (A1 >= A...
The wrong part of the code is: bool sel1 = 0; bool sel2 = 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1 = 0; bool sel2 =...
The wrong part of the code is: bool sel1 = 0; bool sel2 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool sel1, sel2;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3); sel2 = (A2 >= A1...
The wrong part of the code is: Y = B1; The right code snippet is: Y = B1 ^ C1;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3); sel2 = (A2 >= A1) && ...
The right code snippet is: Y = B1 ^ C1;
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3); sel2 ...
The wrong part of the code is: Y = B1; 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: Y = B1; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: Y = B1 ^ C1;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete bool sel1, sel2; sel...
The wrong part of the code is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete bool sel1, sel2; sel1 = (...
The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete bool sel1, se...
The wrong part of the code is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition v...
The wrong part of the code is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool Y[2]) { #pragma HLS array_partition variable=Y complete The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, b...
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= A3); se...
The wrong part of the code is: sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= A3); The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= A3); sel2 = ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= ...
The wrong part of the code is: sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= A3); 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 ...
The wrong part of the code is: sel1 = (A1 >= A2) && (A1 >= A3) && (A2 >= A3); The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; #pragma HLS array_partition variable=sel1 cyclic fact...
The wrong part of the code is: #pragma HLS array_partition variable=sel1 cyclic factor=2 dim=1 The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; #pragma HLS array_partition variable=sel1 cyclic factor=2 ...
The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; #pragma HLS array_partition variable=sel1 ...
The wrong part of the code is: #pragma HLS array_partition variable=sel1 cyclic factor=2 dim=1 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: ```c++ #include <ap_int.h> void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; #prag...
The wrong part of the code is: #pragma HLS array_partition variable=sel1 cyclic factor=2 dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: sel1 = (A1 >= A2) && (A1 >= A3);
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3);...
The wrong part of the code is: #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && (A1 >= A3); ...
The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'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: ```c++ #include <ap_int.h> #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool sel1, sel2; sel1 = (A1 >= A2) && ...
The wrong part of the code is: #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { 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: ```c++ #include <ap_int.h> #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { bool ...
The wrong part of the code is: #pragma HLS dataflow void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) { The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ```c++ #include <ap_int.h> #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_stable port...
The wrong part of the code is: #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_stable port=B1 #pragma HLS interface ap_stable port=C1 #pragma HLS interface ap_stable port=Y void signal_selector(bool A1, bool A2, bo...
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ```c++ #include <ap_int.h> #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_stable port=B1 #...
The right code snippet is: void signal_selector(bool A1, bool A2, bool A3, bool B1, bool C1, bool &Y) {
'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: ```c++ #include <ap_int.h> #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_...
The wrong part of the code is: #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_stable port=B1 #pragma HLS interface ap_stable port=C1 #pragma HLS interface ap_stable port=Y void signal_selector(bool A1, bool A2, bo...
'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: ```c++ #include <ap_int.h> #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_sta...
The wrong part of the code is: #pragma HLS interface ap_stable port=A1 #pragma HLS interface ap_stable port=A2 #pragma HLS interface ap_stable port=A3 #pragma HLS interface ap_stable port=B1 #pragma HLS interface ap_stable port=C1 #pragma HLS interface ap_stable port=Y void signal_selector(bool A1, bool A2, bo...
'IDAP'