instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
memcpy(dest + size/2, src, size);
The right code snippet is:
memcpy(dest, src, size); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
memcpy(dest, src, size); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
memcpy(dest + size/2, src, size);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
memcpy(dest + size/2, src, size);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(dest, src, size); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic
The right code snippet is:
#pragma HLS array_partition variable=write_data complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS array_partition variable=write_data complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=write_data complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic factor=3
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic factor=2 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic factor=2 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS array_partition variable=write_data cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=write_data cyclic factor=2 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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
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:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=1024 port=write_data bundle=s_axis
The right code snippet is:
#pragma HLS interface ap_memory depth=1024 port=write_data | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS interface ap_memory depth=1024 port=write_data | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=1024 port=write_data bundle=s_axis
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS interface ap_memory depth=1024 port=write_data bundle=s_axis
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_memory depth=1024 port=write_data | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi1
The right code snippet is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi1
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi1
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=write_data offset=slave bundle=axi | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS interface bram port=write_data depth=1024
The right code snippet is:
#pragma HLS interface ap_fifo port=write_data depth=1024 | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS interface ap_fifo port=write_data depth=1024 | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS interface bram port=write_data depth=1024
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS interface bram port=write_data depth=1024
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_fifo port=write_data depth=1024 | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=read_data
The right code snippet is:
#pragma HLS interface ap_none port=read_data | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS interface ap_none port=read_data | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=read_data
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=read_data
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=read_data | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI... |
The wrong part of the code is:
#pragma HLS unroll factor=3
The right code snippet is:
#pragma HLS unroll factor=4 | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWAD... |
The right code snippet is:
#pragma HLS unroll factor=4 | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVALID
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS unroll factor=3
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=ACLK
#pragma HLS INTERFACE s_axilite port=ARESETn
#pragma HLS INTERFACE s_axilite port=S00_AXI_AWVA... |
The wrong part of the code is:
#pragma HLS unroll factor=3
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll factor=4 | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3+1, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n... |
The wrong part of the code is:
JNAND3B(A1, A2, A3+1, n1);
The right code snippet is:
JNAND3B(A1, A2, A3, n1); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3+1, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2... |
The right code snippet is:
JNAND3B(A1, A2, A3, n1); | '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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3+1, n1);
JNAND3B(n1, A4, n1, n2);
JN... |
The wrong part of the code is:
JNAND3B(A1, A2, A3+1, n1);
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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3+1, n1)... |
The wrong part of the code is:
JNAND3B(A1, A2, A3+1, n1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
JNAND3B(A1, A2, A3, n1); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3 = false;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B... |
The wrong part of the code is:
bool n1, n2, n3 = false;
The right code snippet is:
bool n1, n2, n3; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3 = false;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, ... |
The right code snippet is:
bool n1, n2, n3; | '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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3 = false;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
... |
The wrong part of the code is:
bool n1, n2, n3 = 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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3 = false;
JNAND3B(A1, A2, A... |
The wrong part of the code is:
bool n1, n2, n3 = false;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool n1, n2, n3; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2 ... |
The wrong part of the code is:
JNAND3B(n2, n2 << 5, n2, n3);
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2 << 5,... |
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAN... |
The wrong part of the code is:
JNAND3B(n2, n2 << 5, n2, n3);
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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
... |
The wrong part of the code is:
JNAND3B(n2, n2 << 5, n2, n3);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2,... |
The wrong part of the code is:
while(true) {
JNAND3B(n3, n3, n3, O);
}
The right code snippet is:
JNAND3B(n3, n3, n3, O); | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, ... |
The right code snippet is:
JNAND3B(n3, n3, n3, O); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAN... |
The wrong part of the code is:
while(true) {
JNAND3B(n3, n3, n3, O);
}
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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
... |
The wrong part of the code is:
while(true) {
JNAND3B(n3, n3, n3, O);
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
JNAND3B(n3, n3, n3, O); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
signed char n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(... |
The wrong part of the code is:
signed char n1, n2, n3;
The right code snippet is:
bool n1, n2, n3; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
signed char n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n... |
The right code snippet is:
bool n1, n2, n3; | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
signed char n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
... |
The wrong part of the code is:
signed char n1, n2, n3;
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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
signed char n1, n2, n3;
JNAND3B(A1, A2, A3... |
The wrong part of the code is:
signed char n1, n2, n3;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool n1, n2, n3; | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2,... |
The wrong part of the code is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, n3);
JNAND3B(n3, n3, n3, O);
JNAND3B(n3, n3, n3, O);
The right code snippet is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, n3);
JNAND3B(n3, n3, n3, O); | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, ... |
The right code snippet is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, n3);
JNAND3B(n3, n3, n3, O); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAN... |
The wrong part of the code is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, n3);
JNAND3B(n3, n3, n3, O);
JNAND3B(n3, n3, n3, O);
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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
... |
The wrong part of the code is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, n2, n2, n3);
JNAND3B(n3, n3, n3, O);
JNAND3B(n3, n3, n3, O);
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2, ... | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1 = 0, n2 = 0, n3 = 0;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNA... |
The wrong part of the code is:
bool n1 = 0, n2 = 0, n3 = 0;
The right code snippet is:
bool n1, n2, n3; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1 = 0, n2 = 0, n3 = 0;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(... |
The right code snippet is:
bool n1, n2, n3; | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1 = 0, n2 = 0, n3 = 0;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n... |
The wrong part of the code is:
bool n1 = 0, n2 = 0, n3 = 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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1 = 0, n2 = 0, n3 = 0;
JNAND3B(A1, A... |
The wrong part of the code is:
bool n1 = 0, n2 = 0, n3 = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool n1, n2, n3; | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2+1, n... |
The wrong part of the code is:
JNAND3B(n2+1, n2+1, n2+1, n3);
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAND3B(n2+1, n2+1, ... |
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
JNAN... |
The wrong part of the code is:
JNAND3B(n2+1, n2+1, n2+1, n3);
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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
... |
The wrong part of the code is:
JNAND3B(n2+1, n2+1, n2+1, n3);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
JNAND3B(n2, n2, n2, n3); | '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 <hls_math.h>
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A... |
The wrong part of the code is:
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The rig... | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 com... |
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | '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 <hls_math.h>
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition... |
The wrong part of the code is:
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The hig... | '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 <hls_math.h>
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1... |
The wrong part of the code is:
void JAND4B(bool A1[2], bool A2[2], bool A3[2], bool A4[2], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The hig... | '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 <hls_math.h>
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A... |
The wrong part of the code is:
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The rig... | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 com... |
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | '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 <hls_math.h>
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition... |
The wrong part of the code is:
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The hig... | '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 <hls_math.h>
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1... |
The wrong part of the code is:
void JAND4B(bool A1[3], bool A2[3], bool A3[3], bool A4[3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}
The hig... | '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 <hls_math.h>
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partitio... |
The wrong part of the code is:
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}... | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition var... |
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | '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 <hls_math.h>
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS arr... |
The wrong part of the code is:
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 complete
}... | '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 <hls_math.h>
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition... |
The wrong part of the code is:
void JAND4B(bool A1[2][3], bool A2[2][3], bool A3[2][3], bool A4[2][3], bool &O) {
#pragma HLS array_partition variable=A1 complete
#pragma HLS array_partition variable=A2 complete
#pragma HLS array_partition variable=A3 complete
#pragma HLS array_partition variable=A4 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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n... |
The wrong part of the code is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1, A4, n1, n2);
... |
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | '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 <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
bool n1, n2, n3;
JNAND3B(A1, A2, A3, n1);
JNAND3B(n1... |
The wrong part of the code is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#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:
```
#include <hls_math.h>
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
bool n1, n2, n3;
JN... |
The wrong part of the code is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) {
#pragma HLS dataflow
}
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
void JAND4B(bool A1, bool A2, bool A3, bool A4, bool &O) { | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_stream
#prag... |
The wrong part of the code is:
pipeline_reg[24] = pipeline_reg[22];
The right code snippet is:
pipeline_reg[23] = pipeline_reg[22]; | '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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_stream
#pragma HL... |
The right code snippet is:
pipeline_reg[23] = pipeline_reg[22]; | '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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_s... |
The wrong part of the code is:
pipeline_reg[24] = pipeline_reg[22];
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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#p... |
The wrong part of the code is:
pipeline_reg[24] = pipeline_reg[22];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
pipeline_reg[23] = pipeline_reg[22]; | '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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_stream
#prag... |
The wrong part of the code is:
static int pipeline_reg[24];
The right code snippet is:
static int pipeline_reg[24] = {0}; | '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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_stream
#pragma HL... |
The right code snippet is:
static int pipeline_reg[24] = {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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=in_s... |
The wrong part of the code is:
static int pipeline_reg[24];
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_clk port=clk
#pragma HLS INTERFACE ap_clk_enable port=clk_ena
#pragma HLS INTERFACE ap_ctrl_none port=return
#p... |
The wrong part of the code is:
static int pipeline_reg[24];
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static int pipeline_reg[24] = {0}; | 'INIT' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.