instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS interface bram port=in_data The right code snippet is: #pragma HLS interface axis port=in_data
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS interface axis port=in_data
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS interface bram port=in_data The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS interface bram port=in_data The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface axis port=in_data
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS interface m_axi port=out_data The right code snippet is: #pragma HLS interface m_axi port=in_data
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS interface m_axi port=in_data
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS interface m_axi port=out_data The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS interface m_axi port=out_data The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=in_data
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS interface bram port=in_data The right code snippet is: #pragma HLS interface axis port=in_data
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS interface axis port=in_data
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS interface bram port=in_data The high-level-synthesis bug type of the code is: SMA
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS interface bram port=in_data The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface axis port=in_data
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS interface ap_none port=in_data The right code snippet is: #pragma HLS interface axis port=in_data
AMS
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS interface axis port=in_data
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS interface ap_none port=in_data The high-level-synthesis bug type of the code is: AMS
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS interface ap_none port=in_data The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface axis port=in_data
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: MLP The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragm...
The wrong part of the code is: #pragma HLS unroll factor=1 The right code snippet is: #pragma HLS unroll factor=2
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full) { #pragma HLS...
The right code snippet is: #pragma HLS unroll factor=2
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en, bool rd_en, bool& empty, bool& full...
The wrong part of the code is: #pragma HLS unroll factor=1 The high-level-synthesis bug type of the code is: ILNU
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<8,1,1,1> AXI8; const int depth = 16; void fifo_hls(AXI8 in_data, AXI8& out_data, bool wr_en...
The wrong part of the code is: #pragma HLS unroll factor=1 The high-level-synthesis bug type of the code is: ILNU The right code snippet is: #pragma HLS unroll factor=2
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: switch (data) { case -1: encoded_data = {1, 0}; break; case 1: encoded_data = {0, 1}; break; case 2: encoded_data = {1, 1}; break; case 3: encoded_data = {0, 0}; break; } The right code snippet is...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: switch (data) { case 0: encoded_data = {1, 0}; break; case 1: encoded_data = {0, 1}; break; case 2: encoded_data = {1, 1}; break; case 3: encoded_data = {0, 0}; break; }
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: switch (data) { case -1: encoded_data = {1, 0}; break; case 1: encoded_data = {0, 1}; break; case 2: encoded_data = {1, 1}; break; case 3: encoded_data = {0, 0}; break; } The high-level-synthesis ...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: switch (data) { case -1: encoded_data = {1, 0}; break; case 1: encoded_data = {0, 1}; break; case 2: encoded_data = {1, 1}; break; case 3: encoded_data = {0, 0}; break; } The high-level-synthesis ...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg; The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg; 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: shift_reg = (shift_reg << 10) | in; The right code snippet is: shift_reg = (shift_reg << 1) | in;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: shift_reg = (shift_reg << 1) | in;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: shift_reg = (shift_reg << 10) | in; 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: shift_reg = (shift_reg << 10) | in; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: shift_reg = (shift_reg << 1) | in;
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: void Convolutional_Encoder_Viterbi_Decoder(data_t in, enc_out_t &enc_out, dec_out_t &dec_out) { #pragma HLS PIPELINE II=1 static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0; shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: void Convolutional_Encoder_Viterbi_Decoder(data_t in, enc_out_t &enc_out, dec_out_t &dec_out) { #pragma HLS PIPELINE II=1 static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0; shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec_reg...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: void Convolutional_Encoder_Viterbi_Decoder(data_t in, enc_out_t &enc_out, dec_out_t &dec_out) { #pragma HLS PIPELINE II=1 static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0; shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: void Convolutional_Encoder_Viterbi_Decoder(data_t in, enc_out_t &enc_out, dec_out_t &dec_out) { #pragma HLS PIPELINE II=1 static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 0; shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: int8_t encoded_data; switch (data) { case 0: encoded_data = 1; break; case 1: encoded_data = 0; break; case 2: encoded_data = -1; break; case 3: encoded_data = 0; break; } The right code snippet ...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: enc_out_t encoded_data; switch (data) { case 0: encoded_data = {1, 0}; break; case 1: encoded_data = {0, 1}; break; case 2: encoded_data = {1, 1}; break; case 3: encoded_data = {0, 0}; break; }
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: int8_t encoded_data; switch (data) { case 0: encoded_data = 1; break; case 1: encoded_data = 0; break; case 2: encoded_data = -1; break; case 3: encoded_data = 0; break; } The high-level-synthesi...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: int8_t encoded_data; switch (data) { case 0: encoded_data = 1; break; case 1: encoded_data = 0; break; case 2: encoded_data = -1; break; case 3: encoded_data = 0; break; } The high-level-synthesi...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: for(int i = 0; i < 10; i++) { shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec_reg = (dec_reg << n) | enc_out; dec_out = decode(dec_reg); } The right code snippet is: // No manual loop unrolling in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: // No manual loop unrolling in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: for(int i = 0; i < 10; i++) { shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec_reg = (dec_reg << n) | enc_out; dec_out = decode(dec_reg); } 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: for(int i = 0; i < 10; i++) { shift_reg = (shift_reg << 1) | in; enc_out = encode(shift_reg); dec_reg = (dec_reg << n) | enc_out; dec_out = decode(dec_reg); } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: // No man...
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg = 0; The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 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 s_axilite port=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 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 s_axilite port=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg = 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: static shift_reg_t shift_reg; static dec_reg_t dec_reg = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: static shift_reg_t shift_reg = 0; static dec_reg_t dec_reg = 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 s_axilite port=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: memcpy(&enc_out, &dec_out, sizeof(dec_out)); The right code snippet is: // No split buffer in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: // No split buffer in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: memcpy(&enc_out, &dec_out, sizeof(dec_out)); 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: memcpy(&enc_out, &dec_out, sizeof(dec_out)); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: // No split buffer in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=2 The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=3 The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg 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 s_axilite port=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragm...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=3 The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL_BUS #pragma HLS...
The right code snippet is: // No array partitioning in the code
'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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=dec_out bundle=CTRL...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=3 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=in bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=enc_out bundle=CTRL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=shift_reg complete dim=3 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: // No array partitioning in the code
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: Q = D2[0]; The right code snippet is: Q = D2;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: Q = D2;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: Q = D2[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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: Q = D2[0]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: Q = D2;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: bool Q = false; The right code snippet is: bool Q;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: bool Q;
'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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: bool Q = false; 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: bool Q = false; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool Q;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: Q = D1 << 33; The right code snippet is: Q = D1 << 5;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: Q = D1 << 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: Q = D1 << 33; 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: Q = D1 << 33; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: Q = D1 << 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: while (CE == true) {} The right code snippet is: while (1) {}
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: while (1) {}
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: while (CE == true) {} The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: while (CE == true) {} The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (1) {}
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: signed char D1; The right code snippet is: unsigned char D1;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: unsigned char D1;
'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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: signed char D1; 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: signed char D1; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: unsigned char D1;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: Q = D1; for (int i = 0; i < 10; i++) { Q = D1; } The right code snippet is: for (int i = 0; i < 10; i++) { Q = D1; }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: for (int i = 0; i < 10; i++) { Q = D1; }
'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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: Q = D1; for (int i = 0; i < 10; i++) { Q = D1; } 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: Q = D1; for (int i = 0; i < 10; i++) { Q = D1; } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; i++) { Q = D1; }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: bool Q = 0; The right code snippet is: bool Q;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: bool Q;
'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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: bool Q = 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: bool Q = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool Q;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragm...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none port=C #pragma HLS...
The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none port=D2 #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); 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: void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) { #pragma HLS INTERFACE ap_none port=D1 #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1)); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'BUF'