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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
out[i] = out[i] + h0[j] * in[i+j] << 10;
out[i+1] = out[i+1] + h1[j] * in[i+j] << 10;
The right code snippet is:
out[i] = out[i] + h0[j] * in[i+j];
out[i+1] = out[i+1] + h1[j] * in[i+j]; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
out[i] = out[i] + h0[j] * in[i+j];
out[i+1] = out[i+1] + h1[j] * in[i+j]; | '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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
out[i] = out[i] + h0[j] * in[i+j] << 10;
out[i+1] = out[i+1] + h1[j] * in[i+j] << 10;
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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
out[i] = out[i] + h0[j] * in[i+j] << 10;
out[i+1] = out[i+1] + h1[j] * in[i+j] << 10;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
out[i] = out[i] + h0[j] * in[i+j];
out[i+1] = out[i+1] + h1[j] * in[i+j]; | 'SHFT' |
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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
for (int i = 0; i >= 0; i = i + 2) {
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
for (int i = 0; i >= 0; i = i + 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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
for (int i = 0; i >= 0; i = i + 2) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
int h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
int h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341};
The right code snippet is:
my_type h0[4] = {0.4829629131445341, 0.83651630373780... | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
my_type h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
my_type h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341}; | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
int h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
int h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341};
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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
int h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
int h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341};
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet i... | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
for (int j = 0; j < k*2; j = j + 1) {
The right code snippet is:
for (int j = 0; j < k; j = j + 1) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
for (int j = 0; j < k; j = j + 1) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
for (int j = 0; j < k*2; j = j + 1) {
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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
for (int j = 0; j < k*2; j = j + 1) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int j = 0; j < k; j = j + 1) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
my_type h0[4] = {0};
my_type h1[4] = {0};
The right code snippet is:
my_type h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
my_type h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341}; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
my_type h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
my_type h1[4] = {-0.1294095225512604, -0.2241438680420134, 0.8365163037378079, -0.4829629131445341}; | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
my_type h0[4] = {0};
my_type h1[4] = {0};
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
my_type h0[4] = {0};
my_type h1[4] = {0};
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
my_type h0[4] = {0.4829629131445341, 0.8365163037378079, 0.2241438680420134, -0.1294095225512604};
my_type h1[4] = {-0.1294095225512604, -0.22... | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
for (int i = 4; i < m; i = i + 2) {
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
for (int i = 4; i < m; i = i + 2) {
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
for (int i = 4; i < m; i = i + 2) {
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
for (int i = 0; i < m; i = i + 2) { | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic
The right code snippet is:
#pragma HLS array_partition variable=in complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS array_partition variable=in 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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS array_partition variable=in 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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=in 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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=3
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=4 dim=2
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=4 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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS array_partition variable=in cyclic factor=4 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=in cyclic factor=4 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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=in
The right code snippet is:
#pragma HLS interface ap_fifo port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS interface ap_fifo port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=in
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_fifo port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in random
The right code snippet is:
#pragma HLS interface m_axi port=in | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS interface m_axi port=in | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in 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:
#include <ap_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=in | '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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_ty... |
The wrong part of the code is:
#pragma HLS interface bram port=in
The right code snippet is:
#pragma HLS interface axis port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;
my_type h0... |
The right code snippet is:
#pragma HLS interface axis port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
const int m = 8;
const int k = 4;... |
The wrong part of the code is:
#pragma HLS interface bram port=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_fixed.h>
typedef ap_fixed<18,9> my_type;
void wavelet_transform(my_type in[8], my_type out[8])
{
const int n = 8;
... |
The wrong part of the code is:
#pragma HLS interface bram port=in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
bool RESET = false;
The right code snippet is:
bool RESET ; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
bool RESET ; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
bool RESET = false;
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
bool RESET = false;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool RESET ; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, true);
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false); | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, true);
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, true);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, no... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
buf_Q >> 2;
The right code snippet is:
buf_Q; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
buf_Q; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
buf_Q >> 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
buf_Q >> 2;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
buf_Q; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
while(awake || RESET_B_delayed) {
The right code snippet is:
while(awake && RESET_B_delayed) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
while(awake && RESET_B_delayed) { | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
while(awake || RESET_B_delayed) {
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
while(awake || RESET_B_delayed) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while(awake && RESET_B_delayed) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
bool notifier = -1;
The right code snippet is:
bool notifier = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
bool notifier = 0; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
bool notifier = -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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
bool notifier = -1;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool notifier = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
for(int i=0; i<3; i++) {
The right code snippet is:
for(int i=0; i<4; i++) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
for(int i=0; i<4; 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
for(int i=0; i<3; 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
for(int i=0; i<3; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for(int i=0; i<4; 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
bool RESET = 0;
The right code snippet is:
bool RESET ; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
bool RESET ; | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
bool RESET = 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
bool RESET = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool RESET ; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$P (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false);
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false); | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$P (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false);
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$P (buf_Q , D_delayed, GATE_delayed, RESET, notifier, true, false);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
sky130_fd_sc_ls__udp_dlatch$PR_pp$PG$N (buf_Q , D_delayed, GATE_delayed, RESET, n... | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q cyclic
The right code snippet is:
#pragma HLS array_partition variable=buf_Q complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q factor=3
The right code snippet is:
#pragma HLS array_partition variable=buf_Q complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q dim=2
The right code snippet is:
#pragma HLS array_partition variable=buf_Q complete | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS array_partition variable=buf_Q dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=buf_Q 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS dataflow wait
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS dataflow wait
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS dataflow wait
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.