instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS pipeline II=3
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS... |
The wrong part of the code is:
#pragma HLS pipeline II=3
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS pipeline II=3
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS INTERFACE ap_none port=rd
#pragma HLS... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=resetq
#pragma HLS INTERFACE ap_none port=uart_rx
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=mode
#pragma HLS INTERFACE ap_none port=cin
#pragma HLS INTERFACE ap_none p... |
The wrong part of the code is:
ap_uint<WIDTH+1> C = 0;
Bug_type:
'OOB'
The right code snippet is:
ap_uint<WIDTH+1> C; | '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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=mode
#pragma HLS INTERFACE ap_none port=cin
#pragma HLS INTERFACE ap_none port=r... |
The right code snippet is:
ap_uint<WIDTH+1> C; | '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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=mode
#pragma HLS INTERFACE ap_none port=cin
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<WIDTH+1> C = 0;
Bug_type:
'OOB'
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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=mode
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_uint<WIDTH+1> C = 0;
Bug_type:
'OOB'
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<WIDTH+1> C; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 4, sel_reg.range(4,0)*5+1);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 4, sel_reg.range(9,5)*5+1);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 4, sel_reg.range... | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 4, sel_reg.range(4,0)*5);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 4, sel_reg.range(9,5)*5);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 4, sel_reg.range(14,10)*... | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 4, sel_reg.range(4,0)*5+1);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 4, sel_reg.range(9,5)*5+1);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 4, sel_reg.range... | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 4, sel_reg.range(4,0)*5+1);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 4, sel_reg.range(9,5)*5+1);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 4, sel_reg.range... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
ap_uint<32> fn_init_value_reg;
The right code snippet is:
ap_uint<32> fn_init_value_reg = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
ap_uint<32> fn_init_value_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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
The wrong part of the code is:
ap_uint<32> fn_init_value_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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
The wrong part of the code is:
ap_uint<32> fn_init_value_reg;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<32> fn_init_value_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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 8, sel_reg.range(4,0)*5);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 8, sel_reg.range(9,5)*5);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 8, sel_reg.range(14,... | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 4, sel_reg.range(4,0)*5);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 4, sel_reg.range(9,5)*5);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 4, sel_reg.range(14,10)*... | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 8, sel_reg.range(4,0)*5);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 8, sel_reg.range(9,5)*5);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 8, sel_reg.range(14,... | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
The wrong part of the code is:
boolean_o_out.range(4,0) = datapin_reg.range(sel_reg.range(4,0)*5 + 8, sel_reg.range(4,0)*5);
boolean_o_out.range(9,5) = datapin_reg.range(sel_reg.range(9,5)*5 + 8, sel_reg.range(9,5)*5);
boolean_o_out.range(14,10) = datapin_reg.range(sel_reg.range(14,10)*5 + 8, sel_reg.range(14,... | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
while(1){}
The right code snippet is:
None | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
None | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
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:
None | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
int8_t boolean_o_out = 0;
The right code snippet is:
ap_uint<5> boolean_o_out = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
ap_uint<5> boolean_o_out = 0; | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
The wrong part of the code is:
int8_t boolean_o_out = 0;
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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
The wrong part of the code is:
int8_t boolean_o_out = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<5> boolean_o_out = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> ... |
The wrong part of the code is:
for(int i=0; i<5; i++){
boolean_o_out.range(i*5+4, i*5) = datapin_reg.range(sel_reg.range(i*5+4, i*5)*5 + 4, sel_reg.range(i*5+4, i*5)*5);
}
The right code snippet is:
None | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap_uint<32>> &fn_i... |
The right code snippet is:
None | '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:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start reconfigure CFGLUT
hls::stream<ap... |
The wrong part of the code is:
for(int i=0; i<5; i++){
boolean_o_out.range(i*5+4, i*5) = datapin_reg.range(sel_reg.range(i*5+4, i*5)*5 + 4, sel_reg.range(i*5+4, i*5)*5);
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
// Finite State Machine
void boolean_fsm(
hls::stream<bool> &clk, // clock
hls::stream<bool> &start, // start ... |
The wrong part of the code is:
for(int i=0; i<5; i++){
boolean_o_out.range(i*5+4, i*5) = datapin_reg.range(sel_reg.range(i*5+4, i*5)*5 + 4, sel_reg.range(i*5+4, i*5)*5);
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
None | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {... |
The wrong part of the code is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val = 0, cos_val, sin_out, cos_out, i_out, q_out;
The right code snippet is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val, cos_val;
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_out, cos_out;
static ap_fixed<11, 1, AP_RND,... | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The right code snippet is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val, cos_val;
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_out, cos_out;
static ap_fixed<11, 1, AP_RND, AP_SAT> i_out, q_out; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The wrong part of the code is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val = 0, cos_val, sin_out, cos_out, i_out, q_out;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int... |
The wrong part of the code is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val = 0, cos_val, sin_out, cos_out, i_out, q_out;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_fixed<11, 1, AP_RND, AP_SAT> sin_val, cos_val;
static ap_fixed<11, 1, AP_RND,... | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {... |
The wrong part of the code is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/8192.0);
cos_val = cos((2.0*M_PI)*(double)phs.read()/8192.0);
The right code snippet is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/4096.0);
cos_val = cos((2.0*M_PI)*(double)phs.read()/4096.0); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The right code snippet is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/4096.0);
cos_val = cos((2.0*M_PI)*(double)phs.read()/4096.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:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The wrong part of the code is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/8192.0);
cos_val = cos((2.0*M_PI)*(double)phs.read()/8192.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:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int... |
The wrong part of the code is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/8192.0);
cos_val = cos((2.0*M_PI)*(double)phs.read()/8192.0);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
sin_val = sin((2.0*M_PI)*(double)phs.read()/4096.0);
cos_val = cos((2.... | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {... |
The wrong part of the code is:
if (reset) {
sin_val = 0;
cos_val = 0;
sin_out = 0;
cos_out = 0;
i_out = 0;
q_out = 0;
out.write(0);
} else {
while(true){}
The right code snippet is:
if (reset) {
sin_val = 0;
cos_val = 0... | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The right code snippet is:
if (reset) {
sin_val = 0;
cos_val = 0;
sin_out = 0;
cos_out = 0;
i_out = 0;
q_out = 0;
out.write(0);
} else { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The wrong part of the code is:
if (reset) {
sin_val = 0;
cos_val = 0;
sin_out = 0;
cos_out = 0;
i_out = 0;
q_out = 0;
out.write(0);
} else {
while(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:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int... |
The wrong part of the code is:
if (reset) {
sin_val = 0;
cos_val = 0;
sin_out = 0;
cos_out = 0;
i_out = 0;
q_out = 0;
out.write(0);
} else {
while(true){}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet i... | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {... |
The wrong part of the code is:
sin_out = (ap_uint<12>)sin_val * in.read();
The right code snippet is:
sin_out = sin_val * in.read(); | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The right code snippet is:
sin_out = sin_val * in.read(); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The wrong part of the code is:
sin_out = (ap_uint<12>)sin_val * in.read();
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int... |
The wrong part of the code is:
sin_out = (ap_uint<12>)sin_val * in.read();
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
sin_out = sin_val * in.read(); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {... |
The wrong part of the code is:
out.write(shf_90 ? i_out : q_out);
The right code snippet is:
out.write(shf_90 ? q_out : i_out); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The right code snippet is:
out.write(shf_90 ? q_out : i_out); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The wrong part of the code is:
out.write(shf_90 ? i_out : q_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:
#include <ap_fixed.h>
void tuner_slice_1k(
hls::stream<ap_int<10> >& in,
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int... |
The wrong part of the code is:
out.write(shf_90 ? i_out : q_out);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
out.write(shf_90 ? q_out : i_out); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in cyclic factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool ... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=2
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in cyclic factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in cyclic factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out... |
The wrong part of the code is:
#pragma HLS array_partition variable=in 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:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in cyclic factor=2
hls::stream<ap_uint<12> >& p... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in block factor=3
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool r... |
The wrong part of the code is:
#pragma HLS array_partition variable=in block factor=3
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in block factor=3
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in block factor=3
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,... |
The wrong part of the code is:
#pragma HLS array_partition variable=in block 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:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in block factor=3
hls::stream<ap_uint<12> >& ph... |
The wrong part of the code is:
#pragma HLS array_partition variable=in block factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in dim=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=in dim=2
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in dim=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in dim=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=in dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS array_partition variable=in dim=2
hls::stream<ap_uint<12> >& phs,
hl... |
The wrong part of the code is:
#pragma HLS array_partition variable=in dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS dataflow
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
#pra... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS dataflow
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
#pragma H... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS dataflow
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
)... |
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:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS dataflow
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& o... |
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:
hls::stream<ap_int<10> >& in, | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_fifo port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool sh... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=in
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_fifo port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_fifo port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=in
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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_fifo port=in
hls::stream<ap_uint<12> >& phs,
hls::strea... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=in
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface m_axi port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS interface m_axi port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) ... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface m_axi port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in
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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface m_axi port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface s_axilite port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool ... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=in
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS interface s_axilite port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_9... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface s_axilite port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=in
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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface s_axilite port=in
hls::stream<ap_uint<12> >& phs,
hls::str... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_vld port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_vld port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
)... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_vld port=in
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in
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_fixed.h>
void tuner_slice_1k(
#pragma HLS interface ap_vld port=in
hls::stream<ap_uint<12> >& phs,
hls::stream... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS pipeline II=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS pipeline II=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
#pra... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS pipeline II=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf... |
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_fixed.h>
void tuner_slice_1k(
#pragma HLS pipeline II=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10>... |
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:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS unroll factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS unroll factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool shf_90
) {
#p... |
The right code snippet is:
hls::stream<ap_int<10> >& in, | '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_fixed.h>
void tuner_slice_1k(
#pragma HLS unroll factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<10> >& out,
bool reset,
bool s... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
void tuner_slice_1k(
#pragma HLS unroll factor=2
hls::stream<ap_uint<12> >& phs,
hls::stream<ap_int<1... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
hls::stream<ap_int<10> >& in, | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS IN... |
The wrong part of the code is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_rst_i, en_out_data, en_out_done, en_out_valid, m_src_last, m_src_getn[2], fo_full, src_empty);
The right code snippet is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_rst_i, en_out_data, en_out_done, en_out_valid, m_src_last, m... | '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=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pragma HLS INTERFA... |
The right code snippet is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_rst_i, en_out_data, en_out_done, en_out_valid, m_src_last, m_src_getn, fo_full, src_empty); | '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=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=m_reset bundle=CTRL_BUS
#pr... |
The wrong part of the code is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_rst_i, en_out_data, en_out_done, en_out_valid, m_src_last, m_src_getn[2], fo_full, src_empty);
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=wb_clk_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axi... |
The wrong part of the code is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_rst_i, en_out_data, en_out_done, en_out_valid, m_src_last, m_src_getn[2], fo_full, src_empty);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
encode(dc(5) & m_enable, m_src, wb_clk_i, wb_... | 'OOB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.