instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No arrays are used in the given code.
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No arrays are used in the given code.
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition' The right code snippet is: N/A - No arrays are used in the given code.
'DID': Dim incorrect dimension for the pragma '#pragma HLS array_partition'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No dataflow is used in the given code.
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No dataflow is used in the given code.
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'DFP': Dataflow position error for the pragma '#pragma HLS dataflow' The right code snippet is: N/A - No dataflow is used in the given code.
'DFP': Dataflow position error for the pragma '#pragma HLS dataflow'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No interface pragma is used in the given code.
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No interface pragma is used in the given code.
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface' The right code snippet is: N/A - No interface pragma is used in the given code.
'IDAP': Incorrect data access pattern for the pragma '#pragma HLS interface'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No interface pragma is used in the given code.
'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No interface pragma is used in the given code.
'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface' The right code snippet is: ...
'RAMB': m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No interface pragma is used in the given code.
'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No interface pragma is used in the given code.
'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface' The right code snippet is: N/A - No...
'SMA': Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The right code snippet is: N/A - No interface pragma is used in the given code.
'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No interface pragma is used in the given code.
'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface'
'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - This bug type is not applicable to the given code. The high-level-synthesis bug type of the code is: 'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface' The right code snippet is: N/A - No interface...
'AMS': Array value mapped to scalar interfaces like ap_none/ap_vld/s_axilite for the pragma '#pragma HLS interface'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: N/A - The right code snippet is: N/A - No pipeline pragma is used in the given code.
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C ...
The right code snippet is: N/A - No pipeline pragma is used in the given code.
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE a...
The wrong part of the code is: N/A - The high-level-synthesis bug type of the code is: 'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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 nor4_module(bool A, bool B, bool C, bool D, bool& Y) { #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_no...
The wrong part of the code is: N/A - The high-level-synthesis bug type of the code is: 'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline' The right code snippet is: N/A - No pipeline pragma is used in the given code.
'MLP': Multi-level pipelining for the pragma '#pragma HLS pipeline'
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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: IF = (instr.range(16, 12).or_reduce()) ? 1 : 0; The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 0;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 0;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: IF = (instr.range(16, 12).or_reduce()) ? 1 : 0; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: IF = (instr.range(16, 12).or_reduce()) ? 1 : 0; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 0;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: if (CCLK) { IF = 0; } else { The right code snippet is: if (rst) { IF = 0; } else {
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: if (rst) { IF = 0; } else {
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: if (CCLK) { IF = 0; } else { The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: if (CCLK) { IF = 0; } else { The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: if (rst) { IF = 0; } else {
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: IF = instr.range(15, 11) << 1; The right code snippet is: IF = 5;
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: IF = 5;
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: IF = instr.range(15, 11) << 1; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: IF = instr.range(15, 11) << 1; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: IF = 5;
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: while (IF) { // some code } The right code snippet is: while (1) { // some code }
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: while (1) { // some code }
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: while (IF) { // some code } 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: while (IF) { // some code } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (1) { // some code }
'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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: IF = (ap_int<8>) instr.range(15, 11); The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: IF = (ap_int<8>) instr.range(15, 11); 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: IF = (ap_int<8>) instr.range(15, 11); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: IF = 5; IF = 5; The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: IF = 5; IF = 5; 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: IF = 5; IF = 5; The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: IF = 5;
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: if (rst) { IF = 0; } else { IF = 0; } The right code snippet is: if (rst) { IF = 0; } 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: if (rst) { IF = 0; } 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: if (rst) { IF = 0; } else { IF = 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: if (rst) { IF = 0; } else { IF = 0; } The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: if (rst) { IF = 0; } 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: IF = (instr.range(7, 3).or_reduce()) ? 1 : 0; The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: IF = (instr.range(7, 3).or_reduce()) ? 1 : 0; 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: IF = (instr.range(7, 3).or_reduce()) ? 1 : 0; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: IF = (instr.range(15, 11).or_reduce()) ? 1 : 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF block factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=IF 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=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #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'
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=IF The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=IF 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> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=IF The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=IF random The right code snippet is: #pragma HLS INTERFACE m_axi port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS INTERFACE m_axi port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=IF 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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=IF random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE bram port=IF The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE bram port=IF 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS INTERFACE bram port=IF The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=IF The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=IF 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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=IF The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_none port=IF
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #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'
'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 exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none...
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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #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'
'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: ``` #include <ap_int.h> void exin(ap_uint<1> CCLK, ap_uint<1> rst, ap_uint<32> instr, ap_uint<8>& IF) { #pragma HLS INTERFACE ap_ct...
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'