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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'INF' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
for (int i = 0; i < 10; 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
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 < 10; 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_int<4> eq_temp = (A == B);
ap_int<4> gt_temp = (A > B);
eq = eq_temp.and_reduce();
gt = gt_temp.and_reduce();
The right code snippet is:
ap_uint<4> eq_temp = (A == B);
ap_uint<4> gt_temp = (A > B);
eq = eq_temp.and_reduce();
gt = gt_temp.and_reduce(); | 'USE' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> eq_temp = (A == B);
ap_uint<4> gt_temp = (A > B);
eq = eq_temp.and_reduce();
gt = gt_temp.and_reduce(); | '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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_int<4> eq_temp = (A == B);
ap_int<4> gt_temp = (A > B);
eq = eq_temp.and_reduce();
gt = gt_temp.and_reduce();
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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_int<4> eq_temp = (A == B);
ap_int<4> gt_temp = (A > B);
eq = eq_temp.and_reduce();
gt = gt_temp.and_reduce();
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<4> eq_temp = (A == B);
ap_uint<4> gt_temp = (A > B);
eq = eq_tem... | 'USE' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
for (int i = 0; i < 9; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
for (int i = 0; i < 10; 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
for (int i = 0; i < 9; 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
for (int i = 0; i < 9; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_uint<4> A = 0;
The right code snippet is:
ap_uint<4> A; | 'ZERO' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> A; | '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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_uint<4> A = 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_uint<4> A = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<4> A; | 'ZERO' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=2
The right code snippet is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=1 | 'BUF' |
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=1 | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=2
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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=2
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A complete dim=1 | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=5 dim=1
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=5 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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_uint<4> A[10];
#pragma HLS array_partition variable=A cyclic factor=5 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
ap_uint<4> A[5][2];
#pragma HLS array_partition variable=A complete dim=1
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
ap_uint<4> A[5][2];
#pragma HLS array_partition variable=A complete dim=1
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
ap_uint<4> A[5][2];
#pragma HLS array_partition variable=A complete dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
ap_uint<4> A[10];
#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:
#include <ap_int.h>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4>... |
The wrong part of the code is:
#pragma HLS dataflow
for (int i = 0; i < 10; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_t... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
... |
The wrong part of the code is:
#pragma HLS dataflow
for (int i = 0; i < 10; i++) {
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
#pragma HLS dataflow
for (int i = 0; i < 10; i++) {
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> e... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
ap_uint<4> eq_tem... |
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
// 4-bit magnitude comparator
a... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool eq, bool gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) {
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ... | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
// 4-bit magnitude compara... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
// 4-bit magnitude comparator
... |
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output) { | '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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
// 4-bit magnit... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
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>
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_... |
The wrong part of the code is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq, bool& gt, bool C, ap_uint<4> D, ap_uint<4>& final_output, ap_uint<4> E[10]) {
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
void top_module(ap_uint<4> A, ap_uint<4> B, bool& eq... | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
enc_in = data6;
The right code snippet is:
enc_in = data5; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
enc_in = data5; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
enc_in = data6;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
enc_in = data6;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
enc_in = data5; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
ap_uint<64> shift_reg = 0;
The right code snippet is:
ap_uint<64> shift_reg; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
ap_uint<64> shift_reg; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
ap_uint<64> shift_reg = 0;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_uint<64> shift_reg = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<64> shift_reg; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
enc_out = (enc_in.range(6,0), enc_in[6]);
The right code snippet is:
enc_out = (enc_in.range(5,0), enc_in[5]); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
enc_out = (enc_in.range(5,0), enc_in[5]); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
enc_out = (enc_in.range(6,0), enc_in[6]);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
enc_out = (enc_in.range(6,0), enc_in[6]);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
enc_out = (enc_in.range(5,0), enc_in[5]); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
while(0) {
The right code snippet is:
while(1) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
while(1) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
while(0) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
while(0) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while(1) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
ap_int<6> enc_in;
The right code snippet is:
ap_uint<6> enc_in; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
ap_uint<6> enc_in; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
ap_int<6> enc_in;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
ap_int<6> enc_in;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<6> enc_in; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
for (int i = 0; i < 6; i += 2) {
switch (sel) {
case i:
enc_in = data[i];
break;
case i+1:
enc_in = data[i+1];
break;
default:
enc_in = 0;
break;
}
}
The right code snippet... | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
for (int i = 0; i < 6; i += 2) {
switch (sel) {
case i:
enc_in = data[i];
break;
case i+1:
enc_in = data[i+1];
break;
default:
enc_in = 0;
break;
}
}
The high-level-synthes... | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; i < 6; i += 2) {
switch (sel) {
case i:
enc_in = data[i];
break;
case i+1:
enc_in = data[i+1];
break;
default:
enc_in = 0;
break;
}
}
The high-level-synthes... | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
feedback = 0;
The right code snippet is:
feedback = shift_reg[63] ^ shift_reg[60] ^ shift_reg[52] ^ shift_reg[49]; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
feedback = shift_reg[63] ^ shift_reg[60] ^ shift_reg[52] ^ shift_reg[49]; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
feedback = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
feedback = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
feedback = shift_reg[63] ^ shift_reg[60] ^ shift_reg[52] ^ shift_reg[49]; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
enc_in = data5;
enc_out = (enc_in.range(5,0), enc_in[5]);
out = shift_reg;
The right code snippet is:
None | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
enc_in = data5;
enc_out = (enc_in.range(5,0), enc_in[5]);
out = shift_reg;
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
enc_in = data5;
enc_out = (enc_in.range(5,0), enc_in[5]);
out = shift_reg;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
None | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=0
The right code snippet is:
None | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=0
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete factor=3
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=1
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=1
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data complete dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS DATAFLOW
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=data5
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=data5
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=data5
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_n... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data5
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INTERFACE ap_none p... |
The right code snippet is:
None | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFACE ap_none port=data0
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data5
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=sel
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data5
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
None | 'RAMB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.