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:
```
#include <ap_int.h>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
#pragma HLS interface ap_none register port=Din
#pragma HLS interface ap_none register port=Dout
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint<10> ... |
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
#pragma HLS interface ap_none register port=Din
#pragma HLS interface ap_none register port=Dout
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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pra... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=1
#pragma HLS interface ap_none register port=Din
#pragma HLS interface ap_none register port=Dout
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint... |
The wrong part of the code is:
#pragma HLS interface m_axi port=Din offset=slave
#pragma HLS interface m_axi port=Dout offset=slave
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint<10> ... |
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=Din offset=slave
#pragma HLS interface m_axi port=Dout offset=slave
The high-level-synthesis bug type of the code is: 'RAMB' | 'RAMB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pra... |
The wrong part of the code is:
#pragma HLS interface m_axi port=Din offset=slave
#pragma HLS interface m_axi port=Dout offset=slave
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=Din
#pragma HLS interface ap_memory port=Dout
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint<10> ... |
The right code snippet is:
// no suitable code snippet found | '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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=Din
#pragma HLS interface ap_memory port=Dout
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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pra... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=Din
#pragma HLS interface ap_memory port=Dout
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
// no suitable code snippet found | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Din
#pragma HLS interface ap_none port=Dout
ap_uint<10> Din_array[10];
ap_uint<10>* Din_ptr = (ap_uint<10>*)Din_array;
ap_uint<10>* Dout_ptr = &Dout;
*Dout_ptr = Din_ptr[0];
The right code snippet is:
// no suitable code snippet found | 'AMS' |
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>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
ap_uint<10> ... |
The right code snippet is:
// no suitable code snippet found | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
```
#include <ap_int.h>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pragma HLS INTERFACE ap_none port=Dout
... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Din
#pragma HLS interface ap_none port=Dout
ap_uint<10> Din_array[10];
ap_uint<10>* Din_ptr = (ap_uint<10>*)Din_array;
ap_uint<10>* Dout_ptr = &Dout;
*Dout_ptr = Din_ptr[0];
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_int.h>
void my_design_module(ap_uint<18> Din, ap_uint<10>& Dout) {
#pragma HLS INTERFACE ap_none port=Din
#pra... |
The wrong part of the code is:
#pragma HLS interface ap_none port=Din
#pragma HLS interface ap_none port=Dout
ap_uint<10> Din_array[10];
ap_uint<10>* Din_ptr = (ap_uint<10>*)Din_array;
ap_uint<10>* Dout_ptr = &Dout;
*Dout_ptr = Din_ptr[0];
The high-level-synthesis bug type of the code is: 'AMS'
The rig... | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
if (count == 11) {
The right code snippet is:
if (count == 10) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
if (count == 10) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
if (count == 11) {
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
if (count == 11) {
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
if (count == 10) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
int count;
The right code snippet is:
static int count = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
static int count = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
int count;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
int count;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static int count = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
while(true) {
The right code snippet is:
if (count == 2) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
if (count == 2) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
while(true) {
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
while(true) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (count == 2) { | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
unsigned int reset, unsigned int clk, int& green, int& red
The right code snippet is:
bool reset, bool clk, bool& green, bool& red | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
bool reset, bool clk, bool& green, bool& red | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
unsigned int reset, unsigned int clk, int& green, int& red
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
unsigned int reset, unsigned int clk, int& green, int& red
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
bool reset, bool clk, bool& green, bool& red | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
red = true;
The right code snippet is:
green = true; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
green = true; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
red = true;
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
red = true;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
green = true; | '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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=state complete factor=2
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=state complete factor=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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=state complete factor=2
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=state dim=2
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS array_partition variable=state dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=state dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=state complete | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_none port=green bundle=wrong_bundle
The right code snippet is:
#pragma HLS interface ap_none port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_none port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_none port=green bundle=wrong_bundle
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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_none port=green bundle=wrong_bundle
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface m_axi port=green random
The right code snippet is:
#pragma HLS interface m_axi port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface m_axi port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS interface m_axi port=green 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=green random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=green | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface bram port=state scalar
The right code snippet is:
#pragma HLS interface bram port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface bram port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS interface bram port=state scalar
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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface bram port=state scalar
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface bram port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=state array
The right code snippet is:
#pragma HLS interface ap_vld port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
#pragma HLS interface ap_vld port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=state array
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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=state array
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_vld port=state | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERF... |
The wrong part of the code is:
switch(state) {
case GREEN:
if (count == 10) {
state = YELLOW;
count = 0;
} else {
count++;
}
break;
case YELLOW:
if (count == 2) {
state = RED;
count = 0;
} else {
count++;
}
break;
case RED:
if (count... | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma HLS INTERFACE a... |
The right code snippet is:
switch(state) { | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=green
#pragma... |
The wrong part of the code is:
switch(state) {
case GREEN:
if (count == 10) {
state = YELLOW;
count = 0;
} else {
count++;
}
break;
case YELLOW:
if (count == 2) {
state = RED;
count = 0;
} else {
count++;
}
break;
case RED:
if (count... | '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 port=reset
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS... |
The wrong part of the code is:
switch(state) {
case GREEN:
if (count == 10) {
state = YELLOW;
count = 0;
} else {
count++;
}
break;
case YELLOW:
if (count == 2) {
state = RED;
count = 0;
} else {
count++;
}
break;
case RED:
if (count... | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
gated_clk = !TE[-1];
The right code snippet is:
gated_clk = !TE; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
gated_clk = !TE; | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
gated_clk = !TE[-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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
gated_clk = !TE[-1];
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
gated_clk = !TE; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
static bool gated_clk = true;
The right code snippet is:
static bool gated_clk; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
static bool gated_clk; | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
static bool gated_clk = true;
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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
static bool gated_clk = true;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static bool gated_clk; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
gated_clk = !TE << 5;
The right code snippet is:
gated_clk = !TE; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
gated_clk = !TE; | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
gated_clk = !TE << 5;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
gated_clk = !TE << 5;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
gated_clk = !TE; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
while (EN) {
The right code snippet is:
if (EN) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
if (EN) { | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
while (EN) {
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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
while (EN) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (EN) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
gated_clk = (int8_t)TE;
The right code snippet is:
gated_clk = !TE; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
gated_clk = !TE; | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
gated_clk = (int8_t)TE;
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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
gated_clk = (int8_t)TE;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
gated_clk = !TE; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_no... |
The wrong part of the code is:
gated_clk = !TE;
gated_clk = !TE;
The right code snippet is:
gated_clk = !TE; | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTERFACE ap_none po... |
The right code snippet is:
gated_clk = !TE; | '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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFACE ap_none port=EN
#pragma HLS INTE... |
The wrong part of the code is:
gated_clk = !TE;
gated_clk = !TE;
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:
```
void clock_gate (
bool CLK,
bool EN,
bool TE,
bool &ENCLK
) {
#pragma HLS INTERFACE ap_none port=CLK
#pragma HLS INTERFA... |
The wrong part of the code is:
gated_clk = !TE;
gated_clk = !TE;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
gated_clk = !TE; | 'MLU' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.