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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[513];
The right code snippet is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[511]; | '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=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[511]; | '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=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[513];
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=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[513];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
ap_uint<34> buffer[512];
ap_uint<34> data = buffer[511]; | '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=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 50;
The right code snippet is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 5; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 50;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 50;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
ap_uint<34> data = 0xABCD;
ap_uint<34> shifted_data = data << 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_int<4> a = -1;
ap_uint<8> b = a;
The right code snippet is:
ap_int<4> a = -1;
ap_uint<4> b = a; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
ap_int<4> a = -1;
ap_uint<4> b = a; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
ap_int<4> a = -1;
ap_uint<8> b = a;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
ap_int<4> a = -1;
ap_uint<8> b = a;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_int<4> a = -1;
ap_uint<4> b = a; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block factor=4
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block factor=4
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer block factor=4
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic dim=2 factor=4
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic dim=2 factor=4
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic dim=2 factor=4
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS dataflow region
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS dataflow region
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS dataflow region
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=8
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=8
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer cyclic factor=8
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=buffer cyclic factor=4 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer max_read_burst_length=4
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer max_read_burst_length=4
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer max_read_burst_length=4
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=512 port=buffer | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS scalar
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS scalar
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS scalar
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=data bundle=CRTL_BUS | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFAC... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code here
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma HLS INTERFACE s_a... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS
#pragma H... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
read_mux_out = (address[2] == 0 && address[0] == 0) ? data_in : false;
The right code snippet is:
read_mux_out = (address[1] == 0 && address[0] == 0) ? data_in : false; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
read_mux_out = (address[1] == 0 && address[0] == 0) ? data_in : false; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
read_mux_out = (address[2] == 0 && address[0] == 0) ? data_in : false;
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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
read_mux_out = (address[2] == 0 && address[0] == 0) ? data_in : false;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
read_mux_out = (address[1] == 0 && address[0] == 0) ? data_in : false; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
bool clk_en = false;
bool data_in = false;
bool read_mux_out = false;
int readdata = 0;
The right code snippet is:
bool clk_en;
bool data_in;
bool read_mux_out;
int readdata; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
bool clk_en;
bool data_in;
bool read_mux_out;
int readdata; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
bool clk_en = false;
bool data_in = false;
bool read_mux_out = false;
int readdata = 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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
bool clk_en = false;
bool data_in = false;
bool read_mux_out = false;
int readdata = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool clk_en;
bool data_in;
bool read_mux_out;
int readdata; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
readdata = (read_mux_out << 40) | 0;
The right code snippet is:
readdata = (read_mux_out << 32) | 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
readdata = (read_mux_out << 32) | 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
readdata = (read_mux_out << 40) | 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
readdata = (read_mux_out << 40) | 0;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
readdata = (read_mux_out << 32) | 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
while(1);
The right code snippet is:
// No suitable code snippet found | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
while(1);
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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
while(1);
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
// No suitable code snippet found | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
unsigned int readdata;
The right code snippet is:
int 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
int 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
unsigned int 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
unsigned int readdata;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
int 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
for(int i=0; i<10; i++) {
#pragma HLS UNROLL
// loop body
}
The right code snippet is:
// No suitable code snippet found | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
for(int i=0; i<10; 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
for(int i=0; i<10; i++) {
#pragma HLS UNROLL
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
// No suitable code snippet found | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata;
The right code snippet is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata = 0; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata = 0; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata;
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool clk_en = true;
bool data_in = false;
bool read_mux_out = false;
int readdata = 0; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + 10, size);
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + 10, size);
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
memcpy(dest_buffer, src_buffer + 10, size);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic factor=2
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic 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 ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic factor=3
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic factor=3
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic dim=2
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=address cyclic dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS DATAFLOW
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CT... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CT... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CT... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=address offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=clk offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=in_port offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=reset_n offset=slave bundle=AXI_BUS
#pragma ... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=address offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=clk offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=in_port offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=reset_n offset=slave bundle=AXI_BUS
#pragma ... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=address offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=clk offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=in_port offset=slave bundle=AXI_BUS
#pragma HLS INTERFACE m_axi port=reset_n offset=slave bundle=AXI_BUS
#pragma ... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=rea... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_... |
The right code snippet is:
// No suitable code snippet found | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma ... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=rea... | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=in_port bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=reset_n bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=rea... | 'SMA' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.