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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic factor=3
The right code snippet is:
// None | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS array_partition variable=D 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:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=2 factor=3
The right code snippet is:
// None | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=2 factor=3
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS array_partition variable=D cyclic dim=2 factor=3
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
// None | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
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:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D
The right code snippet is:
// None | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D offset=slave bundle=gmem
The right code snippet is:
// None | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D offset=slave bundle=gmem
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D offset=slave bundle=gmem
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=D bundle=control
The right code snippet is:
// None | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=D bundle=control
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS interface s_axilite port=D bundle=control
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Q_N
The right code snippet is:
// None | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Q_N
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Q_N
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
// None | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
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:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
The right code snippet is:
// None | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis p... |
The right code snippet is:
// None | '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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
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 flip_flop(
bool D,
bool CLK,
bool SET,
bool RESET,
bool &Q,
bool &Q_N
) {
#pragma HLS INTERFACE ap_c... |
The wrong part of the code is:
#pragma HLS unroll inner loop full
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
// None | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y[10]),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
... | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
); | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y[10]),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y[10]),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
sky130_fd_sc_lp__a21oi ... | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The right code snippet is:
.sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),... | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
.sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
); | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
.sky130_fd_sc_lp__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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y << 10),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
... | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
); | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y << 10),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
sky130_fd_sc_lp__a21oi base (
.Y(Y << 10),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
sky130_fd_sc_lp__a21... | 'SHFT' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
for(int i=0; i>=0; i++){
// some code here
}
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | 'INF' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | '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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for(int i=0; i>=0; i++){
// some code here
}
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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
for(int i=0; i>=0; i++){
// some code here
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | 'INF' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
signed int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B... | 'USE' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
); | '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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
signed int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
signed int Y;
sky130_fd_sc_lp__a21oi base (
.Y(Y),
.A1(A1),
.A2(A2),
.B1(B1),
.EN(1),
.VPWR(VPWR),
.VGND(VGND),
.VPB(VPB),
.VNB(VNB)
);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
sky130_fd_sc_... | 'USE' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | 'MLU' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | '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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
for(int i=0; i<5; i++){
// some code here
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for(int i=0; i<10; i++){
// some code here
} | 'MLU' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
int x = 0;
The right code snippet is:
int x = 5; | 'ZERO' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
int x = 5; | '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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
int x = 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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
int x = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
int x = 5; | 'ZERO' |
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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=3
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=3
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=3
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=5
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=5
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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=1 factor=5
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=arr complete dim=1 | '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=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=2 factor=2
##
The right code snippet is:
#pragma HLS array_partition variable=arr 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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ap_none port=VPW... |
The right code snippet is:
#pragma HLS array_partition variable=arr 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:
#pragma HLS INTERFACE ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE ap_none port=B1
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=2 factor=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 ap_none port=Y
#pragma HLS INTERFACE ap_none port=A1
#pragma HLS INTERFACE ap_none port=A2
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS array_partition variable=arr cyclic dim=2 factor=2
##
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=arr complete 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 ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE a... |
The wrong part of the code is:
data_broadcast_in = data_r(dest_r_i_val+1, dest_r_i_val+1);
The right code snippet is:
data_broadcast_in = data_r(dest_r_i_val, dest_r_i_val); | '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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE axis p... |
The right code snippet is:
data_broadcast_in = data_r(dest_r_i_val, dest_r_i_val); | '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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS ... |
The wrong part of the code is:
data_broadcast_in = data_r(dest_r_i_val+1, dest_r_i_val+1);
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INT... |
The wrong part of the code is:
data_broadcast_in = data_r(dest_r_i_val+1, dest_r_i_val+1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
data_broadcast_in = data_r(dest_r_i_val, dest_r_i_val); | '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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE a... |
The wrong part of the code is:
static bool sense_r;
The right code snippet is:
static bool sense_r = false; | '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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE axis p... |
The right code snippet is:
static bool sense_r = false; | '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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS ... |
The wrong part of the code is:
static bool sense_r;
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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INT... |
The wrong part of the code is:
static bool sense_r;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static bool sense_r = false; | '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_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE a... |
The wrong part of the code is:
dest_decode = (1 << (dirs_p+1)) - (1 << dest_r_i_val);
The right code snippet is:
dest_decode = (1 << (dirs_p)) - (1 << dest_r_i_val); | '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_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE axis p... |
The right code snippet is:
dest_decode = (1 << (dirs_p)) - (1 << dest_r_i_val); | '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_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS ... |
The wrong part of the code is:
dest_decode = (1 << (dirs_p+1)) - (1 << dest_r_i_val);
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_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INT... |
The wrong part of the code is:
dest_decode = (1 << (dirs_p+1)) - (1 << dest_r_i_val);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
dest_decode = (1 << (dirs_p)) - (1 << dest_r_i_val); | 'SHFT' |
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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE a... |
The wrong part of the code is:
while(0) {
// loop never runs
}
The right code snippet is:
while(1) {
// infinite loop
} | 'INF' |
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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE axis p... |
The right code snippet is:
while(1) {
// infinite loop
} | '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:
#pragma HLS INTERFACE ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS ... |
The wrong part of the code is:
while(0) {
// loop never runs
}
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:
#pragma HLS INTERFACE ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INT... |
The wrong part of the code is:
while(0) {
// loop never runs
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while(1) {
// infinite loop
} | 'INF' |
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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE a... |
The wrong part of the code is:
gather_and = (int)(char)src_r_i_val | (int)(char)data_r;
The right code snippet is:
gather_and = (~src_r_i_val | data_r); | 'USE' |
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_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS INTERFACE axis p... |
The right code snippet is:
gather_and = (~src_r_i_val | data_r); | '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:
#pragma HLS INTERFACE ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INTERFACE axis port=src_r_i
#pragma HLS ... |
The wrong part of the code is:
gather_and = (int)(char)src_r_i_val | (int)(char)data_r;
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:
#pragma HLS INTERFACE ap_clk port=clk_i
#pragma HLS INTERFACE ap_rst port=reset_i
#pragma HLS INTERFACE axis port=data_i
#pragma HLS INT... |
The wrong part of the code is:
gather_and = (int)(char)src_r_i_val | (int)(char)data_r;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
gather_and = (~src_r_i_val | data_r); | 'USE' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.