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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
static bool gated_clk = 0;
The right code snippet is:
static bool gated_clk; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
static bool gated_clk; | '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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
static bool gated_clk = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
static bool gated_clk = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static bool gated_clk; | '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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
gated_clk = !TE_buf;
The right code snippet is:
gated_clk = !TE; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
gated_clk = !TE; | '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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
gated_clk = !TE_buf;
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
gated_clk = !TE_buf;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
gated_clk = !TE; | '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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk block 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk block 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk block 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS array_partition variable=gated_clk 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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1 port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1 port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1 port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface m_axi port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS interface m_axi port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=gated_clk
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner_loop=True
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner_loop=True
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 clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS unroll factor=2 inner_loop=True
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B[2] ^ C;
ap_uint<1> ca = C ^ A;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B[2] ^ C;
ap_uint<1> ca = C ^ A;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B[2] ^ C;
ap_uint<1> ca = C ^ A;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca;
X = ab ^ ca;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca;
X = ab ^ ca;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca;
X = ab ^ ca;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab = A << B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab = A << B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab = A << B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
while (1) {
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
}
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
while (1) {
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
}
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
while (1) {
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_int<1> ab = A ^ B;
ap_int<1> bc = B ^ C;
ap_int<1> ca = C ^ A;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_int<1> ab = A ^ B;
ap_int<1> bc = B ^ C;
ap_int<1> ca = C ^ A;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_int<1> ab = A ^ B;
ap_int<1> bc = B ^ C;
ap_int<1> ca = C ^ A;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab1 = A ^ B;
ap_uint<1> bc1 = B ^ C;
ap_uint<1> ca1 = C ^ A;
ap_uint<1> ab2 = A ^ B;
ap_uint<1> bc2 = B ^ C;
ap_uint<1> ca2 = C ^ A;
ap_uint<1> ab3 = A ^ B;
ap_uint<1> bc3 = B ^ C;
ap_uint<1> ca3 = C ^ A;
X = ab1 ^ ca1 ^ ab2 ^ ca2 ^ ab3 ^ ca3;
The right code s... | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab1 = A ^ B;
ap_uint<1> bc1 = B ^ C;
ap_uint<1> ca1 = C ^ A;
ap_uint<1> ab2 = A ^ B;
ap_uint<1> bc2 = B ^ C;
ap_uint<1> ca2 = C ^ A;
ap_uint<1> ab3 = A ^ B;
ap_uint<1> bc3 = B ^ C;
ap_uint<1> ca3 = C ^ A;
X = ab1 ^ ca1 ^ ab2 ^ ca2 ^ ab3 ^ ca3;
The high-level-s... | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab1 = A ^ B;
ap_uint<1> bc1 = B ^ C;
ap_uint<1> ca1 = C ^ A;
ap_uint<1> ab2 = A ^ B;
ap_uint<1> bc2 = B ^ C;
ap_uint<1> ca2 = C ^ A;
ap_uint<1> ab3 = A ^ B;
ap_uint<1> bc3 = B ^ C;
ap_uint<1> ca3 = C ^ A;
X = ab1 ^ ca1 ^ ab2 ^ ca2 ^ ab3 ^ ca3;
The high-level-s... | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab = 0;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | '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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab = 0;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab = 0;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = VPWR ^ C;
ap_uint<1> ca = C ^ A;
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ A; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = VPWR ^ C;
ap_uint<1> ca = C ^ A;
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = VPWR ^ C;
ap_uint<1> ca = C ^ A;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0
X = ab[0] ^ ca[0];
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1>... | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0
X = ab[0] ^ ca[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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0
X = ab[0] ^ ca[0];
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
... | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_ui... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0 factor=2
X = ab[0] ^ ca[0];
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uin... | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND,
ap_uint<1>... |
The right code snippet is:
ap_uint<1> ab = A ^ B;
ap_uint<1> bc = B ^ C;
ap_uint<1> ca = C ^ 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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
ap_uint<1> VPWR,
ap_uint<1> VGND... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0 factor=2
X = ab[0] ^ ca[0];
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:
HLS Code:
```
#include <ap_int.h>
void xor3_1 (
ap_uint<1> &X ,
ap_uint<1> A ,
ap_uint<1> B ,
ap_uint<1> C ,
... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=ab complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=bc complete dim=0 factor=2
#pragma HLS ARRAY_PARTITION variable=ca complete dim=0 factor=2
X = ab[0] ^ ca[0];
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 right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
... |
The wrong part of the code is:
case 16: out = 3; break;
The right code snippet is:
case 15: out = 3; break; | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
ca... |
The right code snippet is:
case 15: out = 3; break; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(... |
The wrong part of the code is:
case 16: out = 3; break;
The high-level-synthesis bug type of the code is: OOB | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_co... |
The wrong part of the code is:
case 16: out = 3; break;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
case 15: out = 3; break; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
... |
The wrong part of the code is:
int in = 0;
The right code snippet is:
int in; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
ca... |
The right code snippet is:
int in; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(... |
The wrong part of the code is:
int in = 0;
The high-level-synthesis bug type of the code is: INIT | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_co... |
The wrong part of the code is:
int in = 0;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
int in; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
... |
The wrong part of the code is:
out = in << 32;
The right code snippet is:
out = in << 2; | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(in) {
ca... |
The right code snippet is:
out = in << 2; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_counter(int in, int& out) {
switch(... |
The wrong part of the code is:
out = in << 32;
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=out
void bit_co... |
The wrong part of the code is:
out = in << 32;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
out = in << 2; | SHFT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.