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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_hs port=return
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_hs port=return
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_hs port=return
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_ctrl_none port=return | 'IDAP' |
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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=16
The right code snippet is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=256 | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=256 | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=16
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=16
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=buf_Q offset=slave depth=256 | 'RAMB' |
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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS interface bram port=buf_Q
The right code snippet is:
#pragma HLS interface ap_memory port=buf_Q | '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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS interface ap_memory port=buf_Q | '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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS interface bram port=buf_Q
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS interface bram port=buf_Q
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_memory port=buf_Q | '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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buf_Q
The right code snippet is:
#pragma HLS interface ap_none port=buf_Q | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
#pragma HLS interface ap_none port=buf_Q | '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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buf_Q
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buf_Q
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=buf_Q | 'AMS' |
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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool... |
The wrong part of the code is:
#pragma HLS unroll
for(int i=0; i<4; i++) {
The right code snippet is:
for(int i=0; i<4; i++) { | '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_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signals
bool RESE... |
The right code snippet is:
for(int i=0; i<4; 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
bool GATE
) {
// Local signa... |
The wrong part of the code is:
#pragma HLS unroll
for(int i=0; i<4; 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:
```c++
#include <hls_math.h>
void sky130_fd_sc_ls__dlrbp (
bool &Q ,
bool &Q_N ,
bool RESET_B,
bool D ,
... |
The wrong part of the code is:
#pragma HLS unroll
for(int i=0; i<4; i++) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for(int i=0; i<4; 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:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
n1 = A[-1] ^ B[2];
The right code snippet is:
n1 = A ^ B; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
n1 = A ^ B; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
n1 = A[-1] ^ B[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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
n1 = A[-1] ^ B[2];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
n1 = A ^ B; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 0;
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
n4 = n2 << n3;
The right code snippet is:
n4 = n2 & n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
n4 = n2 & n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
n4 = n2 << n3;
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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
n4 = n2 << n3;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
n4 = n2 & n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
while(1) {}
The right code snippet is:
#pragma HLS PIPELINE II=1 | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
#pragma HLS PIPELINE II=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:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
while(1) {}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
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:
#pragma HLS PIPELINE II=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:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
Co = (int)n2 | (int)n3;
The right code snippet is:
Co = n2 | n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
Co = n2 | n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
Co = (int)n2 | (int)n3;
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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
Co = (int)n2 | (int)n3;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
Co = n2 | n3; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12;
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12;
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 0;
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8 = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | '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=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8_buf;
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8_buf;
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8_buf;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
ap_uint<1> n1, n2, n3, n4, n5, n6, n7, n8; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 cyclic
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 factor=3
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 dim=2
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
#pragma HLS array_partition variable=n1 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=n1 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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
#pragma HLS dataflow wait
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS dataflow wait
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
#pragma HLS dataflow wait
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_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uin... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none ... | '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_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<1> ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co | '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_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
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_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include ... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_vld port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_hs port=return
#pragma HLS INTERFACE ap_none port=S,Co
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTE... | '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 m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTE... | '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 m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co | '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 m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_A... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
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 m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=A,B,Ci
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE ap_none port=S,Co
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#p... | '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 bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uin... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none ... | '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 bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<1> ... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co | '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 bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
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 bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include ... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTER... | '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_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_no... | '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_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co | '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_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
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_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_fifo port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=A,B,Ci
#pragma HLS IN... | '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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_... |
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uint<1> A, ap_uint<... |
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#include "ap_int.h"
void Full_Adder(ap_uin... |
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_none port=A,B,Ci
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=S,Co
#inclu... |
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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#pragma HLS ... |
The wrong part of the code is:
if (ren && protect[addr+1][0]) {
dout = mem[addr];
}
The right code snippet is:
if (ren && protect[addr][0]) {
dout = mem[addr];
} | '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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#pragma HLS INTER... |
The right code snippet is:
if (ren && protect[addr][0]) {
dout = mem[addr];
} | '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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#... |
The wrong part of the code is:
if (ren && protect[addr+1][0]) {
dout = mem[addr];
}
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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
if (ren && protect[addr+1][0]) {
dout = mem[addr];
}
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (ren && protect[addr][0]) {
dout = mem[addr];
} | '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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#pragma HLS ... |
The wrong part of the code is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks
unsigned char a = mem[0];
The right code snippet is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks | '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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#pragma HLS INTER... |
The right code snippet is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks | '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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=ren bundle=CTRL_BUS
#... |
The wrong part of the code is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks
unsigned char a = mem[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 s_axilite port=addr bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=wen bundle=CTRL_BUS
#pragma HLS INTERFACE... |
The wrong part of the code is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks
unsigned char a = mem[0];
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
unsigned char mem[m]; // memory block
bool protect[n][p]; // protection blocks | 'INIT' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.