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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
-1 ;
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(... | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ; | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
-1 ;
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
-1 ;
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
... | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
in_inv = ~in.read() << 5;
The right code snippet is:
in_inv = ~in.read(); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
in_inv = ~in.read(); | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
in_inv = ~in.read() << 5;
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
in_inv = ~in.read() << 5;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
in_inv = ~in.read(); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
pos_temp = (signed)in_inv[3] ? 3 :
(signed)in_inv[2] ? 2 :
(signed)in_inv[1] ? 1 :
(signed)in_inv[0] ? 0 :
0 ;
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(... | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
pos_temp = (signed)in_inv[3] ? 3 :
(signed)in_inv[2] ? 2 :
(signed)in_inv[1] ? 1 :
(signed)in_inv[0] ? 0 :
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
pos_temp = (signed)in_inv[3] ? 3 :
(signed)in_inv[2] ? 2 :
(signed)in_inv[1] ? 1 :
(signed)in_inv[0] ? 0 :
0 ;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
pos_temp =... | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
#pragma HLS dataflow
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]... | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ; | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
#pragma HLS dataflow
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS dataflow
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
pos_temp = (in_inv[... | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=in
#pragma HLS INTERFACE ap_fifo port=pos
The right code snippet is:
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=in
#pragma HLS INTERFACE ap_fifo port=pos
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=in
#pragma HLS INTERFACE ap_fifo port=pos
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
#pragma HLS pipeline II=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_i... | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ; | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
#pragma HLS pipeline II=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS pipeline II=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
pos_temp = (in... | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
... |
The wrong part of the code is:
#pragma HLS unroll factor=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in... | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis port=pos
int ... |
The right code snippet is:
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ; | '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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port=in
#pragma HLS INTERFACE axis po... |
The wrong part of the code is:
#pragma HLS unroll factor=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
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:
```c++
#include <hls_stream.h>
void priority_encoder(hls::stream<int> &in, hls::stream<int> &pos) {
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS unroll factor=2
pos_temp = (in_inv[3]) ? 3 :
(in_inv[2]) ? 2 :
(in_inv[1]) ? 1 :
(in_inv[0]) ? 0 :
0 ;
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
pos_temp = ... | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
A1_not = !A1[1];
The right code snippet is:
A1_not = !A1; | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
A1_not = !A1; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
A1_not = !A1[1];
The high-level-synthesis bug type of the code is: OOB | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
A1_not = !A1[1];
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
A1_not = !A1; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not, C;
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not, C;
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not, C;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
A1_not = A1 << 2;
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
A1_not = A1 << 2;
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
A1_not = A1 << 2;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
int32_t A1_not = !A1;
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int32_t A1_not = !A1;
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int32_t A1_not = !A1;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
A1_not = !A1; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
for (int i = 0; i < n/2; i++) {
The right code snippet is:
for (int i = 0; i < n; 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
for (int i = 0; i < n; 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; i < n/2; 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (int i = 0; i < n/2; i++) {
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
for (int i = 0; i < n; 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
bool A1_not = 0, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not;
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool A1_not = 0, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not;
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
bool A1_not = 0, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
bool A1_not, A2_not, A1_and_A2, A1_and_A2_not, B1_and_A1_and_A2_not; | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1));
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1));
The high-level-synthesis bug type of the code is: BUF | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
memcpy(buffer1, buffer2 + sizeof(buffer1), sizeof(buffer1));
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | BUF |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=A1 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=A1 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:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
The high-level-synthesis bug type of the code is: DFP | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS DATAFLOW II=2
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
#pragma HLS DATAFLOW | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_vld port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB
... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A1
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A1
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=mem offset=64
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=mem | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=mem | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=mem offset=64
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=50 port=mem offset=64
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=50 port=mem | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=V... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB
#p... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A1
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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_fifo port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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_fifo port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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_fifo port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
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_fifo port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A1
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A1 | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
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_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < n; i++) {
The right code snippet is:
for (int i = 0; i < n; i++) { | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=VPB... |
The right code snippet is:
for (int i = 0; i < n; i++) { | 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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < n; i++) {
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=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS UNROLL
for (int i = 0; i < n; i++) {
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
for (int i = 0; i < n; i++) { | ILNU |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.