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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=q_n
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=q_n
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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=q_n
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_n random
The right code snippet is:
#pragma HLS interface m_axi port=q_n | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
#pragma HLS interface m_axi port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_n random
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_n random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS interface bram port=q_n
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
The wrong part of the code is:
#pragma HLS interface bram port=q_n
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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS interface bram port=q_n
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_fifo port=q_n | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS interface ap_none port=d
The right code snippet is:
#pragma HLS interface bram port=d | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
#pragma HLS interface bram port=d | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
The wrong part of the code is:
#pragma HLS interface ap_none port=d
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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS interface ap_none port=d
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface bram port=d | '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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
)... |
The wrong part of the code is:
#pragma HLS unroll inner
The right code snippet is:
N/A | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<bool>& q_n
) {
... |
The right code snippet is:
N/A | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
void async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hls::stream<bool>& q,
hls::stream<b... |
The wrong part of the code is:
#pragma HLS unroll inner
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 async_sr_ff(
hls::stream<bool>& clk,
hls::stream<bool>& reset,
hls::stream<bool>& set,
hls::stream<bool>& d,
hl... |
The wrong part of the code is:
#pragma HLS unroll inner
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
N/A | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1) + 1)) & 1;
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1) + 1)) & 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1) + 1)) & 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
ap_uint<1> D0_wire = 0;
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
ap_uint<1> D0_wire = 0;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
ap_uint<1> D0_wire = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 3))) & 1;
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 3))) & 1;
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 3))) & 1;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
O = (INIT_VALUE_wire >> (I2.to_uint() + (I1.to_uint() << 1))) & 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
ap_int<1> D0_wire;
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
ap_int<1> D0_wire;
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
ap_int<1> D0_wire;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<1> D0_wire; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
ap_uint<8> INIT_VALUE_wire = 0;
The right code snippet is:
ap_uint<8> INIT_VALUE_wire = INIT_VALUE; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
ap_uint<8> INIT_VALUE_wire = INIT_VALUE; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
ap_uint<8> INIT_VALUE_wire = 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
ap_uint<8> INIT_VALUE_wire = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<8> INIT_VALUE_wire = INIT_VALUE; | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
memcpy(&buffer_out[1], &buffer_in[0], sizeof(buffer_in));
The right code snippet is:
memcpy(&buffer_out[0], &buffer_in[0], sizeof(buffer_in)); | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
memcpy(&buffer_out[0], &buffer_in[0], sizeof(buffer_in)); | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
memcpy(&buffer_out[1], &buffer_in[0], sizeof(buffer_in));
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
memcpy(&buffer_out[1], &buffer_in[0], sizeof(buffer_in));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(&buffer_out[0], &buffer_in[0], sizeof(buffer_in)); | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire cyclic
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire factor=3
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire dim=2
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS array_partition variable=D0_wire dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=D0_wire complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D0
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D0
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer_out random
The right code snippet is:
#pragma HLS interface m_axi port=buffer_out | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS interface m_axi port=buffer_out | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer_out random
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer_out random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=buffer_out | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS interface bram port=D0
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS interface bram port=D0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS interface bram port=D0
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=D0
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=D0
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=D0
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=D0 | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < 10; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port=D0
#pragma HLS ... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | '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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl
#pragma HLS INTERFACE s_axilite port... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < 10; i++) {
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=INIT_VALUE
#pragma HLS INTERFACE s_axilite port=ctrl... |
The wrong part of the code is:
#pragma HLS unroll
for (int i = 0; i < 10; i++) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
// HLS code for testbench module
#include <stdio.h>
#include "math_ops.h"
int main() {
// Instantiate the math_ops module
math_ops math_ops_inst;
// Declare variables to hold ... |
The wrong part of the code is:
actual_output = math_ops_inst.add2(-1);
The right code snippet is:
actual_output = math_ops_inst.add2(5); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
// HLS code for testbench module
#include <stdio.h>
#include "math_ops.h"
int main() {
// Instantiate the math_ops module
math_ops math_ops_inst;
// Declare variables to hold the e... |
The right code snippet is:
actual_output = math_ops_inst.add2(5); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
// HLS code for testbench module
#include <stdio.h>
#include "math_ops.h"
int main() {
// Instantiate the math_ops module
math_ops math_ops_inst;
// Declare variabl... |
The wrong part of the code is:
actual_output = math_ops_inst.add2(-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:
// HLS code for testbench module
#include <stdio.h>
#include "math_ops.h"
int main() {
// Instantiate the math_ops module
math_ops... |
The wrong part of the code is:
actual_output = math_ops_inst.add2(-1);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
actual_output = math_ops_inst.add2(5); | 'OOB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.