instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface m_axi port=my_port offset=slave
The right code snippet is:
#pragma HLS interface m_axi port=my_port | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface m_axi port=my_port | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=my_port offset=slave
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=my_port offset=slave
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=my_port | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface bram port=my_port
The right code snippet is:
#pragma HLS interface ap_fifo port=my_port | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface ap_fifo port=my_port | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS interface bram port=my_port
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface bram port=my_port
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_fifo port=my_port | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=my_port
The right code snippet is:
#pragma HLS interface bram port=my_port | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface bram port=my_port | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=my_port
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=my_port
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface bram port=my_port | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
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:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#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 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS unroll factor=2
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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS
#pragma HLS INT... |
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 s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=SHIFT bundle=CTRL_BUS... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=num bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=DATA bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
#pragma HLS unroll factor=2
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:
#pragma HLS INTERFACE ap_clk port=sys_clk_i
#pragma HLS INTERFACE ap_rst port=sys_reset_i
#pragma HLS INTERFACE s_axilite port=d_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=... |
The wrong part of the code is:
ap_uint<4> wp;
ap_uint<4> rp;
Bug_type:
OOB
The right code snippet is:
ap_uint<4> wp = 0;
ap_uint<4> rp = 0; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk_i
#pragma HLS INTERFACE ap_rst port=sys_reset_i
#pragma HLS INTERFACE s_axilite port=d_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=we_i ... |
The right code snippet is:
ap_uint<4> wp = 0;
ap_uint<4> rp = 0; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=sys_clk_i
#pragma HLS INTERFACE ap_rst port=sys_reset_i
#pragma HLS INTERFACE s_axilite port=d_i bundle=CTRL_BUS
#pragma HLS INTERFACE s_ax... |
The wrong part of the code is:
ap_uint<4> wp;
ap_uint<4> rp;
Bug_type:
OOB
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=sys_clk_i
#pragma HLS INTERFACE ap_rst port=sys_reset_i
#pragma HLS INTERFACE s_axilite port=d_i bundl... |
The wrong part of the code is:
ap_uint<4> wp;
ap_uint<4> rp;
Bug_type:
OOB
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
ap_uint<4> wp = 0;
ap_uint<4> rp = 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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[5], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
w1 = hls::mux(I[5], I[1], S[0]);
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[0]); | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[5], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[5], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[5], I[1], S[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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[5], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[5], I[1], S[0]);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1,... |
The wrong part of the code is:
int w1, w2, w3 = 0;
The right code snippet is:
int w1, w2, w3; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, ... |
The right code snippet is:
int w1, w2, w3; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = h... |
The wrong part of the code is:
int w1, w2, w3 = 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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = h... |
The wrong part of the code is:
int w1, w2, w3 = 0;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
int w1, w2, w3; | INIT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[5]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[5]);
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[0]); | SHFT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[5]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[5]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[5]);
The high-level-synthesis bug type of the code is: SHFT | SHFT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[5]);
w2 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[5]);
The high-level-synthesis bug type of the code is: SHFT
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[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 <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
while(true){
w3 =... |
The wrong part of the code is:
while(true){
w3 = hls::mux(w1, w2, S[1]);
}
The right code snippet is:
w3 = hls::mux(w1, w2, S[1]); | INF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
while(true){
w3 = hls:... |
The right code snippet is:
w3 = hls::mux(w1, w2, S[1]); | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
while(true... |
The wrong part of the code is:
while(true){
w3 = hls::mux(w1, w2, S[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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
while(true){
w3 = hls::mux(w1, w2, S[1]);
}
The high-level-synthesis bug type of the code is: INF
The right code snippet is:
w3 = hls::mux(w1, w2, S[1]); | INF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
signed int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(... |
The wrong part of the code is:
signed int w1, w2, w3;
The right code snippet is:
int w1, w2, w3; | USE |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
signed int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w... |
The right code snippet is:
int w1, w2, w3; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
signed int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 ... |
The wrong part of the code is:
signed int w1, w2, w3;
The high-level-synthesis bug type of the code is: USE | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
signed int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 ... |
The wrong part of the code is:
signed int w1, w2, w3;
The high-level-synthesis bug type of the code is: USE
The right code snippet is:
int w1, w2, w3; | USE |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[0]);
w2 = h... | MLU |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3; | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
The high-level-synthesis bug type of the code is: MLU | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]);
O = w3;
The high-level-synthesis bug type of the code is: MLU
The right co... | MLU |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1 = 0, w2 = 0, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls:... |
The wrong part of the code is:
int w1 = 0, w2 = 0, w3 = 0;
The right code snippet is:
int w1, w2, w3; | ZERO |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1 = 0, w2 = 0, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(... |
The right code snippet is:
int w1, w2, w3; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1 = 0, w2 = 0, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
... |
The wrong part of the code is:
int w1 = 0, w2 = 0, w3 = 0;
The high-level-synthesis bug type of the code is: ZERO | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1 = 0, w2 = 0, w3 = 0;
w1 = hls::mux(I[0], I[1], S[0]);
... |
The wrong part of the code is:
int w1 = 0, w2 = 0, w3 = 0;
The high-level-synthesis bug type of the code is: ZERO
The right code snippet is:
int w1, w2, w3; | ZERO |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
memcpy(w1, w2, w3);
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w... |
The wrong part of the code is:
int w1, w2, w3;
memcpy(w1, w2, w3);
The right code snippet is:
int w1, w2, w3; | BUF |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
memcpy(w1, w2, w3);
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = h... |
The right code snippet is:
int w1, w2, w3; | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
memcpy(w1, w2, w3);
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S... |
The wrong part of the code is:
int w1, w2, w3;
memcpy(w1, w2, w3);
The high-level-synthesis bug type of the code is: BUF | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
memcpy(w1, w2, w3);
w1 = hls::mux(I[0], I[1], S... |
The wrong part of the code is:
int w1, w2, w3;
memcpy(w1, w2, w3);
The high-level-synthesis bug type of the code is: BUF
The right code snippet is:
int w1, w2, w3; | BUF |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS array_partition variable=I cyclic dim=1
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I cyclic dim=1
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I cyclic dim=1
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=3
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=3
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=5
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=5
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS array_partition variable=I complete dim=5
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
#pragma HLS array_partition variable=I complete dim=1 | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=I
The right code snippet is:
#pragma HLS interface ap_fifo port=I | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS interface ap_fifo port=I | 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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=I
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=I
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
#pragma HLS interface ap_fifo port=I | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS interface m_axi port=I offset=random
The right code snippet is:
#pragma HLS interface m_axi port=I offset=slave | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS interface m_axi port=I offset=slave | 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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS interface m_axi port=I offset=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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS interface m_axi port=I offset=random
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
#pragma HLS interface m_axi port=I offset=slave | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS interface bram port=I
The right code snippet is:
#pragma HLS interface ap_fifo port=I | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS interface ap_fifo port=I | 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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS interface bram port=I
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS interface bram port=I
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
#pragma HLS interface ap_fifo port=I | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=O
The right code snippet is:
#pragma HLS interface ap_none port=O | AMS |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
The right code snippet is:
#pragma HLS interface ap_none port=O | 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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=O
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=O
The high-level-synthesis bug type of the code is: AMS
The right code snippet is:
#pragma HLS interface ap_none port=O | AMS |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS pipeline II=5
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS pipeline II=5
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS pipeline II=5
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2,... |
The wrong part of the code is:
#pragma HLS unroll factor=2
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::mux(w1, w2, S[1]... |
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::mux(I[2], I[3], S[0]);
w3 = hls::... |
The wrong part of the code is:
#pragma HLS unroll factor=2
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:
#include <hls_math.h>
void MUX4(int I[4], int S[2], int &O) {
int w1, w2, w3;
w1 = hls::mux(I[0], I[1], S[0]);
w2 = hls::... |
The wrong part of the code is:
#pragma HLS unroll factor=2
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:
#pragma HLS INTERFACE ap_none port=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void ... |
The wrong part of the code is:
inverter_inputs[n+1] = inverter_outputs[n-2];
The right code snippet is:
inverter_inputs[n-1] = inverter_outputs[n-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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs[n];
void RingO... |
The right code snippet is:
inverter_inputs[n-1] = inverter_outputs[n-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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inverter_outputs[n];
bool inverter_inputs... |
The wrong part of the code is:
inverter_inputs[n+1] = inverter_outputs[n-2];
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=out
#pragma HLS INTERFACE ap_ctrl_none port=return
const int n = 5;
const int f_clk = 50;
bool inve... |
The wrong part of the code is:
inverter_inputs[n+1] = inverter_outputs[n-2];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
inverter_inputs[n-1] = inverter_outputs[n-2]; | 'OOB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.