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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=sum
The right code snippet is:
#pragma HLS interface ap_none port=sum | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
The right code snippet is:
#pragma HLS interface ap_none port=sum | '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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=sum
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=sum
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=sum | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
The wrong part of the code is:
#pragma HLS interface m_axi port=sum random
The right code snippet is:
#pragma HLS interface m_axi port=sum | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
The right code snippet is:
#pragma HLS interface m_axi port=sum | '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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=sum 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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
The wrong part of the code is:
#pragma HLS interface m_axi port=sum random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=sum | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
The wrong part of the code is:
#pragma HLS interface bram port=sum
The right code snippet is:
#pragma HLS interface axis port=sum | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
The right code snippet is:
#pragma HLS interface axis port=sum | '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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
The wrong part of the code is:
#pragma HLS interface bram port=sum
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
The wrong part of the code is:
#pragma HLS interface bram port=sum
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=sum | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
The wrong part of the code is:
#pragma HLS interface ap_none port=sum_valid
The right code snippet is:
#pragma HLS interface ap_memory port=sum | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
The right code snippet is:
#pragma HLS interface ap_memory port=sum | '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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
The wrong part of the code is:
#pragma HLS interface ap_none port=sum_valid
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
The wrong part of the code is:
#pragma HLS interface ap_none port=sum_valid
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_memory port=sum | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & c... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) | (a[3] & cin) |... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a + b + cin;
cout = (a[3] & b[3]) ... |
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:
void adder_4bit(
const ap_uint<4> a,
const ap_uint<4> b,
const bool cin,
ap_uint<4>& sum,
bool& cout
) {
sum = a... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
address_a = ram_write_address + 1;
The right code snippet is:
address_a = ram_write_address; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
address_a = ram_write_address; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
address_a = ram_write_address + 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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
address_a = ram_write_address + 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
address_a = ram_write_address; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 0;
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 0;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(RAM_WR_ADDRESS_WIDTH)> mimic_sample_count = mimic_sample_count << 13;
The right code snippet is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(RAM_WR_ADDRESS_WIDTH)> mimic_sample_count; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(RAM_WR_ADDRESS_WIDTH)> mimic_sample_count; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(RAM_WR_ADDRESS_WIDTH)> mimic_sample_count = mimic_sample_count << 13;
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(RAM_WR_ADDRESS_WIDTH)> mimic_sample_count = mimic_sample_count << 13;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
ap_uint<ap_uint<ap_uint<12>(NUM_DEBUG_SAMPLES_TO_STORE)>(... | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do some work
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do some work
}
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
// do some work
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
ap_int<1> mimic_done_in_dbg;
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
ap_int<1> mimic_done_in_dbg;
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
ap_int<1> mimic_done_in_dbg;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// do some work
// do some work
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// do some work
// do some work
}
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
for (int i = 0; i < 5; i++) {
// do some work
// do some work
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 0;
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
ap_uint<1> mimic_done_in_dbg = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<1> mimic_done_in_dbg; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH/2];
The right code snippet is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH]; | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH]; | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH/2];
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH/2];
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
const int DEPTH = 4096;
ap_uint<WIDTH_A> data_a[DEPTH]; | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=2 dim=1
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=3 dim=1
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=3 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=4 dim=2
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=4 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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS array_partition variable=data_a cyclic factor=4 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=data_a complete dim=1 | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=q_a_reg
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=q_a_reg
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=q_a_reg
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'IDAP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_a_reg
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_a_reg
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q_a_reg
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS interface bram port=q_a_reg
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS interface bram port=q_a_reg
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS interface bram port=q_a_reg
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q_a_reg
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q_a_reg
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q_a_reg
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=q_a_reg | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// do some work
}
}
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM_WR_ADDRESS_WIDT... |
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | '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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PLL_STEPS_PER_CYCLE = 24;
const int RAM... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// do some work
}
}
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:
The HLS code for the given Verilog code is as follows:
```
#include <ap_int.h>
const int NUM_DEBUG_SAMPLES_TO_STORE = 4096;
const int PL... |
The wrong part of the code is:
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
// do some work
}
}
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (int i = 0; i < 10; i++) {
// do some work
} | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```c++
#include <hls_math.h>
void shift_combination(
hls::stream<bool>& clk, // Clock input
hls::stream<bool>& reset, // Synchronous active-high reset
hls::stream<b... |
The wrong part of the code is:
q.write(shift_reg & 0b1000);
The right code snippet is:
q.write(shift_reg & 0b100); | 'OOB' |
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 shift_combination(
hls::stream<bool>& clk, // Clock input
hls::stream<bool>& reset, // Synchronous active-high reset
hls::stream<bool>&... |
The right code snippet is:
q.write(shift_reg & 0b100); | '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++
#include <hls_math.h>
void shift_combination(
hls::stream<bool>& clk, // Clock input
hls::stream<bool>& reset, // Synchronous active-high reset
hl... |
The wrong part of the code is:
q.write(shift_reg & 0b1000);
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++
#include <hls_math.h>
void shift_combination(
hls::stream<bool>& clk, // Clock input
hls::stream<bool>& reset, //... |
The wrong part of the code is:
q.write(shift_reg & 0b1000);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
q.write(shift_reg & 0b100); | 'OOB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.