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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=a,b,in,sel
#pragma HLS interface ap_fifo port=sum
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=a,b,in,sel
#pragma HLS interface ap_fifo port=sum
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=a,b,in,sel
#pragma HLS interface ap_fifo port=sum
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a,b,in,sel
#pragma HLS interface ap_memory port=sum
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a,b,in,sel
#pragma HLS interface ap_memory port=sum
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a,b,in,sel
#pragma HLS interface ap_memory port=sum
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=a,b,in,sel
#pragma HLS interface ap_vld port=sum
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=a,b,in,sel
#pragma HLS interface ap_vld port=sum
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=a,b,in,sel
#pragma HLS interface ap_vld port=sum
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=a,b,in,sel
#pragma HLS interface ap_none port=sum | '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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
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=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
con... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_IN = 4;
const in... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
const int WIDTH_B = 100;
const int WIDTH_... |
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_none port=a,b,in,sel
#pragma HLS INTERFACE ap_none port=sum
#include "ap_int.h"
const int WIDTH_A = 100;
cons... |
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 io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
shift_reg.range(11, 2) = shift_reg.range(10, -1);
The right code snippet is:
shift_reg.range(10, 1) = shift_reg.range(9, 0); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
shift_reg.range(10, 1) = shift_reg.range(9, 0); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
shift_reg.range(11, 2) = shift_reg.range(10, -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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
shift_reg.range(11, 2) = shift_reg.range(10, -1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
shift_reg.range(10, 1) = shift_reg.range(9, 0); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
The right code snippet is:
static ap_uint<11> shift_reg = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
static ap_uint<11> shift_reg = 0; | '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 io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
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 io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<11> shift_reg = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
outputdelaysetting2 = output_reg.range(8, 6);
The right code snippet is:
outputdelaysetting2 = output_reg.range(6, 4); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
outputdelaysetting2 = output_reg.range(6, 4); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
outputdelaysetting2 = output_reg.range(8, 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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
outputdelaysetting2 = output_reg.range(8, 6);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
outputdelaysetting2 = output_reg.range(6, 4); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
while(1);
The right code snippet is:
N/A | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
while(1);
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
while(1);
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
N/A | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
padtoinputregisterdelaysetting = (ap_uint<4>)output_reg.range(10, 7);
The right code snippet is:
padtoinputregisterdelaysetting = output_reg.range(10, 7); | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
padtoinputregisterdelaysetting = output_reg.range(10, 7); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
padtoinputregisterdelaysetting = (ap_uint<4>)output_reg.range(10, 7);
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
padtoinputregisterdelaysetting = (ap_uint<4>)output_reg.range(10, 7);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
padtoinputregisterdelaysetting = output_reg.range(10, 7); | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
for(int i=0; i<4; i++) {
shift_reg.range((i+1)*2, i*2) = shift_reg.range(i*2+1, i*2);
}
The right code snippet is:
N/A | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
for(int i=0; i<4; i++) {
shift_reg.range((i+1)*2, i*2) = shift_reg.range(i*2+1, i*2);
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
for(int i=0; i<4; i++) {
shift_reg.range((i+1)*2, i*2) = shift_reg.range(i*2+1, i*2);
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
N/A | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
shift_reg = 0;
The right code snippet is:
static ap_uint<11> shift_reg = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
static ap_uint<11> shift_reg = 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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
shift_reg = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
static ap_uint<11> shift_reg;
shift_reg = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static ap_uint<11> shift_reg = 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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
memcpy(&output_reg, &shift_reg, sizeof(ap_uint<11>));
The right code snippet is:
N/A | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
memcpy(&output_reg, &shift_reg, sizeof(ap_uint<11>));
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
memcpy(&output_reg, &shift_reg, sizeof(ap_uint<11>));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
N/A | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=1
The right code snippet is:
N/A | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
N/A | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=3 dim=1
The right code snippet is:
N/A | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
N/A | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=2
The right code snippet is:
N/A | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS array_partition variable=output_reg cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
N/A | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
N/A | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
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:
N/A | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=2
The right code snippet is:
N/A | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=2
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=2
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
N/A | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS interface m_axi port=output_reg offset=slave bundle=gmem
The right code snippet is:
N/A | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS interface m_axi port=output_reg offset=slave bundle=gmem
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS interface m_axi port=output_reg offset=slave bundle=gmem
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
N/A | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=256 port=output_reg
The right code snippet is:
N/A | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=256 port=output_reg
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=256 port=output_reg
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
N/A | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=output_reg bundle=control
The right code snippet is:
N/A | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=output_reg bundle=control
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=output_reg bundle=control
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
N/A | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
N/A | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | '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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
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:
N/A | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &out... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
The right code snippet is:
N/A | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_uint<4> &outputde... |
The right code snippet is:
N/A | '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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &padtoinputregisterdelaysetting,
ap_u... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
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:
```
void io_config(
bool datain,
bool clk,
bool ena,
bool update,
bool devclrn,
bool devpor,
ap_uint<4> &pad... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
N/A | '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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void... |
The wrong part of the code is:
out = in[(priority*4)+4] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DATA_BUS
void mux_... |
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24); | 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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi port=in offset=slave bundle=DAT... |
The wrong part of the code is:
out = in[(priority*4)+4] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
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 s_axilite port=sel bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=out bundle=CTRL_BUS
#pragma HLS INTERFACE ... |
The wrong part of the code is:
out = in[(priority*4)+4] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 16) | (in[priority*4] << 24);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
out = in[(priority*4)+3] | (in[(priority*4)+2] << 8) | (in[(priority*4)+1] << 1... | OOB |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.