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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i >= n2-2; i = i + 1)
cD_store[i] = 0;
The right code snippet is:
for (int i = 0; i <= n2-2; i = i + 1)
cD_store[i] = 0; | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
for (int i = 0; i <= n2-2; i = i + 1)
cD_store[i] = 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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
for (int i = 0; i >= n2-2; i = i + 1)
cD_store[i] = 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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
for (int i = 0; i >= n2-2; i = i + 1)
cD_store[i] = 0;
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i <= n2-2; i = i + 1)
cD_store[i] = 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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
cA_l2 = (unsigned int)data0 + (unsigned int)(data1 + data_in);
The right code snippet is:
cA_l2 = data0 + (data1 + data_in); | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
cA_l2 = data0 + (data1 + data_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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
cA_l2 = (unsigned int)data0 + (unsigned int)(data1 + data_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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
cA_l2 = (unsigned int)data0 + (unsigned int)(data1 + data_in);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
cA_l2 = data0 + (data1 + data_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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
cD_store[0] = 0;
cD_store[1] = 0;
cD_store[2] = 0;
cD_store[3] = 0;
cD_store[4] = 0;
cD_store[5] = 0;
cD_store[6] = 0;
cD_store[7] = 0;
cD_store[8] = 0;
The right code snippet is:
for (int i = 0; i <= n2-2; i = i + 1)
cD_store[i] = 0; | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
for (int i = 0; i <= n2-2; i = i + 1)
cD_store[i] = 0; | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
cD_store[0] = 0;
cD_store[1] = 0;
cD_store[2] = 0;
cD_store[3] = 0;
cD_store[4] = 0;
cD_store[5] = 0;
cD_store[6] = 0;
cD_store[7] = 0;
cD_store[8] = 0;
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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
cD_store[0] = 0;
cD_store[1] = 0;
cD_store[2] = 0;
cD_store[3] = 0;
cD_store[4] = 0;
cD_store[5] = 0;
cD_store[6] = 0;
cD_store[7] = 0;
cD_store[8] = 0;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i <= n2-2; i = 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
ap_int<16> data0;
The right code snippet is:
ap_int<16> data0 = 0; | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
ap_int<16> data0 = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
ap_int<16> data0;
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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
ap_int<16> data0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_int<16> data0 = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=cA_l2
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=cA_l2
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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=cA_l2
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=4 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=4 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=4 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=cD_store cyclic factor=3 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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS unroll
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS unroll
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS unroll
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data_in
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data_in
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=data_in
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=cD_store
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=cD_store
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=cD_store
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data_in
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data_in
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=data_in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=data_in | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=cD_store
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=cD_store
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=cD_store
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE bram port=cD_store | '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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
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:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
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 n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#pragma HLS INTERF... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2, ap_int<16> cD_store[n2-1])
{
#p... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
const int n2 = 10;
void level2arch(ap_int<16> data_in, bool clk, bool nReset, ap_int<16> &cD_l2, ap_int<16> &cA_l2... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void HysteresisComparator(float Vin, bool &Vout, float Vth = 1.0, float Vh = 0.1) {
if (Vin > Vth + Vh) {
Vout = true;
} else if (Vin < Vth - Vh) {
Vout = f... |
The wrong part of the code is:
float Vth, Vh;
Bug_type:
OOB
The right code snippet is:
float Vth = 1.0, Vh = 0.1; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void HysteresisComparator(float Vin, bool &Vout, float Vth = 1.0, float Vh = 0.1) {
if (Vin > Vth + Vh) {
Vout = true;
} else if (Vin < Vth - Vh) {
Vout = false;... |
The right code snippet is:
float Vth = 1.0, Vh = 0.1; | 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 HysteresisComparator(float Vin, bool &Vout, float Vth = 1.0, float Vh = 0.1) {
if (Vin > Vth + Vh) {
Vout = true;
} else if (Vin < Vth - Vh) {
... |
The wrong part of the code is:
float Vth, Vh;
Bug_type:
OOB
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 HysteresisComparator(float Vin, bool &Vout, float Vth = 1.0, float Vh = 0.1) {
if (Vin > Vth + Vh) {
Vout = true;
... |
The wrong part of the code is:
float Vth, Vh;
Bug_type:
OOB
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
float Vth = 1.0, Vh = 0.1; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
shifted_out.write(shifted_out_temp.range(16, 13));
The right code snippet is:
shifted_out.write(shifted_out_temp.range(15, 12)); | 'OOB': Out-of-bounds array access |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
shifted_out.write(shifted_out_temp.range(15, 12)); | 'OOB': Out-of-bounds array access |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
shifted_out.write(shifted_out_temp.range(16, 13));
The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access | 'OOB': Out-of-bounds array access |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
shifted_out.write(shifted_out_temp.range(16, 13));
The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access
The right code snippet is:
shifted_out.write(shifted_out_temp.range(15, 12)); | 'OOB': Out-of-bounds array access |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
ap_uint<16> shifted_out_temp = 0;
The right code snippet is:
ap_uint<16> shifted_out_temp; | 'INIT': Read of uninitialized variable |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
ap_uint<16> shifted_out_temp; | 'INIT': Read of uninitialized variable |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
ap_uint<16> shifted_out_temp = 0;
The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable | 'INIT': Read of uninitialized variable |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
ap_uint<16> shifted_out_temp = 0;
The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable
The right code snippet is:
ap_uint<16> shifted_out_temp; | 'INIT': Read of uninitialized variable |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
shifted_out_temp = in >> (shift_amount + 2);
The right code snippet is:
shifted_out_temp = in >> shift_amount; | 'SHFT': Bit shift by an out-of-bounds amount |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
shifted_out_temp = in >> shift_amount; | 'SHFT': Bit shift by an out-of-bounds amount |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
shifted_out_temp = in >> (shift_amount + 2);
The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount | 'SHFT': Bit shift by an out-of-bounds amount |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
shifted_out_temp = in >> (shift_amount + 2);
The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount
The right code snippet is:
shifted_out_temp = in >> shift_amount; | 'SHFT': Bit shift by an out-of-bounds amount |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// loop body
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'INF': An infinite loop arising from an incorrect loop termination |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'INF': An infinite loop arising from an incorrect loop termination |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'INF': An infinite loop arising from an incorrect loop termination | 'INF': An infinite loop arising from an incorrect loop termination |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// loop body
}
The high-level-synthesis bug type of the code is: 'INF': An infinite loop arising from an incorrect loop termination
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'INF': An infinite loop arising from an incorrect loop termination |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
ap_int<8> in;
The right code snippet is:
ap_uint<8> in; | 'USE': Unintended sign extension |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
ap_uint<8> in; | 'USE': Unintended sign extension |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
ap_int<8> in;
The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension | 'USE': Unintended sign extension |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
ap_int<8> in;
The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension
The right code snippet is:
ap_uint<8> in; | 'USE': Unintended sign extension |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// loop body
// loop body
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU': Errors in manual loop unrolling |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU': Errors in manual loop unrolling |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// loop body
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling | 'MLU': Errors in manual loop unrolling |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
for (int i = 0; i < 10; i+=2) {
// loop body
// loop body
}
The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling
The right code snippet is:
for (int i = 0; i < 10; i++) {
// loop body
} | 'MLU': Errors in manual loop unrolling |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
ap_uint<2> shift_amount = 0;
The right code snippet is:
ap_uint<2> shift_amount; | 'ZERO': Variable initialized to zero instead of nonzero initializer |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
ap_uint<2> shift_amount; | 'ZERO': Variable initialized to zero instead of nonzero initializer |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
ap_uint<2> shift_amount = 0;
The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer | 'ZERO': Variable initialized to zero instead of nonzero initializer |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
ap_uint<2> shift_amount = 0;
The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer
The right code snippet is:
ap_uint<2> shift_amount; | 'ZERO': Variable initialized to zero instead of nonzero initializer |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
// No suitable code snippet found
The right code snippet is:
// No suitable code snippet found | 'BUF': Copying from the wrong half of a split buffer |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
// No suitable code snippet found | 'BUF': Copying from the wrong half of a split buffer |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
// No suitable code snippet found
The high-level-synthesis bug type of the code is: 'BUF': Copying from the wrong half of a split buffer | 'BUF': Copying from the wrong half of a split buffer |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
// No suitable code snippet found
The high-level-synthesis bug type of the code is: 'BUF': Copying from the wrong half of a split buffer
The right code snippet is:
// No suitable code snippet found | 'BUF': Copying from the wrong half of a split buffer |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &s... |
The wrong part of the code is:
// No suitable code snippet found
The right code snippet is:
// No suitable code snippet found | 'APT': Array partition type error for the pragma '#pragma HLS array_partition' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_uint<4>> &shifte... |
The right code snippet is:
// No suitable code snippet found | 'APT': Array partition type error for the pragma '#pragma HLS array_partition' |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> &shift_direction,
hls::stream<ap_... |
The wrong part of the code is:
// No suitable code snippet found
The high-level-synthesis bug type of the code is: 'APT': Array partition type error for the pragma '#pragma HLS array_partition' | 'APT': Array partition type error for the pragma '#pragma HLS array_partition' |
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:
// Top-level module
void top_module (
hls::stream<ap_uint<8>> &in,
hls::stream<ap_uint<2>> &shift_amount,
hls::stream<bool> ... |
The wrong part of the code is:
// No suitable code snippet found
The high-level-synthesis bug type of the code is: 'APT': Array partition type error for the pragma '#pragma HLS array_partition'
The right code snippet is:
// No suitable code snippet found | 'APT': Array partition type error for the pragma '#pragma HLS array_partition' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.