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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS array_partition variable=n cyclic factor=3
The right code snippet is:
#pragma HLS array_partition variable=n complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS array_partition variable=n 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS array_partition variable=n 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS array_partition variable=n cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=n complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS array_partition variable=n cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=n complete dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS array_partition variable=n complete 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS array_partition variable=n 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS array_partition variable=n 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=n complete 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_none port=out
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_vld port=out | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_vld port=out | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_none port=out
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_none port=out
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_no... | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi port=ftw
#pragma HLS interface s_axilite port=out
The right code snippet is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi port=ftw
#pragma HLS interface m_axi port=out | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi port=ftw
#pragma HLS interface m_axi 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi port=ftw
#pragma HLS interface s_axilite 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi port=ftw
#pragma HLS interface s_axilite port=out
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=ctrl
#pragma HLS interface m_axi po... | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ctrl
#pragma HLS interface ap_fifo port=ftw
#pragma HLS interface ap_fifo port=out
The right code snippet is:
#pragma HLS interface axis port=ctrl
#pragma HLS interface axis port=ftw
#pragma HLS interface axis port=out | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS interface axis port=ctrl
#pragma HLS interface axis port=ftw
#pragma HLS interface axis 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ctrl
#pragma HLS interface ap_fifo port=ftw
#pragma HLS interface ap_fifo 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ctrl
#pragma HLS interface ap_fifo port=ftw
#pragma HLS interface ap_fifo port=out
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=ctrl
#pragma HLS interface axis por... | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_vld port=ftw
#pragma HLS interface ap_none port=out
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_vld port=out | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_none port=ftw
#pragma HLS interface ap_vld 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_vld port=ftw
#pragma HLS interface ap_none 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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ctrl
#pragma HLS interface ap_vld port=ftw
#pragma HLS interface ap_none port=out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=ctrl
#pragma HLS interface ap_none... | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum outpu... |
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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Minimum output fre... |
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:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency in MHz
const int F_OUT_MIN = 10; // Mi... |
The wrong part of the code is:
#pragma HLS pipeline II=2
##---
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int F_REF = 10; // Reference clock frequency in MHz
const int F_OUT_MAX = 1000; // Maximum output frequency i... |
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:
```
void flag_domain_crossing_ce(
hls::stream<bool>& CLK_A,
hls::stream<bool>& CLK_A_CE,
hls::stream<bool>& CLK_B,
hls::stream<bool>& CLK_B_CE,
hls::stream<bool>& F... |
The wrong part of the code is:
bool FLAG_TOGGLE_CLK_A;
Bug_type:
INF
The right code snippet is:
bool FLAG_TOGGLE_CLK_A = false; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flag_domain_crossing_ce(
hls::stream<bool>& CLK_A,
hls::stream<bool>& CLK_A_CE,
hls::stream<bool>& CLK_B,
hls::stream<bool>& CLK_B_CE,
hls::stream<bool>& FLAG_I... |
The right code snippet is:
bool FLAG_TOGGLE_CLK_A = false; | 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 flag_domain_crossing_ce(
hls::stream<bool>& CLK_A,
hls::stream<bool>& CLK_A_CE,
hls::stream<bool>& CLK_B,
hls::stream<bool>& CLK_B_CE,
hls::stre... |
The wrong part of the code is:
bool FLAG_TOGGLE_CLK_A;
Bug_type:
INF
The high-level-synthesis bug type of the code is: INIT | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void flag_domain_crossing_ce(
hls::stream<bool>& CLK_A,
hls::stream<bool>& CLK_A_CE,
hls::stream<bool>& CLK_B,
hls::... |
The wrong part of the code is:
bool FLAG_TOGGLE_CLK_A;
Bug_type:
INF
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
bool FLAG_TOGGLE_CLK_A = false; | 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
if (A[3:0] == B[3:0]) {
The right code snippet is:
if (A[2:0] == B[2:0]) { | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
if (A[2:0] == B[2:0]) { | '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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
if (A[3:0] == B[3:0]) {
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
if (A[3:0] == B[3:0]) {
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (A[2:0] == B[2:0]) { | '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 comparator_3bit (int A[3], int B[3], bool EQ;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
bool EQ;
The right code snippet is:
bool &EQ | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool EQ;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
bool &EQ | '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 comparator_3bit (int A[3], int B[3], bool EQ;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
bool EQ;
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 comparator_3bit (int A[3], int B[3], bool EQ;) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
bool EQ;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool &EQ | '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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
if (A[2:3] == B[2:3]) {
The right code snippet is:
if (A[2:0] == B[2:0]) { | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
if (A[2:0] == B[2: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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
if (A[2:3] == B[2:3]) {
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
if (A[2:3] == B[2:3]) {
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
if (A[2:0] == B[2: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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
while (true) {
The right code snippet is:
if (A[2:0] == B[2:0]) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
if (A[2:0] == B[2: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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
while (true) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
while (true) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (A[2:0] == B[2:0]) { | '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 comparator_3bit (int A[3], int B[3], signed bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pra... |
The wrong part of the code is:
signed bool &EQ
The right code snippet is:
bool &EQ | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], signed bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma H... |
The right code snippet is:
bool &EQ | '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 comparator_3bit (int A[3], int B[3], signed bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis ... |
The wrong part of the code is:
signed bool &EQ
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 comparator_3bit (int A[3], int B[3], signed bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ax... |
The wrong part of the code is:
signed bool &EQ
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool &EQ | '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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
for (int i = 0; i < 2; i++) {
The right code snippet is:
for (int i = 0; i < 3; i++) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
for (int i = 0; i < 3; 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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
for (int i = 0; i < 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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
for (int i = 0; i < 2; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 3; 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:
```
void comparator_3bit (int A[3] = {0}, int B[3] = {0}, bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B... |
The wrong part of the code is:
int A[3] = {0}, int B[3] = {0}
The right code snippet is:
int A[3], int B[3] | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3] = {0}, int B[3] = {0}, bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pra... |
The right code snippet is:
int A[3], int B[3] | '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 comparator_3bit (int A[3] = {0}, int B[3] = {0}, bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int A[3] = {0}, int B[3] = {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 comparator_3bit (int A[3] = {0}, int B[3] = {0}, bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFA... |
The wrong part of the code is:
int A[3] = {0}, int B[3] = {0}
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
int A[3], int B[3] | '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 comparator_3bit (int A[1], int B[1], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
int A[1], int B[1]
The right code snippet is:
int A[3], int B[3] | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[1], int B[1], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
int A[3], int B[3] | '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 comparator_3bit (int A[1], int B[1], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
int A[1], int B[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:
```
void comparator_3bit (int A[1], int B[1], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
int A[1], int B[1]
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
int A[3], int B[3] | '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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic dim=1
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS array_partition variable=A cyclic dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=2
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=2
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=3
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=3
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS array_partition variable=A complete dim=3
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=A complete 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A bundle=DATA
#pragma HLS INTERFACE axis port=B... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A bundle=DATA
The right code snippet is:
#pragma HLS INTERFACE axis port=A | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A bundle=DATA
#pragma HLS INTERFACE axis port=B
#pra... |
The right code snippet is:
#pragma HLS INTERFACE axis 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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A bundle=DATA
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A bundle=DATA
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS INTERFACE axis port=A bundle=DATA
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE axis 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:
```
void comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=A
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port... |
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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A
The right code snippet is:
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE bram port=A
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE bram port... |
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 axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE axis port=B
#pragma ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=A
The right code snippet is:
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE axis port=B
#pragma HLS I... |
The right code snippet is:
#pragma HLS INTERFACE axis 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=A
#pragma HLS INTERFACE axis port... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none 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 comparator_3bit (int A[3], int B[3], bool &EQ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=A
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE axis port=A | 'AMS' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.