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_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic dim=0
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | '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_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | '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_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic dim=0
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_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in cyclic dim=0
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | '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_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete factor=2 dim=0
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete factor=2 dim=0
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete factor=2 dim=0
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete dim=1
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete dim=1
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_in complete dim=1
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=data_in complete dim=0 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS dataflow region
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow region
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The high-level-synthesis bug type of the code is: 'IDAP' | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=data_in
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data_in
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data_in
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface m_axi port=data_in
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface bram port=data_in
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS interface bram port=data_in
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface bram port=data_in
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=data_in | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=data_in
The right code snippet is:
#pragma HLS interface ap_none port=data_in | '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_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_none port=data_in | '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_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=data_in
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_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=data_in
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=data_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_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERF... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS INTERFACE ap_none port=valid_a
#pragma... |
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 ap_clk port=clk
#pragma HLS INTERFACE ap_rst_n port=rst_n
#pragma HLS INTERFACE ap_none port=data_in
#pragma HLS I... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
wr_gray_next = ((ap_uint<AW+2>)0, wr_binary_next.range(AW+1, 1)) ^ wr_binary_next.range(AW, 0);
The right code snippet is:
wr_gray_next = ((ap_uint<AW+1>)0, wr_binary_next.range(AW, 1)) ^ wr_binary_next.range(AW, 0); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
wr_gray_next = ((ap_uint<AW+1>)0, wr_binary_next.range(AW, 1)) ^ wr_binary_next.range(AW, 0); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
wr_gray_next = ((ap_uint<AW+2>)0, wr_binary_next.range(AW+1, 1)) ^ wr_binary_next.range(AW, 0);
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
wr_gray_next = ((ap_uint<AW+2>)0, wr_binary_next.range(AW+1, 1)) ^ wr_binary_next.range(AW, 0);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
wr_gray_next = ((ap_uint<AW+1>)0, wr_binary_next.range(AW, 1)) ^ wr_binary_next.range(AW,... | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
ap_uint<AW+1> wr_binary_pointer = 0;
The right code snippet is:
ap_uint<AW+1> wr_binary_pointer; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
ap_uint<AW+1> wr_binary_pointer; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
ap_uint<AW+1> wr_binary_pointer = 0;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
ap_uint<AW+1> wr_binary_pointer = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<AW+1> wr_binary_pointer; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 3);
The right code snippet is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 3);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 3);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
wr_binary_next = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
wr_gray_pointer = (ap_int<AW+1>)0;
The right code snippet is:
wr_gray_pointer = (ap_uint<AW+1>)0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
wr_gray_pointer = (ap_uint<AW+1>)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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
wr_gray_pointer = (ap_int<AW+1>)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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
wr_gray_pointer = (ap_int<AW+1>)0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
wr_gray_pointer = (ap_uint<AW+1>)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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
for (int i=0; i<2; i++) {
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
}
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
for (int i=0; i<2; i++) {
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
}
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
for (int i=0; i<2; i++) {
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
}
The high-level-synthesis bug type of the code is: 'MLU'
The rig... | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
bool wr_fifo_full = 0;
The right code snippet is:
bool wr_fifo_full = false; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
bool wr_fifo_full = false; | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
bool wr_fifo_full = 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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
bool wr_fifo_full = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool wr_fifo_full = false; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
The right code snippet is:
None | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
wr_binary_pointer = wr_binary_pointer + (ap_uint<AW+1>)(wr_write, 0);
wr_gray_pointer = ((ap_uint<AW+1>)0, wr_binary_pointer.range(AW, 1)) ^ wr_binary_pointer.range(AW, 0);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=3
The right code snippet is:
None | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=3
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=3
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=5
The right code snippet is:
None | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=5
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer cyclic factor=5
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer dim=2
The right code snippet is:
None | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer 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:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS array_partition variable=wr_binary_pointer dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS dataflow
The right code snippet is:
None | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS dataflow
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS dataflow
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wr_fifo_full
The right code snippet is:
None | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wr_fifo_full
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wr_fifo_full
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS interface m_axi port=wr_fifo_full offset=slave bundle=gmem0
The right code snippet is:
None | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS interface m_axi port=wr_fifo_full offset=slave bundle=gmem0
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS interface m_axi port=wr_fifo_full offset=slave bundle=gmem0
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full... |
The wrong part of the code is:
#pragma HLS interface axis port=wr_fifo_full
The right code snippet is:
None | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& wr_fifo_full,
... |
The right code snippet is:
None | '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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_pointer,
bool wr_write,
bool& w... |
The wrong part of the code is:
#pragma HLS interface axis port=wr_fifo_full
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 <ap_int.h>
const int AW = 2;
void fifo_full_block(
bool reset,
ap_uint<1> wr_clk,
ap_uint<AW+1> wr_rd_gray_po... |
The wrong part of the code is:
#pragma HLS interface axis port=wr_fifo_full
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
None | 'SMA' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.