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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=data_in 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=data_in 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=data_in 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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS DATAFLOW off
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_vld port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=in
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_vld port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=d... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_vld port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=in
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_vld port=in
#pragma HLS INTERFACE a... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=in
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output max_read_burst_length=16
The right code snippet is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output max_read_burst_length=16
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output max_read_burst_length=16
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=data_out offset=slave bundle=output | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_memory port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=in
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_memory port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_memory port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=in
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_memory port=in
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory port=in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=in | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=data_out
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=data_out | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=data_out | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=data_out
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none port=data_out
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=data_out | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#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' | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none ... |
The wrong part of the code is:
#pragma HLS UNROLL off
The right code snippet is:
#pragma HLS UNROLL | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFACE ap_none port=... |
The right code snippet is:
#pragma HLS UNROLL | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ap_none port=load
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS UNROLL off
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=rst
#pragma HLS INTERFACE ap_none port=in
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS UNROLL off
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS UNROLL | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE... |
The wrong part of the code is:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none port=Q
#pragma HLS INTERFACE ap_none port=Q_N
a = 0;
The right code snippet is:
... | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_n... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none port=Q
#pragma HLS INTERFACE ap_none port=Q_N | '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:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HL... |
The wrong part of the code is:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none port=Q
#pragma HLS INTERFACE ap_none port=Q_N
a = 0;
The high-level-synthesis bug t... | '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:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS ... |
The wrong part of the code is:
int a;
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none port=Q
#pragma HLS INTERFACE ap_none port=Q_N
a = 0;
The high-level-synthesis bug t... | '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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(10),
.VPWR(1),
.VGND(0)
);
The right code snippet is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
... | '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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(1),
.VPWR(1),
.VGND(0)
); | '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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTER... |
The wrong part of the code is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(10),
.VPWR(1),
.VGND(0)
);
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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFA... |
The wrong part of the code is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(10),
.VPWR(1),
.VGND(0)
);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
.sky130_fd_sc_hs... | '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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
#pragma HLS pipeline II=2
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(1),
.VPWR(1),
.VGND(0)
);
The right code snippet is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK... | '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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(1),
.VPWR(1),
.VGND(0)
); | '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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS pipeline II=2
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(1),
.VPWR(1),
.VGND(0)
);
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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS pipeline II=2
.sky130_fd_sc_hs__sdfsbp_2 flip_flop (
.CLK(CLK),
.D(D),
.Q(Q),
.Q_N(Q_N),
.SCD(RESET),
.SCE(SET),
.SET_B(1),
.VPWR(1),
.VGND(0)
);
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet... | '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 ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=1
#pragma HLS ARR... | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none port=Q
#pragma HLS INTERFACE ap_none port=Q_N | '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 ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=1
#pragma HLS ARR... | '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 ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=CLK cyclic factor=2 dim=1
#pragma HLS ARRAY_PARTITION variable=D cyclic factor=2 dim=1
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS ARRAY_PARTITION variable=Q cyclic factor=2 dim=1
#pragma HLS ARR... | '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_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_non... |
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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none por... |
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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTER... |
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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFA... |
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=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_non... |
The wrong part of the code is:
#pragma HLS unroll
for(int i = 0; i < 10; i++){
// some code here
}
The right code snippet is:
for(int i = 0; i < 10; i++){
// some code here
} | '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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTERFACE ap_none por... |
The right code snippet is:
for(int i = 0; i < 10; i++){
// some code here
} | '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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFACE ap_none port=SET
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS unroll
for(int i = 0; i < 10; i++){
// some code here
}
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 ap_none port=CLK
#pragma HLS INTERFACE ap_none port=D
#pragma HLS INTERFACE ap_none port=RESET
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS unroll
for(int i = 0; i < 10; i++){
// some code here
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for(int i = 0; i < 10; i++){
// some code here
} | '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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net_89 = false... |
The wrong part of the code is:
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net_89 = false;
bool Net_88 = false;
bool Net_91 = false;
bool Net_92 = false;
bool Net_93 = false;
bool Net_94 = false;
bool Net_95 = false;
bool Net_96 = false;
bool Net_97 = false;
bool Ne... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net_89 = false;
boo... |
The right code snippet is:
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool Net_93;
bool Net_94;
bool Net_95;
bool Net_96;
bool Net_97;
bool Net_98;
bool Net_99;
bool Net_100;
bool Net_101;
bool Net_102;
bool Net_53;
bool Net_60;
bool Net_55; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net... |
The wrong part of the code is:
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net_89 = false;
bool Net_88 = false;
bool Net_91 = false;
bool Net_92 = false;
bool Net_93 = false;
bool Net_94 = false;
bool Net_95 = false;
bool Net_96 = false;
bool Net_97 = false;
bool Ne... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 =... |
The wrong part of the code is:
bool Net_72 = false;
bool Net_71 = false;
bool Net_70 = false;
bool Net_90 = false;
bool Net_89 = false;
bool Net_88 = false;
bool Net_91 = false;
bool Net_92 = false;
bool Net_93 = false;
bool Net_94 = false;
bool Net_95 = false;
bool Net_96 = false;
bool Net_97 = false;
bool Ne... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;... |
The wrong part of the code is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_20),
.rf_ext_pa_en(pa_en)
);
The right code snippet is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_15),
.rf_ext_pa_en(pa_en)
); | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool... |
The right code snippet is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_15),
.rf_ext_pa_en(pa_en)
); | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
b... |
The wrong part of the code is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_20),
.rf_ext_pa_en(pa_en)
);
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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
boo... |
The wrong part of the code is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_20),
.rf_ext_pa_en(pa_en)
);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
cy_m0s8_ble_v1_0 cy_m0s8_ble_inst (
.interrupt(Net_15),
.rf_ext_pa_en(pa_en)
); | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;... |
The wrong part of the code is:
while(1) {}
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool... |
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
b... |
The wrong part of the code is:
while(1) {}
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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
boo... |
The wrong part of the code is:
while(1) {}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;... |
The wrong part of the code is:
cy_clock_v1_0 #(
.id("f7e4c631-7f18-4a80-b8dc-a27c020488da/5ae6fa4d-f41a-4a35-8821-7ce70389cb0c"),
.source_clock_id("9A908CA6-5BB3-4db0-B098-959E5D90882B"),
.divisor(0),
.period("0"),
.is_direct(1),
.is_digital(-1)
) LFCLK_inst (.clock_out(Net_53));
Th... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool... |
The right code snippet is:
cy_clock_v1_0 #(
.id("f7e4c631-7f18-4a80-b8dc-a27c020488da/5ae6fa4d-f41a-4a35-8821-7ce70389cb0c"),
.source_clock_id("9A908CA6-5BB3-4db0-B098-959E5D90882B"),
.divisor(0),
.period("0"),
.is_direct(1),
.is_digital(0)
) LFCLK_inst (.clock_out(Net_53)); | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
b... |
The wrong part of the code is:
cy_clock_v1_0 #(
.id("f7e4c631-7f18-4a80-b8dc-a27c020488da/5ae6fa4d-f41a-4a35-8821-7ce70389cb0c"),
.source_clock_id("9A908CA6-5BB3-4db0-B098-959E5D90882B"),
.divisor(0),
.period("0"),
.is_direct(1),
.is_digital(-1)
) LFCLK_inst (.clock_out(Net_53));
Th... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
boo... |
The wrong part of the code is:
cy_clock_v1_0 #(
.id("f7e4c631-7f18-4a80-b8dc-a27c020488da/5ae6fa4d-f41a-4a35-8821-7ce70389cb0c"),
.source_clock_id("9A908CA6-5BB3-4db0-B098-959E5D90882B"),
.divisor(0),
.period("0"),
.is_direct(1),
.is_digital(-1)
) LFCLK_inst (.clock_out(Net_53));
Th... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;... |
The wrong part of the code is:
Net_55 = 0;
Net_55 = 0;
Net_55 = 0;
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool... |
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
b... |
The wrong part of the code is:
Net_55 = 0;
Net_55 = 0;
Net_55 = 0;
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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
boo... |
The wrong part of the code is:
Net_55 = 0;
Net_55 = 0;
Net_55 = 0;
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
Net_55 = 0; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Net_88 = 0;
b... |
The wrong part of the code is:
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Net_88 = 0;
bool Net_91 = 0;
bool Net_92 = 0;
bool Net_93 = 0;
bool Net_94 = 0;
bool Net_95 = 0;
bool Net_96 = 0;
bool Net_97 = 0;
bool Net_98 = 0;
bool Net_99 = 0;
bool Net_100 = 0;
bool Ne... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Net_88 = 0;
bool N... |
The right code snippet is:
bool Net_72;
bool Net_71;
bool Net_70;
bool Net_90;
bool Net_89;
bool Net_88;
bool Net_91;
bool Net_92;
bool Net_93;
bool Net_94;
bool Net_95;
bool Net_96;
bool Net_97;
bool Net_98;
bool Net_99;
bool Net_100;
bool Net_101;
bool Net_102;
bool Net_53;
bool Net_60;
bool Net_55; | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Ne... |
The wrong part of the code is:
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Net_88 = 0;
bool Net_91 = 0;
bool Net_92 = 0;
bool Net_93 = 0;
bool Net_94 = 0;
bool Net_95 = 0;
bool Net_96 = 0;
bool Net_97 = 0;
bool Net_98 = 0;
bool Net_99 = 0;
bool Net_100 = 0;
bool Ne... | 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=pa_en
#pragma HLS INTERFACE ap_none port=clk
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool... |
The wrong part of the code is:
bool Net_72 = 0;
bool Net_71 = 0;
bool Net_70 = 0;
bool Net_90 = 0;
bool Net_89 = 0;
bool Net_88 = 0;
bool Net_91 = 0;
bool Net_92 = 0;
bool Net_93 = 0;
bool Net_94 = 0;
bool Net_95 = 0;
bool Net_96 = 0;
bool Net_97 = 0;
bool Net_98 = 0;
bool Net_99 = 0;
bool Net_100 = 0;
bool Ne... | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=ret... |
The wrong part of the code is:
dataout_tmp = {ap_uint<18>(0), datain(124,108), ap_uint<1>(0), datain(107,72), ap_uint<18>(0), datain(52,36), ap_uint<1>(0), datain(36,0), ap_uint<1>(0)};
The right code snippet is:
dataout_tmp = {ap_uint<18>(0), datain(124,108), ap_uint<1>(0), datain(107,72), ap_uint<18>... | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
dataout_tmp = {ap_uint<18>(0), datain(124,108), ap_uint<1>(0), datain(107,72), ap_uint<18>(0), datain(52,36), ap_uint<1>(0), datain(35,0)}; | '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 <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_no... |
The wrong part of the code is:
dataout_tmp = {ap_uint<18>(0), datain(124,108), ap_uint<1>(0), datain(107,72), ap_uint<18>(0), datain(52,36), ap_uint<1>(0), datain(36,0), ap_uint<1>(0)};
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 <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {... |
The wrong part of the code is:
dataout_tmp = {ap_uint<18>(0), datain(124,108), ap_uint<1>(0), datain(107,72), ap_uint<18>(0), datain(52,36), ap_uint<1>(0), datain(36,0), ap_uint<1>(0)};
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
dataout_tmp = {ap_uint<18>(0),... | '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 <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=ret... |
The wrong part of the code is:
ap_uint<144> dataout_tmp = 0;
The right code snippet is:
ap_uint<144> dataout_tmp; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
ap_uint<144> dataout_tmp; | '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 <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_no... |
The wrong part of the code is:
ap_uint<144> dataout_tmp = 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:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {... |
The wrong part of the code is:
ap_uint<144> dataout_tmp = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<144> dataout_tmp; | '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 <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=ret... |
The wrong part of the code is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) << 19 : ap_uint<18>(0);
The right code snippet is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) : ap_uint<18>(0); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) : ap_uint<18>(0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_no... |
The wrong part of the code is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) << 19 : ap_uint<18>(0);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {... |
The wrong part of the code is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) << 19 : ap_uint<18>(0);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
dataout_tmp(17,0) = (addnsub) ? datain(17,0) : ap_uint<18>(0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=ret... |
The wrong part of the code is:
default :
while(1) {
dataout_tmp = datain;
}
The right code snippet is:
default :
dataout_tmp = datain; | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_none port=return
... |
The right code snippet is:
default :
dataout_tmp = datain; | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {
#pragma HLS INTERFACE ap_ctrl_no... |
The wrong part of the code is:
default :
while(1) {
dataout_tmp = datain;
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void stratixii_reorder_output(ap_uint<144> datain, ap_uint<4> operation, bool addnsub, ap_uint<144>& dataout) {... |
The wrong part of the code is:
default :
while(1) {
dataout_tmp = datain;
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
default :
dataout_tmp = datain; | 'INF' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.