instruction stringlengths 139 357k | response stringlengths 36 4.54k | buggy_type stringclasses 745
values |
|---|---|---|
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
bool ZeroSignal = 0;
The right code snippet is:
bool ZeroSignal; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
bool ZeroSignal; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
bool ZeroSignal = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
bool ZeroSignal = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
bool ZeroSignal; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
memcpy(dst, src+size/2, size);
The right code snippet is:
memcpy(dst, src, size); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
memcpy(dst, src, size); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
memcpy(dst, src+size/2, size);
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
memcpy(dst, src+size/2, size);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(dst, src, size); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=a block factor=3
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS array_partition variable=a block factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=a block factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=a complete | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=a cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS array_partition variable=a cyclic factor=2 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:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic factor=2 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=a cyclic factor=2 dim=2
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=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:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a
The right code snippet is:
#pragma HLS interface ap_fifo 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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface ap_fifo 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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a
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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_fifo 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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | '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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | '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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi port=a offset=slave bundle=wrong_bundle
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=a offset=slave bundle=gmem | '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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface bram port=a
The right code snippet is:
#pragma HLS interface ap_memory 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 ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface ap_memory 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 ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS interface bram 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 ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface bram port=a
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_memory 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 port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a
The right code snippet is:
#pragma HLS interface bram 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 port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS interface bram 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 port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS interface ap_memory 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 port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=a
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface bram 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_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HL... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg
#pragma HLS INT... |
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=MemToReg... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_none port=OPCode
#pragma HLS INTERFACE ap_none port=Funct
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragm... |
The wrong part of the code is:
#pragma HLS unroll factor=2
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS unroll | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
sync_clk1(2,0) = clk1;
The right code snippet is:
sync_clk1(1,0) = clk1; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
sync_clk1(1,0) = clk1; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
sync_clk1(2,0) = clk1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
sync_clk1(2,0) = clk1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
sync_clk1(1,0) = clk1; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<2> sync_out;
The right code snippet is:
ap_uint<2> sync_out = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<2> sync_out = 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
ap_uint<2> sync_out;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
ap_uint<2> sync_out;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
ap_uint<2> sync_out = 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
sync_out = sync_clk1 >> 3;
The right code snippet is:
sync_out = sync_clk1 >> 2; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
sync_out = sync_clk1 >> 2; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
sync_out = sync_clk1 >> 3;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
sync_out = sync_clk1 >> 3;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
sync_out = sync_clk1 >> 2; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
for (int i = 0; i < 10; 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
for (int i = 0; i >= 0; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 10; 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_int<2> sync_out = 0;
The right code snippet is:
ap_uint<2> sync_out = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<2> sync_out = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
ap_int<2> sync_out = 0;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
ap_int<2> sync_out = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<2> sync_out = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
for (int i = 0; i < 11; i++) {
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
for (int i = 0; i < 11; i++) {
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
for (int i = 0; i < 11; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 10; i++) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
ap_uint<2> sync_out = 1;
The right code snippet is:
ap_uint<2> sync_out = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
ap_uint<2> sync_out = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
ap_uint<2> sync_out = 1;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
ap_uint<2> sync_out = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<2> sync_out = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The high-level-synthesis bug type of the code is: 'BUF' | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
memcpy(buffer1, buffer2+1, sizeof(buffer1));
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
memcpy(buffer1, buffer2, sizeof(buffer1)); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 cyclic
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 complete | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 block factor=3
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 complete | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 block factor=3
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 block factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 dim=2
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 complete | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS array_partition variable=sync_clk1 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=sync_clk1 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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS dataflow loop_flatten
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:
#include <ap_int.h>
void glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap... |
The wrong part of the code is:
#pragma HLS interface ap_hs port=clk1
The right code snippet is:
#pragma HLS interface ap_none port=clk1 | '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 glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS INTERFACE ap_none... |
The right code snippet is:
#pragma HLS interface ap_none port=clk1 | '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 glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERFACE ap_none port=clk1
#pragma HLS I... |
The wrong part of the code is:
#pragma HLS interface ap_hs port=clk1
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 glitch_free_mux(ap_uint<1> clk1, ap_uint<1> clk2, ap_uint<1> ctl, ap_uint<1> &clk_out) {
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS interface ap_hs port=clk1
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=clk1 | 'IDAP' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.