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
#pragma HLS INTERFACE s_axilite port=data_in
#pragma HLS INTERFACE s_axilite port=rd_clk
#pragm... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=data_in
#pragma HLS INTERFACE s_axilite port=rd_clk
#pragma HLS... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=data_in
#pragma HLS INTERFACE s_axilite port=rd... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=data_in
#p... |
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:
void dff_with_enable_and_set(bool E, bool S, bool C, bool D, bool& Q) {
#pragma HLS INTERFACE ap_none port=E,S,C,D,Q
#pragma HLS INTERFACE ap_ctrl_none port=return
static ... |
The wrong part of the code is:
static bool Q_reg;
Bug_type:
'INF'
The right code snippet is:
static bool Q_reg = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void dff_with_enable_and_set(bool E, bool S, bool C, bool D, bool& Q) {
#pragma HLS INTERFACE ap_none port=E,S,C,D,Q
#pragma HLS INTERFACE ap_ctrl_none port=return
static bool ... |
The right code snippet is:
static bool Q_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:
void dff_with_enable_and_set(bool E, bool S, bool C, bool D, bool& Q) {
#pragma HLS INTERFACE ap_none port=E,S,C,D,Q
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The wrong part of the code is:
static bool Q_reg;
Bug_type:
'INF'
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 dff_with_enable_and_set(bool E, bool S, bool C, bool D, bool& Q) {
#pragma HLS INTERFACE ap_none port=E,S,C,D,Q
#pragma HLS... |
The wrong part of the code is:
static bool Q_reg;
Bug_type:
'INF'
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static bool Q_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 ap_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A;
break;
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
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 ap_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A;
break;
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A;
break;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, bool E, bool F;
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, bool E, bool F;
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,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
bool A, bool B, bool C, bool D, bool E, bool F;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A << 10;
break;
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A << 10;
break;
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x27:
case 0x26:
F = A << 10;
break;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
while(1) {
F = A;
}
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
while(1) {
F = A;
}
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
while(1) {
F = A;
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = (int)A;
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
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 ap_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = (int)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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = (int)A;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
case 0x12:
F = A;
break;
case 0x13:
F = A;
break;
case 0x17:
F = A;
break;
case 0x16:
F = A;
break;
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A;
break; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
case 0x12:
F = A;
break;
case 0x13:
F = A;
break;
case 0x17:
F = A;
break;
case 0x16:
F = A;
break;
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
case 0x12:
F = A;
break;
case 0x13:
F = A;
break;
case 0x17:
F = A;
break;
case 0x16:
F = A;
break;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
case 0x12:
case 0x13:
case 0x17:
case 0x16:
F = A... | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
bool A = 0, bool B = 0, bool C = 0, bool D = 0, bool E = 0, bool &F = 0;
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
bool A = 0, bool B = 0, bool C = 0, bool D = 0, bool E = 0, bool &F = 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 ap_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
bool A = 0, bool B = 0, bool C = 0, bool D = 0, bool E = 0, bool &F = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool A, bool B, bool C, bool D, bool E, bool &F; | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
#pragma H... |
The wrong part of the code is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
The right code snippet is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) { | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
#pragma HLS PI... |
The right code snippet is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) { | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
... |
The wrong part of the code is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F, bool &G) {
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) { | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F cyclic dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F cyclic dim=0
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete factor=2 dim=0
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete factor=2 dim=0
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete factor=2 dim=0
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=1
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=F complete dim=0 | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
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_fifo port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,C,D,E
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_fifo port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_fifo port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,C,D,E
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_fifo port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,C,D,E
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELI... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem0
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem | '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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem0
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_none port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, b... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem0
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=A offset=slave bundle=gmem | '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 bram port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE ... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,C,D,E
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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 bram port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE II=1
... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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 bram port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,C,D,E
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE bram port=A,B,C,D,E
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,C,D,E
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_vld port=A,B,C,D,E
##
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIP... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,C,D,E
##
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_vld port=A,B,C,D,E
##
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pragma HLS PIPELINE... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_vld port=A,B,C,D,E
##
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C, bool D, bool E, bool &F) {
#pra... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,C,D,E
##
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_vld port=A,B,C,D,E
##
#pragma HLS INTERFACE ap_ctrl_none port=return
void karnaugh_map(bool A, bool B, bool C... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,C,D,E
##
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,C,D,E | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
mem[ADDR+DEPTH] = DATA_IN;
The right code snippet is:
mem[ADDR] = DATA_IN; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
mem[ADDR] = DATA_IN; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
mem[ADDR+DEPTH] = DATA_IN;
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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
mem[ADDR+DEPTH] = DATA_IN;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
mem[ADDR] = DATA_IN; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
data_t mem[DEPTH] = {0};
The right code snippet is:
data_t mem[DEPTH]; | '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=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
data_t mem[DEPTH]; | '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=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
data_t mem[DEPTH] = {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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
data_t mem[DEPTH] = {0};
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
data_t mem[DEPTH]; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
mem[ADDR << WIDTH] = DATA_IN;
The right code snippet is:
mem[ADDR] = DATA_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 ap_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
mem[ADDR] = DATA_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 ap_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
mem[ADDR << WIDTH] = DATA_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 ap_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
mem[ADDR << WIDTH] = DATA_IN;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
mem[ADDR] = DATA_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 ap_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do something
}
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do something
}
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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do something
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_int<8> ADDR;
The right code snippet is:
ap_uint<8> ADDR; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
ap_uint<8> ADDR; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
ap_int<8> ADDR;
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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
ap_int<8> ADDR;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<8> ADDR; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; i < DEPTH/2; i++) {
// do something
// do something more
}
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
for (int i = 0; i < DEPTH/2; i++) {
// do something
// do something more
}
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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
for (int i = 0; i < DEPTH/2; i++) {
// do something
// do something more
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < DEPTH; i++) {
// do something
} | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFA... |
The wrong part of the code is:
data_t mem[DEPTH] = {0};
The right code snippet is:
data_t mem[DEPTH]; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma HLS INTERFACE ap... |
The right code snippet is:
data_t mem[DEPTH]; | '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_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma HLS INTERFACE ap_none port=WE
#pragma ... |
The wrong part of the code is:
data_t mem[DEPTH] = {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 ap_none port=DATA_IN
#pragma HLS INTERFACE ap_none port=DATA_OUT
#pragma HLS INTERFACE ap_none port=ADDR
#pragma H... |
The wrong part of the code is:
data_t mem[DEPTH] = {0};
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
data_t mem[DEPTH]; | 'ZERO' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.