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_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
unsigned int count;
The right code snippet is:
static unsigned int count = 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 ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
static unsigned int count = 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 ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
unsigned int count;
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
unsigned int count;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static unsigned int count = 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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
count = count >> 10;
The right code snippet is:
count = count >> 2; | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
count = count >> 2; | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
count = count >> 10;
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
count = count >> 10;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
count = count >> 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:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The right code snippet is:
for (int i = 0; i < n; i++) { | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
for (int i = 0; i < n; i++) { | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < n; 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:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
int count;
The right code snippet is:
unsigned int count; | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
unsigned int count; | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
int count;
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
int count;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
unsigned int count; | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
inverter_inputs[0] = inverter_outputs[0];
inverter_inputs[1] = inverter_outputs[1];
inverter_inputs[2] = inverter_outputs[2];
inverter_inputs[3] = inverter_outputs[3];
inverter_inputs[4] = inverter_outputs[4];
The right code snippet is:
for (int i = 1; i < (n-1); i++) {
... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i-1];
} | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
inverter_inputs[0] = inverter_outputs[0];
inverter_inputs[1] = inverter_outputs[1];
inverter_inputs[2] = inverter_outputs[2];
inverter_inputs[3] = inverter_outputs[3];
inverter_inputs[4] = inverter_outputs[4];
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
inverter_inputs[0] = inverter_outputs[0];
inverter_inputs[1] = inverter_outputs[1];
inverter_inputs[2] = inverter_outputs[2];
inverter_inputs[3] = inverter_outputs[3];
inverter_inputs[4] = inverter_outputs[4];
The high-level-synthesis bug type of the code is: 'MLU'
The ri... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
static unsigned int count = 1;
The right code snippet is:
static unsigned int count = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
static unsigned int count = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
static unsigned int count = 1;
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
static unsigned int count = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static unsigned int count = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i+1];
}
The right code snippet is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i-1];
} | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i-1];
} | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i+1];
}
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i+1];
}
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
for (int i = 1; i < (n-1); i++) {
inverter_inputs[i] = inverter_outputs[i-1];
} | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION variable=invert... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION variable=inverter_inputs complete | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION variable=invert... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION variable=inverter_inputs complete | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic factor=3
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic dim=1 factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic dim=1 factor=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION var... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs complete
#pragma HLS ARRAY_PARTITION variable=inverter_inputs complete | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic dim=1 factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic dim=1 factor=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=inverter_outputs cyclic dim=1 factor=2
#pragma HLS ARRAY_PARTITION variable=inverter_inputs cyclic dim=1 factor=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variab... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
void RingOscillatorInterface_top(bool clk, bool &out) {
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_none port=clk
RingOscillatorInterface();
counter(clk, out);
}
The right code snippet is:
void RingOscillatorInterface_top(bool clk, boo... | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
void RingOscillatorInterface_top(bool clk, bool &out) {
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=out
RingOscillatorInterface();
counter(clk, out);
} | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
void RingOscillatorInterface_top(bool clk, bool &out) {
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_none port=clk
RingOscillatorInterface();
counter(clk, out);
}
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
void RingOscillatorInterface_top(bool clk, bool &out) {
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_none port=clk
RingOscillatorInterface();
counter(clk, out);
}
The high-level-synthesis bug type of the code is: 'DFP'
The right code sn... | '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_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void R... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return | '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_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingOs... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return | '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_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
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_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inver... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return | '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 m_axi port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void Ri... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=out
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | '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 m_axi port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingOsc... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | '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 m_axi port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=out
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 m_axi port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool invert... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=out
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | '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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void Rin... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=out
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE bram port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingOsci... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE bram port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n]... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=out
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE bram port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverte... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=out
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_memory port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
voi... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=out
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_memory port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void Rin... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_memory port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inpu... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=out
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_memory port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool in... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=out | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
for (int i = 0; i <= 16; i++) {
if (data_in[i]) {
cnt++;
}
}
The right code snippet is:
for (int i = 0; i < 16; i++) {
if (data_in[i]) {
cnt++;
}
} | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
for (int i = 0; i < 16; i++) {
if (data_in[i]) {
cnt++;
}
} | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; i <= 16; i++) {
if (data_in[i]) {
cnt++;
}
}
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; i <= 16; i++) {
if (data_in[i]) {
cnt++;
}
}
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
for (int i = 0; i < 16; i++) {
if (data_in[i]) {
cnt++;
}
} | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
ap_uint<4> cnt;
The right code snippet is:
ap_uint<4> cnt = 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
ap_uint<4> cnt = 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_uint<4> cnt;
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_uint<4> cnt;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<4> cnt = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
shift_reg = (shift_reg.range(16,0), 0);
The right code snippet is:
shift_reg = (shift_reg.range(14,0), 0); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
shift_reg = (shift_reg.range(14,0), 0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
shift_reg = (shift_reg.range(16,0), 0);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
shift_reg = (shift_reg.range(16,0), 0);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
shift_reg = (shift_reg.range(14,0), 0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
for (int i = 0; ; i++) {
The right code snippet is:
for (int i = 0; i < 16; i++) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
for (int i = 0; i < 16; i++) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; ; i++) {
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; ; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 16; 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
ap_int<16> shift_reg = 0;
The right code snippet is:
ap_uint<16> shift_reg = 0; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
ap_uint<16> shift_reg = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_int<16> shift_reg = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_int<16> shift_reg = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<16> shift_reg = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
for (int i = 0; i < 8; i++) {
The right code snippet is:
for (int i = 0; i < 16; i++) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
for (int i = 0; i < 16; i++) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
for (int i = 0; i < 8; i++) {
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS UNROLL factor=2
for (int i = 0; i < 8; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 16; i++) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
ap_uint<16> shift_reg;
The right code snippet is:
ap_uint<16> shift_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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
ap_uint<16> shift_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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_uint<16> shift_reg;
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_uint<16> shift_reg;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<16> shift_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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
shift_reg = data_in.range(31,16);
The right code snippet is:
shift_reg = data_in; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
shift_reg = data_in; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
shift_reg = data_in.range(31,16);
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
shift_reg = data_in.range(31,16);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
shift_reg = data_in; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in block factor=2 dim=1
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in block factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 dim=1 | 'APT' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.