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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERF... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERFACE a... |
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INT... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERF... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERFACE a... |
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INT... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERF... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERFACE a... |
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INT... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The high-level-synthesis bug type of the code is: MLP
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERF... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma HLS INTERFACE a... |
The right code snippet is:
Not applicable | 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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INTERFACE ap_none port=waveforms
#pragma... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
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=reset
#pragma HLS INTERFACE ap_none port=counter
#pragma HLS INT... |
The wrong part of the code is:
Not applicable (no suitable code snippet found)
The high-level-synthesis bug type of the code is: ILNU
The right code snippet is:
Not applicable | ILNU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &c... |
The wrong part of the code is:
int dbrk_data; //dbrk_data is not initialized, leading to a read of an uninitialized variable
The right code snippet is:
static int dbrk_data = 0; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &cpu_d_... |
The right code snippet is:
static int dbrk_data = 0; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::str... |
The wrong part of the code is:
int dbrk_data; //dbrk_data is not initialized, leading to a read of an uninitialized variable
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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_l... |
The wrong part of the code is:
int dbrk_data; //dbrk_data is not initialized, leading to a read of an uninitialized variable
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
static int dbrk_data = 0; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &c... |
The wrong part of the code is:
//infinite loop caused by incorrect loop termination
while(1){
dbrk_break = false;
dbrk_break_pulse = false;
dbrk_goto0 = false;
dbrk_goto1 = false;
dbrk_traceme = false;
dbrk_traceoff = false;
dbrk_traceon = false;
dbrk_trigout = false;
}
The ... | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &cpu_d_... |
The right code snippet is:
if (!reset_n) {
dbrk_break = false;
dbrk_break_pulse = false;
dbrk_goto0 = false;
dbrk_goto1 = false;
dbrk_traceme = false;
dbrk_traceoff = false;
dbrk_traceon = false;
dbrk_trigout = false;
} | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::str... |
The wrong part of the code is:
//infinite loop caused by incorrect loop termination
while(1){
dbrk_break = false;
dbrk_break_pulse = false;
dbrk_goto0 = false;
dbrk_goto1 = false;
dbrk_traceme = false;
dbrk_traceoff = false;
dbrk_traceon = false;
dbrk_trigout = false;
}
The ... | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_l... |
The wrong part of the code is:
//infinite loop caused by incorrect loop termination
while(1){
dbrk_break = false;
dbrk_break_pulse = false;
dbrk_goto0 = false;
dbrk_goto1 = false;
dbrk_traceme = false;
dbrk_traceoff = false;
dbrk_traceon = false;
dbrk_trigout = false;
}
The ... | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &c... |
The wrong part of the code is:
//scalar value mapped to array interface, leading to incorrect data access pattern
#pragma HLS INTERFACE ap_fifo port=E_st_data
#pragma HLS INTERFACE ap_fifo port=av_ld_data_aligned_filtered
#pragma HLS INTERFACE ap_fifo port=cpu_d_address
#pragma HLS INTERFACE ap_fifo port=cpu_d... | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &cpu_d_... |
The right code snippet is:
#pragma HLS INTERFACE axis port=E_st_data
#pragma HLS INTERFACE axis port=av_ld_data_aligned_filtered
#pragma HLS INTERFACE axis port=cpu_d_address
#pragma HLS INTERFACE axis port=cpu_d_read
#pragma HLS INTERFACE axis port=cpu_d_readdata
#pragma HLS INTERFACE axis port=cpu_d_wait
#pr... | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::str... |
The wrong part of the code is:
//scalar value mapped to array interface, leading to incorrect data access pattern
#pragma HLS INTERFACE ap_fifo port=E_st_data
#pragma HLS INTERFACE ap_fifo port=av_ld_data_aligned_filtered
#pragma HLS INTERFACE ap_fifo port=cpu_d_address
#pragma HLS INTERFACE ap_fifo port=cpu_d... | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_l... |
The wrong part of the code is:
//scalar value mapped to array interface, leading to incorrect data access pattern
#pragma HLS INTERFACE ap_fifo port=E_st_data
#pragma HLS INTERFACE ap_fifo port=av_ld_data_aligned_filtered
#pragma HLS INTERFACE ap_fifo port=cpu_d_address
#pragma HLS INTERFACE ap_fifo port=cpu_d... | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &c... |
The wrong part of the code is:
//inner loops not fully unrolled, leading to incorrect behavior
#pragma HLS unroll factor=2
for(int i=0; i<2; i++){
cpu_d_address.write(d_address);
cpu_d_readdata.write(av_ld_data_aligned_filtered.read());
cpu_d_read.write(d_read);
cpu_d_writedata.write(E_st_data.... | ILNU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::stream<int> &cpu_d_... |
The right code snippet is:
cpu_d_address.write(d_address);
cpu_d_readdata.write(av_ld_data_aligned_filtered.read());
cpu_d_read.write(d_read);
cpu_d_writedata.write(E_st_data.read());
cpu_d_write.write(d_write);
cpu_d_wait.write(d_waitrequest); | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_ld_data_aligned_filtered,
hls::str... |
The wrong part of the code is:
//inner loops not fully unrolled, leading to incorrect behavior
#pragma HLS unroll factor=2
for(int i=0; i<2; i++){
cpu_d_address.write(d_address);
cpu_d_readdata.write(av_ld_data_aligned_filtered.read());
cpu_d_read.write(d_read);
cpu_d_writedata.write(E_st_data.... | 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:
```c++
#include <hls_stream.h>
void niosii_nios2_gen2_0_cpu_nios2_oci_dbrk(
hls::stream<int> &E_st_data,
hls::stream<int> &av_l... |
The wrong part of the code is:
//inner loops not fully unrolled, leading to incorrect behavior
#pragma HLS unroll factor=2
for(int i=0; i<2; i++){
cpu_d_address.write(d_address);
cpu_d_readdata.write(av_ld_data_aligned_filtered.read());
cpu_d_read.write(d_read);
cpu_d_writedata.write(E_st_data.... | 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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
readdata(32, 2) = 0;
The right code snippet is:
readdata(31, 2) = 0; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
readdata(31, 2) = 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
readdata(32, 2) = 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
readdata(32, 2) = 0;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
readdata(31, 2) = 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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
bool w_locked = false;
The right code snippet is:
bool w_locked; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
bool w_locked; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
bool w_locked = false;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
bool w_locked = false;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool w_locked; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
c0 = wire_sd1_clk[-1];
The right code snippet is:
c0 = wire_sd1_clk[0]; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
c0 = wire_sd1_clk[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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
c0 = wire_sd1_clk[-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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
c0 = wire_sd1_clk[-1];
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
c0 = wire_sd1_clk[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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
while(1) {}
The right code snippet is:
while(true) {} | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
while(true) {} | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
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:
while(true) {} | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
w_select_control = (int)(~address[1]) & address[0];
The right code snippet is:
w_select_control = (~address[1]) & address[0]; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
w_select_control = (~address[1]) & address[0]; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
w_select_control = (int)(~address[1]) & address[0];
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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
w_select_control = (int)(~address[1]) & address[0];
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
w_select_control = (~address[1]) & address[0]; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTE... |
The wrong part of the code is:
bool pfdena_reg = 0;
The right code snippet is:
bool pfdena_reg = 1; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The right code snippet is:
bool pfdena_reg = 1; | '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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=areset bundle=CTRL_BUS
#prag... |
The wrong part of the code is:
bool pfdena_reg = 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=address bundle=CTRL_BUS
#pragma HLS INTERFACE s_axil... |
The wrong part of the code is:
bool pfdena_reg = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool pfdena_reg = 1; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragm... |
The wrong part of the code is:
ex_dst_reg_sel = 10;
The right code snippet is:
ex_dst_reg_sel = 2; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragma HLS... |
The right code snippet is:
ex_dst_reg_sel = 2; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_so... |
The wrong part of the code is:
ex_dst_reg_sel = 10;
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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragm... |
The wrong part of the code is:
ex_dst_reg_sel = 10;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
ex_dst_reg_sel = 2; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragm... |
The wrong part of the code is:
int ex_alu_op;
The right code snippet is:
int ex_alu_op = special & 7; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragma HLS... |
The right code snippet is:
int ex_alu_op = special & 7; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_so... |
The wrong part of the code is:
int ex_alu_op;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragm... |
The wrong part of the code is:
int ex_alu_op;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
int ex_alu_op = special & 7; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragm... |
The wrong part of the code is:
ex_alu_op = special << 10;
The right code snippet is:
ex_alu_op = special & 7; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragma HLS... |
The right code snippet is:
ex_alu_op = special & 7; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_so... |
The wrong part of the code is:
ex_alu_op = special << 10;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragm... |
The wrong part of the code is:
ex_alu_op = special << 10;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
ex_alu_op = special & 7; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragm... |
The wrong part of the code is:
int id_rt_is_source = false;
The right code snippet is:
bool id_rt_is_source = false; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragma HLS... |
The right code snippet is:
bool id_rt_is_source = false; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_so... |
The wrong part of the code is:
int id_rt_is_source = false;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragm... |
The wrong part of the code is:
int id_rt_is_source = false;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool id_rt_is_source = false; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragm... |
The wrong part of the code is:
const int LW = 0;
The right code snippet is:
const int LW = 35; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_source
#pragma HLS... |
The right code snippet is:
const int LW = 35; | '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=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragma HLS INTERFACE ap_none port=if_pc_so... |
The wrong part of the code is:
const int LW = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=opcode
#pragma HLS INTERFACE ap_none port=special
#pragma HLS INTERFACE ap_none port=branch_eq
#pragm... |
The wrong part of the code is:
const int LW = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
const int LW = 35; | '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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
shreg = (shreg << 2) | s_in;
The right code snippet is:
shreg = (shreg << 1) | s_in; | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
shreg = (shreg << 1) | s_in; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
shreg = (shreg << 2) | s_in;
The high-level-synthesis bug type of the code is: OOB | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
shreg = (shreg << 2) | s_in;
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
shreg = (shreg << 1) | s_in; | OOB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
reg unsigned int shreg = 0;
The right code snippet is:
reg unsigned int shreg; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
reg unsigned int shreg; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
reg unsigned int shreg = 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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
reg unsigned int shreg = 0;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
reg unsigned int shreg; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
shreg = (shreg << 33) | s_in;
The right code snippet is:
shreg = (shreg << 1) | s_in; | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
shreg = (shreg << 1) | s_in; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
shreg = (shreg << 33) | s_in;
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
shreg = (shreg << 33) | s_in;
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
shreg = (shreg << 1) | s_in; | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
if (shift_en) {
while (1) {
shreg = (shreg << 1) | s_in;
}
}
The right code snippet is:
if (shift_en) {
shreg = (shreg << 1) | s_in;
} | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
if (shift_en) {
shreg = (shreg << 1) | s_in;
} | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
if (shift_en) {
while (1) {
shreg = (shreg << 1) | s_in;
}
}
The high-level-synthesis bug type of the code is: INF | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
if (shift_en) {
while (1) {
shreg = (shreg << 1) | s_in;
}
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
if (shift_en) {
shreg = (shreg << 1) | s_in;
} | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
shreg = (int) (shreg << 1) | s_in;
The right code snippet is:
shreg = (shreg << 1) | s_in; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
shreg = (shreg << 1) | s_in; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
shreg = (int) (shreg << 1) | s_in;
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
shreg = (int) (shreg << 1) | s_in;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
shreg = (shreg << 1) | s_in; | 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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTER... |
The wrong part of the code is:
#pragma HLS unroll factor=3
The right code snippet is:
None | 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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragma HLS INTERFACE ... |
The right code snippet is:
None | 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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS INTERFACE ap_none port=p_load
#pragm... |
The wrong part of the code is:
#pragma HLS unroll factor=3
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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=s_in
#pragma HLS... |
The wrong part of the code is:
#pragma HLS unroll factor=3
The high-level-synthesis bug type of the code is: MLU
The right code snippet is:
None | MLU |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.