instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: w1 = nand2(A[1], B[2]); The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(A[1], B[2]); 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(A[1], B[2]); The high-level-synthesis bug type of the code is: OOB The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: bool w1, w2, w3 = false; The right code snippet is: bool w1, w2, w3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: bool w1, w2, w3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: bool w1, w2, w3 = 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: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: bool w1, w2, w3 = false; The high-level-synthesis bug type of the code is: INIT The right code snippet is: bool w1, w2, w3;
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: w3 = nand2(w1, w2 << 4); The right code snippet is: w3 = nand2(w1, w2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: w3 = nand2(w1, w2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: w3 = nand2(w1, w2 << 4); 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: w3 = nand2(w1, w2 << 4); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: w3 = nand2(w1, w2);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: void nand4(bool A, bool B, bool C, bool D, bool &Y) { while(true){ } } The right code snippet is: void nand4(bool A, bool B, bool C, bool D, bool &Y) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: void nand4(bool A, bool B, bool C, bool D, bool &Y) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: void nand4(bool A, bool B, bool C, bool D, bool &Y) { while(true){ } } The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: void nand4(bool A, bool B, bool C, bool D, bool &Y) { while(true){ } } The high-level-synthesis bug type of the code is: INF The right code snippet is: void nand4(bool A, bool B, bool C, bool D, bool &Y) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: int nand2(bool A, bool B) { The right code snippet is: bool nand2(bool A, bool B) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: bool nand2(bool A, bool B) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: int nand2(bool A, bool B) { 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: int nand2(bool A, bool B) { The high-level-synthesis bug type of the code is: USE The right code snippet is: bool nand2(bool A, bool B) {
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: w1 = nand2(A, B); w2 = nand2(A, B); w3 = nand2(A, B); The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(A, B); w2 = nand2(A, B); w3 = nand2(A, B); 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(A, B); w2 = nand2(A, B); w3 = nand2(A, B); The high-level-synthesis bug type of the code is: MLU The right code snippet is: w1 = nand2(A, B);
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: bool w1 = 0, w2 = 0, w3 = 0; The right code snippet is: bool w1, w2, w3;
ZERO
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: bool w1, w2, w3;
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: bool w1 = 0, w2 = 0, w3 = 0; The high-level-synthesis bug type of the code is: ZERO
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: bool w1 = 0, w2 = 0, w3 = 0; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: bool w1, w2, w3;
ZERO
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: w1 = nand2(C, D); The right code snippet is: w1 = nand2(A, B);
BUF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: w1 = nand2(A, B);
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(C, D); The high-level-synthesis bug type of the code is: BUF
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: w1 = nand2(C, D); The high-level-synthesis bug type of the code is: BUF The right code snippet is: w1 = nand2(A, B);
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS array_partition variable=w1 cyclic The right code snippet is: #pragma HLS array_partition variable=w1 complete
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS array_partition variable=w1 complete
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 cyclic The high-level-synthesis bug type of the code is: APT
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 cyclic The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=w1 complete
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS array_partition variable=w1 complete factor=3 The right code snippet is: #pragma HLS array_partition variable=w1 complete factor=2
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS array_partition variable=w1 complete factor=2
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 complete factor=3 The high-level-synthesis bug type of the code is: FND
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 complete factor=3 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=w1 complete factor=2
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS array_partition variable=w1 complete dim=2 The right code snippet is: #pragma HLS array_partition variable=w1 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 ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS array_partition variable=w1 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS array_partition variable=w1 complete dim=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS array_partition variable=w1 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 ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS dataflow wait The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS dataflow wait The high-level-synthesis bug type of the code is: DFP
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS dataflow wait The high-level-synthesis bug type of the code is: DFP The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS interface ap_vld port=A The right code snippet is: #pragma HLS interface ap_none port=A
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS interface ap_none port=A
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_vld port=A The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_vld port=A The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_none port=A
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS interface m_axi port=A random The right code snippet is: #pragma HLS interface m_axi port=A
RAMB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS interface m_axi port=A
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface m_axi port=A random The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface m_axi port=A random The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=A
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS interface bram port=A The right code snippet is: #pragma HLS interface ap_none port=A
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS interface ap_none port=A
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface bram port=A The high-level-synthesis bug type of the code is: SMA
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface bram port=A The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface ap_none port=A
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS interface ap_memory port=A The right code snippet is: #pragma HLS interface ap_none port=A
AMS
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS interface ap_none port=A
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_memory port=A The high-level-synthesis bug type of the code is: AMS
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS interface ap_memory port=A The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface ap_none port=A
AMS
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS pipeline
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: MLP The right code snippet is: #pragma HLS pipeline
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_none port=Y #pr...
The right code snippet is: #pragma HLS unroll
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_none port=D #pragma HLS INTERFACE ap_...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: ILNU
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=C #pragma HLS INTERFACE ap_...
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: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: static bool reg_Q; static bool reg_Q_B; reg_Q_B = 1; The right code snippet is: static bool reg_Q = 0; static bool reg_Q_B = 1;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: static bool reg_Q = 0; static bool reg_Q_B = 1;
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: static bool reg_Q; static bool reg_Q_B; reg_Q_B = 1; 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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: static bool reg_Q; static bool reg_Q_B; reg_Q_B = 1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static bool reg_Q = 0; static bool reg_Q_B = 1;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: if (!RESET_B) { while(1){ reg_Q = 0; reg_Q_B = 1; } } else if (SCD) { reg_Q = 1; reg_Q_B = 0; } else if (SCE) { reg_Q = D; reg_Q_B = ~D; } The right code snippet is: if (!RESET_B) { reg_Q = 0; reg_Q_B = 1; } else if (SCD) { ...
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: if (!RESET_B) { reg_Q = 0; reg_Q_B = 1; } else if (SCD) { reg_Q = 1; reg_Q_B = 0; } else if (SCE) { reg_Q = D; reg_Q_B = ~D; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: if (!RESET_B) { while(1){ reg_Q = 0; reg_Q_B = 1; } } else if (SCD) { reg_Q = 1; reg_Q_B = 0; } else if (SCE) { reg_Q = D; reg_Q_B = ~D; } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: if (!RESET_B) { while(1){ reg_Q = 0; reg_Q_B = 1; } } else if (SCD) { reg_Q = 1; reg_Q_B = 0; } else if (SCE) { reg_Q = D; reg_Q_B = ~D; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (!R...
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: Q[10] = reg_Q; The right code snippet is: N/A
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: N/A
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: Q[10] = reg_Q; 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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: Q[10] = reg_Q; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: N/A
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: reg_Q = (unsigned int) D; reg_Q_B = ~(unsigned int) D; The right code snippet is: reg_Q = D; reg_Q_B = ~D;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: reg_Q = D; reg_Q_B = ~D;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: reg_Q = (unsigned int) D; reg_Q_B = ~(unsigned int) D; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: reg_Q = (unsigned int) D; reg_Q_B = ~(unsigned int) D; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: reg_Q = D; reg_Q_B = ~D;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: memcpy(Q, reg_Q, sizeof(reg_Q)); The right code snippet is: N/A
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: N/A
'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: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: memcpy(Q, reg_Q, sizeof(reg_Q)); 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: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: memcpy(Q, reg_Q, sizeof(reg_Q)); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: N/A
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=Q cyclic factor=2 The right code snippet is: N/A
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: N/A
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: #pragma HLS array_partition variable=Q cyclic factor=2 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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=Q cyclic factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: N/A
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=Q block factor=3 The right code snippet is: N/A
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFAC...
The right code snippet is: N/A
'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 dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERFACE ap_ctrl_none port=return #pra...
The wrong part of the code is: #pragma HLS array_partition variable=Q block factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void dff ( bool CLK, bool D, bool SCD, bool SCE, bool RESET_B, bool &Q, bool &Q_B ) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=Q block factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: N/A
'FND'