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:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=4 // partitioning state with an incorrect type
The right code snippet is:
// none of the arrays in the code are partitioned | APT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the arrays in the code are partitioned | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=4 // partitioning state with an incorrect type
The high-level-synthesis bug type of the code is: APT | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=4 // partitioning state with an incorrect type
The high-level-synthesis bug type of the code is: APT
The right code snippet is:
// none of the arrays in the code are partitioned | APT |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=3 // partitioning state with a factor that does not divide the array size
The right code snippet is:
// none of the arrays in the code are partitioned with an incorrect factor | FND |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the arrays in the code are partitioned with an incorrect factor | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=3 // partitioning state with a factor that does not divide the array size
The high-level-synthesis bug type of the code is: FND | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic factor=3 // partitioning state with a factor that does not divide the array size
The high-level-synthesis bug type of the code is: FND
The right code snippet is:
// none of the arrays in the code are partitioned with ... | FND |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic dim=2 // partitioning state with an incorrect dimension
The right code snippet is:
// none of the arrays in the code are partitioned with an incorrect dimension | DID |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the arrays in the code are partitioned with an incorrect dimension | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic dim=2 // partitioning state with an incorrect dimension
The high-level-synthesis bug type of the code is: DID | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS array_partition variable=state cyclic dim=2 // partitioning state with an incorrect dimension
The high-level-synthesis bug type of the code is: DID
The right code snippet is:
// none of the arrays in the code are partitioned with an incorrect dimension | DID |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS dataflow // adding dataflow pragma to the top-level function without positioning the operations correctly
The right code snippet is:
// none of the operations in the code are positioned incorrectly for dataflow | DFP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the operations in the code are positioned incorrectly for dataflow | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS dataflow // adding dataflow pragma to the top-level function without positioning the operations correctly
The high-level-synthesis bug type of the code is: DFP | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS dataflow // adding dataflow pragma to the top-level function without positioning the operations correctly
The high-level-synthesis bug type of the code is: DFP
The right code snippet is:
// none of the operations in the code are positioned incorrectly for... | DFP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 // using the wrong interface pragma for the FIFO
The right code snippet is:
// none of the data access patterns in the code are incorrect | IDAP |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the data access patterns in the code are incorrect | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 // using the wrong interface pragma for the FIFO
The high-level-synthesis bug type of the code is: IDAP | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS interface ap_fifo depth=32 // using the wrong interface pragma for the FIFO
The high-level-synthesis bug type of the code is: IDAP
The right code snippet is:
// none of the data access patterns in the code are incorrect | IDAP |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dout_bo offset=off bundle=AXI_BUS // accessing m_axi interface randomly with an incorrect offset
The right code snippet is:
// none of the m_axi interfaces are accessed randomly in the code | RAMB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the m_axi interfaces are accessed randomly in the code | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dout_bo offset=off bundle=AXI_BUS // accessing m_axi interface randomly with an incorrect offset
The high-level-synthesis bug type of the code is: RAMB | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS interface m_axi port=dout_bo offset=off bundle=AXI_BUS // accessing m_axi interface randomly with an incorrect offset
The high-level-synthesis bug type of the code is: RAMB
The right code snippet is:
// none of the m_axi interfaces are accessed randomly i... | RAMB |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4... |
The wrong part of the code is:
#pragma HLS interface s_axil
The right code snippet is:
// none of the arrays in the code are mapped to scalar interfaces | SMA |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_WAIT0_2 = 4'h2;
... |
The right code snippet is:
// none of the arrays in the code are mapped to scalar interfaces | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_1 = 4'h1;
const ap_uint<4> ST_NOSYNC_... |
The wrong part of the code is:
#pragma HLS interface s_axil
The high-level-synthesis bug type of the code is: SMA | SMA |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
The HLS code for the given Verilog code is:
```
#include <ap_int.h>
const ap_uint<4> ST_NOSYNC = 4'h0;
const ap_uint<4> ST_NOSYNC_WAIT1_... |
The wrong part of the code is:
#pragma HLS interface s_axil
The high-level-synthesis bug type of the code is: SMA
The right code snippet is:
// none of the arrays in the code are mapped to scalar interfaces | 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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
q = q_pipeline4 + 1;
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
q = q_pipeline4 + 1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
q = q_pipeline4 + 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
reg q_pipeline1, q_pipeline2, q_pipeline3, q_pipeline4;
The right code snippet is:
reg q_pipeline1, q_pipeline2, q_pipeline3; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
reg q_pipeline1, q_pipeline2, q_pipeline3; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
reg q_pipeline1, q_pipeline2, q_pipeline3, q_pipeline4;
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
reg q_pipeline1, q_pipeline2, q_pipeline3, q_pipeline4;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
reg q_pipeline1, q_pipeline2, q_pipeline3; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
q = q_pipeline3 << 10;
The right code snippet is:
q = q_pipeline3 + 1; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q = q_pipeline3 + 1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
q = q_pipeline3 << 10;
The high-level-synthesis bug type of the code is: 'SHFT' | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
q = q_pipeline3 << 10;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
q = q_pipeline3 + 1; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
while (true) {
// code that does not modify q
}
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
while (true) {
// code that does not modify q
}
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
while (true) {
// code that does not modify q
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
short q_short = q_pipeline3;
q = q_short;
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
short q_short = q_pipeline3;
q = q_short;
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
short q_short = q_pipeline3;
q = q_short;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q_pipeline4 = q_pipeline3 + 1;
q = q_pipeline4;
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline3 + 1; | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline3 + 1; | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q_pipeline4 = q_pipeline3 + 1;
q = q_pipeline4;
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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q_pipeline4 = q_pipeline3 + 1;
q = q_pipeline4;
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeli... | '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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 1;
The right code snippet is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 0; | '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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
q_pipeline1 = 0;
q_pipeline2 = 0;
q_pipeline3 = 0;
q = 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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline2 + 1;
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline2 + 1;
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline2 + 1;
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
q_pipeline1 = q;
q_pipeline2 = q_pipeline1;
q_pipeline3 = q_pipeline2;
q = q_pipeline3 + 1; | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 cyclic
#pragma HLS array_partition variable=q_pipeline2 cyclic
#pragma HLS array_partition variable=q_pipeline3 cyclic
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_p... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_partition variable=q_pipeline2 complete
#pragma HLS array_partition variable=q_pipeline3 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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 cyclic
#pragma HLS array_partition variable=q_pipeline2 cyclic
#pragma HLS array_partition variable=q_pipeline3 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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 cyclic
#pragma HLS array_partition variable=q_pipeline2 cyclic
#pragma HLS array_partition variable=q_pipeline3 cyclic
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_partition variable=q_pipeline2 complete
#pragma HLS array_partition variable=q_pipeline3 factor=3
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS a... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_partition variable=q_pipeline2 complete
#pragma HLS array_partition variable=q_pipeline3 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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_partition variable=q_pipeline2 complete
#pragma HLS array_partition variable=q_pipeline3 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_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete
#pragma HLS array_partition variable=q_pipeline2 complete
#pragma HLS array_partition variable=q_pipeline3 factor=3
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete dim=2
#pragma HLS array_partition variable=q_pipeline2 complete dim=2
#pragma HLS array_partition variable=q_pipeline3 complete dim=2
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 comp... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS array_partition variable=q_pipeline1 complete dim=1
#pragma HLS array_partition variable=q_pipeline2 complete dim=1
#pragma HLS array_partition variable=q_pipeline3 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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete dim=2
#pragma HLS array_partition variable=q_pipeline2 complete dim=2
#pragma HLS array_partition variable=q_pipeline3 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 ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS array_partition variable=q_pipeline1 complete dim=2
#pragma HLS array_partition variable=q_pipeline2 complete dim=2
#pragma HLS array_partition variable=q_pipeline3 complete dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet i... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
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:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_fifo port=q
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_fifo port=q
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_fifo port=q
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interfac... | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem1
The right code snippet is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem0 | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem0 | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem1
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem1
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface m_axi port=q offset=slave bundle=gmem0 | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface bram port=q
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS interface bram port=q
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS interface bram port=q
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INT... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pragma HLS INTERFAC... |
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma HLS INTERFACE ap_none port=reset
#pra... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
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_ctrl_none port=return
#pragma HLS INTERFACE ap_none port=slowena
#pragma ... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=q
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=slowena
#pragma HLS interface ap_none port=reset
#pragma HLS interface ap_none port=q | '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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3;
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
FULL_ADDER(A[1], B[1], c1, Sum[1], c2);
... |
The wrong part of the code is:
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
The right code snippet is:
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); | OOB |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3;
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
FULL_ADDER(A[1], B[1], c1, Sum[1], c2);
FULL... |
The right code snippet is:
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); | 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3;
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
FULL_ADDER(A[1], B[1], c1, Sum[1... |
The wrong part of the code is:
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3;
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);... |
The wrong part of the code is:
FULL_ADDER(A[4], B[4], Cin, Sum[4], Cout);
The high-level-synthesis bug type of the code is: OOB
The right code snippet is:
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); | 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3 = false;
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1);
FULL_ADDER(A[1], B[1], c1, Sum[1], c2... |
The wrong part of the code is:
bool c1, c2, c3 = false;
The right code snippet is:
bool c1, c2, c3; | INIT |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3 = false;
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1);
FULL_ADDER(A[1], B[1], c1, Sum[1], c2);
... |
The right code snippet is:
bool c1, c2, c3; | 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3 = false;
FULL_ADDER(A[0], B[0], Cin, Sum[0], c1);
FULL_ADDER(A[1], B[1], c1,... |
The wrong part of the code is:
bool c1, c2, c3 = false;
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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) {
bool c1, c2, c3 = false;
FULL_ADDER(A[0], B[0], Cin, Sum[0]... |
The wrong part of the code is:
bool c1, c2, c3 = false;
The high-level-synthesis bug type of the code is: INIT
The right code snippet is:
bool c1, c2, c3; | INIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.