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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 block factor=2 dim=1
The right code snippet is:
#pragma HLS array_partition variable=D1 cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D1 cyclic factor=2 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 block 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 block 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=D1 cyclic factor=2 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS array_partition variable=D1 cyclic factor=2 dim=1 | 'FND' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D1 cyclic factor=2 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 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=D1 cyclic factor=2 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 cyclic factor=2 dim=2
The right code snippet is:
#pragma HLS array_partition variable=D1 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS array_partition variable=D1 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS array_partition variable=D1 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=D1 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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
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:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D1
The right code snippet is:
#pragma HLS interface ap_none port=D1 | 'IDAP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D1
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS interface ap_fifo port=D1
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D1 random
The right code snippet is:
#pragma HLS interface m_axi port=D1 | 'RAMB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS interface m_axi port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D1 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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS interface m_axi port=D1 random
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=D1
The right code snippet is:
#pragma HLS interface ap_none port=D1 | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_none port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=D1
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS interface ap_memory port=D1
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
The wrong part of the code is:
#pragma HLS interface ap_none port=D1
The right code snippet is:
#pragma HLS interface ap_memory port=D1 | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
The right code snippet is:
#pragma HLS interface ap_memory port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
The wrong part of the code is:
#pragma HLS interface ap_none port=D1
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
The wrong part of the code is:
#pragma HLS interface ap_none port=D1
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_memory port=D1 | '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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragm... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none port=C
#pragma HLS... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none port=D2
#pragma HLS INTERFACE ap_none po... |
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 ODDR (bool D1, bool D2, bool C, bool CE, bool R, bool& Q) {
#pragma HLS INTERFACE ap_none port=D1
#pragma HLS INTERFACE ap_none por... |
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:
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=clock
#pragma HLS INTERFACE s_axilite port=denom
#pragma H... |
The wrong part of the code is:
ap_uint<4> denom_uninitialized;
ap_uint<10> numer_uninitialized;
ap_uint<10> "ient_uninitialized;
ap_uint<4> &remain_uninitialized;
Bug_type:
OOB
The right code snippet is:
ap_uint<4> denom, | 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=clock
#pragma HLS INTERFACE s_axilite port=denom
#pragma HLS IN... |
The right code snippet is:
ap_uint<4> denom, | 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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=clock
#pragma HLS INTERFACE s_axilite port=deno... |
The wrong part of the code is:
ap_uint<4> denom_uninitialized;
ap_uint<10> numer_uninitialized;
ap_uint<10> "ient_uninitialized;
ap_uint<4> &remain_uninitialized;
Bug_type:
OOB
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_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=aclr
#pragma HLS INTERFACE s_axilite port=clock
#pra... |
The wrong part of the code is:
ap_uint<4> denom_uninitialized;
ap_uint<10> numer_uninitialized;
ap_uint<10> "ient_uninitialized;
ap_uint<4> &remain_uninitialized;
Bug_type:
OOB
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
ap_uint<4> denom, | 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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
mem[i] = din.range((i+2)*8-1,(i+1)*8);
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
mem[i] = din.range((i+2)*8-1,(i+1)*8);
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
mem[i] = din.range((i+2)*8-1,(i+1)*8);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
bool clk;
The right code snippet is:
bool clk = 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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
bool clk = 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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
bool clk;
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
bool clk;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
bool clk = 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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
mem[i] = din.range((i+1)*8-1,i*8+1);
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
mem[i] = din.range((i+1)*8-1,i*8+1);
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
mem[i] = din.range((i+1)*8-1,i*8+1);
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
mem[i] = din.range((i+1)*8-1,i*8); | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
for (int i = 0; ; i++) {
The right code snippet is:
for (int i = 0; i < 256; i++) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
for (int i = 0; i < 256; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
for (int i = 0; ; i++) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; ; i++) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (int i = 0; i < 256; i++) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
dout = (ap_uint<256>)(-1);
The right code snippet is:
dout = 0; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
dout = 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
dout = (ap_uint<256>)(-1);
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
dout = (ap_uint<256>)(-1);
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
dout = 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
for (int i = 0; i < 128; i++) {
mem[i] = din.range((i+1)*8-1,i*8);
mem[i+128] = din.range((i+129)*8-1,(i+128)*8);
}
The right code snippet is:
for (int i = 0; i < 256; i++) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
for (int i = 0; i < 256; 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
for (int i = 0; i < 128; i++) {
mem[i] = din.range((i+1)*8-1,i*8);
mem[i+128] = din.range((i+129)*8-1,(i+128)*8);
}
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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
for (int i = 0; i < 128; i++) {
mem[i] = din.range((i+1)*8-1,i*8);
mem[i+128] = din.range((i+129)*8-1,(i+128)*8);
}
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (int i = 0; i < 256; 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
static ap_uint<256> mem[256] = {0};
The right code snippet is:
static ap_uint<256> mem[256]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
static ap_uint<256> mem[256]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
static ap_uint<256> mem[256] = {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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
static ap_uint<256> mem[256] = {0};
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static ap_uint<256> mem[256]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
dout.range((i+1)*8-1,i*8) = mem[i+128];
The right code snippet is:
dout.range((i+1)*8-1,i*8) = mem[i]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
dout.range((i+1)*8-1,i*8) = mem[i]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
dout.range((i+1)*8-1,i*8) = mem[i+128];
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
dout.range((i+1)*8-1,i*8) = mem[i+128];
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
dout.range((i+1)*8-1,i*8) = mem[i]; | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=4 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem cyclic factor=3 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem 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=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete 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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=mem complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=mem 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS DATAFLOW 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:
#pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS depth=256
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS depth=256
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS depth=256
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=dout bundle=CRTL_BUS | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HL... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=1024 bundle=DDR_BUS
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=slave bundle=DDR_BUS | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
#pragma HLS INT... |
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=slave bundle=DDR_BUS | '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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=1024 bundle=DDR_BUS
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 s_axilite port=return bundle=CRTL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS
#pragma HLS INTERFA... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=1024 bundle=DDR_BUS
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS INTERFACE m_axi port=mem depth=256 offset=slave bundle=DDR_BUS | 'RAMB' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.