instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
int &ENCLK;
The right code snippet is:
bool &ENCLK; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
bool &ENCLK; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
int &ENCLK;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
int &ENCLK;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool &ENCLK; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
for (int i = 0; i < N/2; i++) {
//loop body
}
for (int i = N/2; i < N; i++) {
//loop body
}
The right code snippet is:
for (int i = 0; i < N; i++) {
//loop body
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
for (int i = 0; i < N; i++) {
//loop body
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
for (int i = 0; i < N/2; i++) {
//loop body
}
for (int i = N/2; i < N; i++) {
//loop body
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
for (int i = 0; i < N/2; i++) {
//loop body
}
for (int i = N/2; i < N; i++) {
//loop body
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < N; i++) {
//loop body
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
ap_uint<32> D = 0;
ap_uint<32> Q = 0;
ap_uint<32> M = 0;
The right code snippet is:
ap_uint<32> D;
ap_uint<32> Q;
ap_uint<32> M; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
ap_uint<32> D;
ap_uint<32> Q;
ap_uint<32> M; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
ap_uint<32> D = 0;
ap_uint<32> Q = 0;
ap_uint<32> M = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
ap_uint<32> D = 0;
ap_uint<32> Q = 0;
ap_uint<32> M = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<32> D;
ap_uint<32> Q;
ap_uint<32> M; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
SNPS_BUF32( M+1, W32 );
The right code snippet is:
SNPS_BUF32( M, W32 ); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
SNPS_BUF32( M, W32 ); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
SNPS_BUF32( M+1, W32 );
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
SNPS_BUF32( M+1, W32 );
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
SNPS_BUF32( M, W32 ); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=0
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D complete dim=1
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS array_partition variable=D complete dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D complete dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=D complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=D 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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D 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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS array_partition variable=D 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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=D 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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ENCLK
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ENCLK
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=ENCLK
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi port=W32 random
The right code snippet is:
#pragma HLS interface m_axi port=W32 | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS interface m_axi port=W32 | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS interface m_axi port=W32 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_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS interface m_axi port=W32 random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=W32 | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=ENCLK
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=ENCLK
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=ENCLK
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ENCLK
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ENCLK
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=ENCLK
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=ENCLK | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
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:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void SNPS_CLOCK_GATE_HIGH_d_ff_en_W32_0_0 ( bool CLK, bool EN, bool TE, ap_uint<32> W32, bool &ENCLK ) {
#pragma... |
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
if (counter <= release_time) {
The right code snippet is:
if (counter < release_time) { | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
if (counter < release_time) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
if (counter <= release_time) {
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
if (counter <= release_time) {
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (counter < release_time) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
int counter;
The right code snippet is:
int counter = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
int counter = 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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
int counter;
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
int counter;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int counter = 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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
counter<<2;
The right code snippet is:
counter++; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
counter++; | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
counter<<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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
counter<<2;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
counter++; | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
while (false) {
The right code snippet is:
while (true) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
while (true) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
while (false) {
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
while (false) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while (true) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
unsigned int counter = 0;
The right code snippet is:
int counter = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
unsi... |
The right code snippet is:
int counter = 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
unsigned int counter = 0;
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
unsigned int counter = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
int counter = 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
for (int i = 0; i < release_time/2; i++) {
The right code snippet is:
for (int i = 0; i < release_time; i++) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
for (int i = 0; i < release_time; 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
for (int i = 0; i < release_time/2; 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
for (int i = 0; i < release_time/2; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < release_time; 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
bool release_ff = 0;
The right code snippet is:
bool release_ff = false; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
bool release_ff = 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
bool release_ff = 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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
bool release_ff = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool release_ff = 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
if (clk.empty() && reset.empty()) {
The right code snippet is:
if (!clk.empty() && !reset.empty()) { | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
if (!clk.empty() && !reset.empty()) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
if (clk.empty() && reset.empty()) {
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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
if (clk.empty() && reset.empty()) {
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
if (!clk.empty() && !reset.empty()) { | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter cyclic
The right code snippet is:
#pragma HLS array_partition variable=counter complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
#pragma HLS array_partition variable=counter 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=counter 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter complete factor=3
The right code snippet is:
#pragma HLS array_partition variable=counter complete factor=2 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
#pragma HLS array_partition variable=counter complete factor=2 | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter complete factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=counter complete factor=2 | '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 async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=counter complete dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock cycles.
int ... |
The right code snippet is:
#pragma HLS array_partition variable=counter complete dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int release_time = 10; // release time in clock... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter 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:
```
void async_reset_release (
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& release
) {
const int releas... |
The wrong part of the code is:
#pragma HLS array_partition variable=counter complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=counter complete dim=1 | 'DID' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.