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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X 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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X 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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=X complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=X 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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS DATAFLOW
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none po... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=re... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A
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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none por... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=ret... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ct... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A
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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctr... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
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
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=A
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=A
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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=A
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS PIPELINE II=2
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#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=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS PIPELINE II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none p... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS UNROLL_FACTOR=2
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_ctrl_none port=r... |
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) { | '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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#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_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS INTERFACE ap_none port=C
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y) {
#pragma HLS UNROLL_FACTOR=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
void priority_encoder(bool A, bool B, bool C, bool D, ap_uint<2> &X, bool &Y... | '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 nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
Y = ~(A | B | C | D);
The right code snippet is:
Y = ~(A | B | C); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
Y = ~(A | B | C); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
Y = ~(A | B | C | D);
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
Y = ~(A | B | C | D);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
Y = ~(A | B | C); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
bool nor_out_Y = true;
The right code snippet is:
bool nor_out_Y; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
bool nor_out_Y; | '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 nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
bool nor_out_Y = true;
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 nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
bool nor_out_Y = true;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool nor_out_Y; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
Y = ~(A | B | (C << 4));
The right code snippet is:
Y = ~(A | B | C); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
Y = ~(A | B | C); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
Y = ~(A | B | (C << 4));
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
Y = ~(A | B | (C << 4));
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
Y = ~(A | B | C); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
while (i < 10) {
// some code here
}
The right code snippet is:
while (1) {
// some code here
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
while (1) {
// some code here
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
while (i < 10) {
// some code here
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
while (i < 10) {
// some code here
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while (1) {
// some code here
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
int nor_out_Y;
The right code snippet is:
bool nor_out_Y; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
bool nor_out_Y; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
int nor_out_Y;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
int nor_out_Y;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool nor_out_Y; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// some code here
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
bool nor_out_Y = 0;
The right code snippet is:
bool nor_out_Y; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
bool nor_out_Y; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
bool nor_out_Y = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
bool nor_out_Y = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool nor_out_Y; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, A);
The right code snippet is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, nor_out_Y); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, nor_out_Y); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, A);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, A);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
nor_gate(nor_out_Y, A, B, C);
buffer(Y, nor_out_Y); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=A 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=A 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=3 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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A block factor=3 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | '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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | '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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=A cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=Y
The right code snippet is:
#pragma HLS interface ap_none port=Y | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=Y | '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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=Y
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=Y
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=Y | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A offset=slave bundle=gmem1
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A offset=slave bundle=gmem1
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=A offset=slave bundle=gmem1
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS interface bram port=A
The right code snippet is:
#pragma HLS interface ap_none port=A | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=A | '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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS interface bram port=A
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS interface bram port=A
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
The right code snippet is:
#pragma HLS interface ap_none port=A | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=A | '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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=A
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=A | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragm... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B
#pragma HLS... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE ap_none port=B... |
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:
```
void nor_buf(bool Y, bool A, bool B, bool C) {
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A
... |
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 | 'MLP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.