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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mcb_wr_data random
The right code snippet is:
#pragma HLS interface m_axi port=mcb_wr_data | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_uint<... |
The right code snippet is:
#pragma HLS interface m_axi port=mcb_wr_data | '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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mcb_wr_data 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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=mcb_wr_data random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=mcb_wr_data | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_... |
The wrong part of the code is:
#pragma HLS interface bram port=wb_adr_i
The right code snippet is:
#pragma HLS interface axis port=wb_adr_i | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_uint<... |
The right code snippet is:
#pragma HLS interface axis port=wb_adr_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
... |
The wrong part of the code is:
#pragma HLS interface bram port=wb_adr_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
... |
The wrong part of the code is:
#pragma HLS interface bram port=wb_adr_i
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=wb_adr_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wb_dat_o
The right code snippet is:
#pragma HLS interface ap_vld port=wb_dat_o | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_uint<... |
The right code snippet is:
#pragma HLS interface ap_vld port=wb_dat_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wb_dat_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
... |
The wrong part of the code is:
#pragma HLS interface ap_none port=wb_dat_o
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_vld port=wb_dat_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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_... |
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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_uint<... |
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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
... |
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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
... |
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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_... |
The wrong part of the code is:
#pragma HLS unroll
if (cycle_reg) {
The right code snippet is:
if (cycle_reg) { | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
*/
ap_uint<... |
The right code snippet is:
if (cycle_reg) { | '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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
/*
* Wishbone interface
... |
The wrong part of the code is:
#pragma HLS unroll
if (cycle_reg) {
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:
Here is the HLS translation of the given Verilog code:
```
#include <ap_int.h>
void wb_mcb_32(
ap_uint<1> clk,
ap_uint<1> rst,
... |
The wrong part of the code is:
#pragma HLS unroll
if (cycle_reg) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
if (cycle_reg) { | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
temp[i][j] += a[i+1][k+1] * b[k+1][j+1];
The right code snippet is:
temp[i][j] += a[i][k] * b[k][j]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
temp[i][j] += a[i][k] * b[k][j]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
temp[i][j] += a[i+1][k+1] * b[k+1][j+1];
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
temp[i][j] += a[i+1][k+1] * b[k+1][j+1];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
temp[i][j] += a[i][k] * b[k][j]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
data_t temp[5][5];
The right code snippet is:
data_t temp[4][4]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
data_t temp[4][4]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
data_t temp[5][5];
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
data_t temp[5][5];
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
data_t temp[4][4]; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
temp[i][j] += (data_t)(a[i][k]) << (data_t)(b[k][j]);
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
temp[i][j] += (data_t)(a[i][k]) << (data_t)(b[k][j]);
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
temp[i][j] += (data_t)(a[i][k]) << (data_t)(b[k][j]);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
ROW: for (int i = 0; ; i++) {
The right code snippet is:
ROW: for (int i = 0; i < 4; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
ROW: for (int i = 0; i < 4; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
ROW: for (int i = 0; ; i++) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
ROW: for (int i = 0; ; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
ROW: for (int i = 0; i < 4; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
temp[i][j] += (unsigned)(a[i][k]) * (unsigned)(b[k][j]);
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
temp[i][j] += (unsigned)(a[i][k]) * (unsigned)(b[k][j]);
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
temp[i][j] += (unsigned)(a[i][k]) * (unsigned)(b[k][j]);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
temp[i][j] += (data_t)(a[i][k]) * (data_t)(b[k][j]); | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
temp[i+1][j+1] = 0;
The right code snippet is:
temp[i][j] = 0; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
temp[i][j] = 0; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
temp[i+1][j+1] = 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:
#pragma HLS INTERFACE ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
temp[i+1][j+1] = 0;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
temp[i][j] = 0; | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a block factor=2 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a block factor=2 dim=2
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a block factor=2 dim=2
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 dim=2
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=3
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=3
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=a cyclic factor=2 dim=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS DATAFLOW wait=2
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_memory depth=4 port=a offset=4
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_me... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a offset=4
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_memory depth=4 port=a offset=4
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory ... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_memory depth=4 port=a offset=4
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a offset=4
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_memory depth=4 port=a offset=4
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite p... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_memory depth=4 port=a offset=4
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=a offset=4
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=a | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=a | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=a offset=4
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi depth=1024 port=a offset=4
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi depth=1024 port=a | '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 depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The wrong part of the code is:
#pragma HLS INTERFACE bram depth=4 port=a
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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 depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 port=r... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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 depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memor... |
The wrong part of the code is:
#pragma HLS INTERFACE bram depth=4 port=a
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 depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundl... |
The wrong part of the code is:
#pragma HLS INTERFACE bram depth=4 port=a
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_none depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none depth=4 port=a
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_none depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 por... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_none depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_me... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none depth=4 port=a
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_none depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bu... |
The wrong part of the code is:
#pragma HLS INTERFACE ap_none depth=4 port=a
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_memory depth=4 port=a | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
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 ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
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 ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
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 ap_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory dept... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
The right code snippet is:
#pragma HLS UNROLL factor=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_memory depth=4 p... |
The right code snippet is:
#pragma HLS UNROLL factor=2 | '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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode bundle=CTRL
#pragma HLS INTERFACE ap_... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
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_memory depth=4 port=a
#pragma HLS INTERFACE ap_memory depth=4 port=b
#pragma HLS INTERFACE s_axilite port=mode ... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS UNROLL factor=2 | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port... |
The wrong part of the code is:
reg = in_val + 1;
The right code snippet is:
reg = in_val; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The right code snippet is:
reg = in_val; | '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:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctr... |
The wrong part of the code is:
reg = in_val + 1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &o... |
The wrong part of the code is:
reg = in_val + 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
reg = in_val; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port... |
The wrong part of the code is:
bool load_val;
uint8_t in_val;
The right code snippet is:
bool load_val, shift_val;
uint8_t in_val; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The right code snippet is:
bool load_val, shift_val;
uint8_t in_val; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctr... |
The wrong part of the code is:
bool load_val;
uint8_t in_val;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &o... |
The wrong part of the code is:
bool load_val;
uint8_t in_val;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool load_val, shift_val;
uint8_t in_val; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port... |
The wrong part of the code is:
reg = (reg << 8) & 0x7F;
The right code snippet is:
reg = (reg << 1) & 0x7F; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The right code snippet is:
reg = (reg << 1) & 0x7F; | '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:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctr... |
The wrong part of the code is:
reg = (reg << 8) & 0x7F;
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:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &o... |
The wrong part of the code is:
reg = (reg << 8) & 0x7F;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
reg = (reg << 1) & 0x7F; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port... |
The wrong part of the code is:
static int8_t reg = 0;
The right code snippet is:
static uint8_t reg = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctrl_none port=retu... |
The right code snippet is:
static uint8_t reg = 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:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &out
) {
#pragma HLS INTERFACE ap_ctr... |
The wrong part of the code is:
static int8_t reg = 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:
```c++
void shift_register(
hls::stream<uint8_t> &in,
hls::stream<bool> &load,
hls::stream<bool> &shift,
hls::stream<uint8_t> &o... |
The wrong part of the code is:
static int8_t reg = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static uint8_t reg = 0; | 'USE' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.