instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=count complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=count complete dim=0 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS array_partition variable=count complete dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS array_partition variable=count complete dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=count complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=count complete dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS dataflow region
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS dataflow region
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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=count
The right code snippet is:
#pragma HLS interface ap_none port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS interface ap_none port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=count
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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=count
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface m_axi port=count random
The right code snippet is:
#pragma HLS interface m_axi port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS interface m_axi port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=count random
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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface m_axi port=count random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=count | '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=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface bram port=count
The right code snippet is:
#pragma HLS interface ap_none port=count | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS interface ap_none port=count | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface bram port=count
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface bram port=count
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=count | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=count
The right code snippet is:
#pragma HLS interface ap_none port=count | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS interface ap_none port=count | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=count
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=count
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=count | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE a... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_non... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=en
#pragma HLS ... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS I... |
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:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
bool enclk;
The right code snippet is:
bool enclk = false; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
bool enclk = false; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
bool enclk;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool enclk;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool enclk = false; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
latch.ECK = enclk + 1;
The right code snippet is:
latch.ECK = enclk; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
latch.ECK = enclk; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
latch.ECK = enclk + 1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
latch.ECK = enclk + 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
latch.ECK = enclk; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
latch.SE = te << 2;
The right code snippet is:
latch.SE = te; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
latch.SE = te; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
latch.SE = te << 2;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
latch.SE = te << 2;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
latch.SE = te; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
while(1 < 2) {
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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
while(1 < 2) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
while(1 < 2) {
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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
unsigned int enclk = -1;
The right code snippet is:
bool enclk = false; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
bool enclk = false; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
unsigned int enclk = -1;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
unsigned int enclk = -1;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool enclk = false; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
for(int i = 0; i < 5; 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:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
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:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
for(int i = 0; i < 5; i++) {
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
for(int i = 0; i < 5; 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:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
bool clk = 0;
The right code snippet is:
bool clk = false; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
bool clk = false; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
bool clk = 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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
bool clk = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool clk = false; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
latch.CK = clk + 1;
The right code snippet is:
latch.CK = clk; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
latch.CK = clk; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
latch.CK = clk + 1;
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
latch.CK = clk + 1;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
latch.CK = clk; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch cyclic
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch complete factor=3
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch 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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch complete factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch dim=2 complete
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch dim=2 complete
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS array_partition variable=latch dim=2 complete
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=latch complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS dataflow region
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=en
The right code snippet is:
#pragma HLS interface ap_none port=en | '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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS interface ap_none port=en | '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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=en
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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=en
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=en | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data random
The right code snippet is:
#pragma HLS interface m_axi port=data | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS interface m_axi port=data | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data random
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=data | '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_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS interface bram port=data
The right code snippet is:
#pragma HLS interface ap_none port=data | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS interface ap_none port=data | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS interface bram port=data
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface bram port=data
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=data | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS interface ap_none port=data
The right code snippet is:
#pragma HLS interface ap_vld port=data | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS interface ap_vld port=data | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS interface ap_none port=data
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface ap_none port=data
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_vld port=data | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void c... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu.h"
void clock_... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE ap_none port=enclk
#include "ap_tlu... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=clk
#pragma HLS INTERFACE ap_none port=en
#pragma HLS INTERFACE ap_none port=te
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.