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 memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_a...
The wrong part of the code is: #pragma HLS interface bram port=in1 The right code snippet is: #pragma HLS interface ap_memory port=in1
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_addres...
The right code snippet is: #pragma HLS interface ap_memory port=in1
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected cons...
The wrong part of the code is: #pragma HLS interface bram port=in1 The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the m...
The wrong part of the code is: #pragma HLS interface bram port=in1 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_memory port=in1
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_a...
The wrong part of the code is: #pragma HLS interface ap_vld port=in1 The right code snippet is: #pragma HLS interface ap_none port=in1
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_addres...
The right code snippet is: #pragma HLS interface ap_none port=in1
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected cons...
The wrong part of the code is: #pragma HLS interface ap_vld port=in1 The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the m...
The wrong part of the code is: #pragma HLS interface ap_vld port=in1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=in1
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_a...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_addres...
The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected cons...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the m...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_a...
The wrong part of the code is: #pragma HLS unroll factor=2 inner The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected const int end_addres...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the memory region to be protected cons...
The wrong part of the code is: #pragma HLS unroll factor=2 inner The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void memory_protection_blocks(int in1, bool in2, bool &out) { const int start_address = 0x00000000; // starting address of the m...
The wrong part of the code is: #pragma HLS unroll factor=2 inner The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: read_mux_out = (address == 3) ? data_out : 0; The right code snippet is: read_mux_out = (address == 0) ? data_out : 0;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: read_mux_out = (address == 0) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: read_mux_out = (address == 3) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: read_mux_out = (address == 3) ? data_out : 0; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: read_mux_out = (address == 0) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: ap_uint<10> data_out = 0; The right code snippet is: ap_uint<10> data_out;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: ap_uint<10> data_out;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: ap_uint<10> data_out = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: ap_uint<10> data_out = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<10> data_out;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: read_mux_out = (address << 3) ? data_out : 0; The right code snippet is: read_mux_out = (address == 0) ? data_out : 0;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: read_mux_out = (address == 0) ? data_out : 0;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: read_mux_out = (address << 3) ? data_out : 0; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: read_mux_out = (address << 3) ? data_out : 0; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: read_mux_out = (address == 0) ? data_out : 0;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: while (reset_n == 0) data_out = 682; The right code snippet is: if (reset_n == 0) data_out = 682;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: if (reset_n == 0) data_out = 682;
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: while (reset_n == 0) data_out = 682; The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: while (reset_n == 0) data_out = 682; The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (reset_n == 0) data_out = 682;
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: ap_int<32>& readdata; The right code snippet is: ap_uint<32>& readdata;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: ap_uint<32>& readdata;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: ap_int<32>& readdata; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: ap_int<32>& readdata; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<32>& readdata;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: for (int i = 0; i < 9; i++) { #pragma HLS UNROLL // loop body } The right code snippet is: for (int i = 0; i < 10; i++) { #pragma HLS UNROLL // loop body }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: for (int i = 0; i < 10; i++) { #pragma HLS UNROLL // loop body }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: for (int i = 0; i < 9; i++) { #pragma HLS UNROLL // loop body } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: for (int i = 0; i < 9; i++) { #pragma HLS UNROLL // loop body } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { #pragma HLS UNROLL // loop body }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: if (reset_n == 0) data_out = 0; The right code snippet is: if (reset_n == 0) data_out = 682;
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: if (reset_n == 0) data_out = 682;
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: if (reset_n == 0) data_out = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: if (reset_n == 0) data_out = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: if (reset_n == 0) data_out = 682;
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: read_mux_out = (address == 1) ? data_out : 0; The right code snippet is: read_mux_out = (address == 0) ? data_out : 0;
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: read_mux_out = (address == 0) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: read_mux_out = (address == 1) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: read_mux_out = (address == 1) ? data_out : 0; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: read_mux_out = (address == 0) ? data_out : 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: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS array_partition variable=data_out cyclic dim=1 factor=2 The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS array_partition variable=data_out cyclic dim=1 factor=2 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=data_out cyclic dim=1 factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=data_out complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=data_out complete 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS dataflow loop_flatten 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS interface ap_vld port=readdata The right code snippet is: #pragma HLS interface ap_none port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS interface ap_none port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS interface ap_vld port=readdata 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_vld port=readdata The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS interface m_axi port=readdata random The right code snippet is: #pragma HLS interface m_axi port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS interface m_axi port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS interface m_axi port=readdata random The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS interface m_axi port=readdata random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=readdata
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS interface bram port=data_out The right code snippet is: #pragma HLS interface axis port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS interface axis port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS interface bram port=data_out 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS interface bram port=data_out The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface axis port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS interface s_axilite port=data_out The right code snippet is: #pragma HLS interface bram port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS interface bram port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS interface s_axilite port=data_out 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS interface s_axilite port=data_out The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=data_out
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #p...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma...
The right code snippet is: #pragma HLS unroll
'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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=...
The wrong part of the code is: #pragma HLS unroll factor=2 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 s_axilite port=address bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=chipselect bundle=CTRL_BUS #pragma HLS...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS I...
The wrong part of the code is: if (rst) { bb <= 0; } The right code snippet is: if (rst) { bb <= init; }
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS INTERF...
The right code snippet is: if (rst) { bb <= init; }
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #p...
The wrong part of the code is: if (rst) { bb <= 0; } The high-level-synthesis bug type of the code is: INIT
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma...
The wrong part of the code is: if (rst) { bb <= 0; } The high-level-synthesis bug type of the code is: INIT The right code snippet is: if (rst) { bb <= init; }
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS I...
The wrong part of the code is: bb[17:2] <= bb[16:1]; The right code snippet is: bb[16:1] <= bb[15:0];
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS INTERF...
The right code snippet is: bb[16:1] <= bb[15: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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #p...
The wrong part of the code is: bb[17:2] <= bb[16:1]; The high-level-synthesis bug type of the code is: OOB
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma...
The wrong part of the code is: bb[17:2] <= bb[16:1]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: bb[16:1] <= bb[15: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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS I...
The wrong part of the code is: while (1) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); } The right code snippet is: if (base) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); }
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #pragma HLS INTERF...
The right code snippet is: if (base) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); }
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma HLS INTERFACE s_axilite port=base #p...
The wrong part of the code is: while (1) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); } The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=rst #pragma HLS INTERFACE s_axilite port=clk #pragma...
The wrong part of the code is: while (1) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); } The high-level-synthesis bug type of the code is: INF The right code snippet is: if (base) { bb[16:1] <= bb[15:0]; bb[0] <= ~(bb[16] ^ bb[13]); }
INF