instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: and(w3, w1, Cin << 5); The right code snippet is: and(w3, w1, Cin);
SHFT
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: and(w3, w1, Cin);
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: and(w3, w1, Cin << 5); The high-level-synthesis bug type of the code is: SHFT
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: and(w3, w1, Cin << 5); The high-level-synthesis bug type of the code is: SHFT The right code snippet is: and(w3, w1, Cin);
SHFT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
INF
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: for (int i = 0; i < 10; i++) {
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The high-level-synthesis bug type of the code is: INF
INF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { The high-level-synthesis bug type of the code is: INF The right code snippet is: for (int i = 0; i < 10; i++) {
INF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: and(w2, (unsigned int)A, B); The right code snippet is: and(w2, A, B);
USE
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: and(w2, A, 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: and(w2, (unsigned int)A, 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: and(w2, (unsigned int)A, B); The high-level-synthesis bug type of the code is: USE The right code snippet is: and(w2, A, 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_ADDER(A[2], B[2], c2, Sum[2], Cout); The right code snippet is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2);
MLU
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2);
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_ADDER(A[2], B[2], c2, Sum[2], Cout); The high-level-synthesis bug type of the code is: MLU
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_ADDER(A[2], B[2], c2, Sum[2], Cout); The high-level-synthesis bug type of the code is: MLU The right code snippet is: FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], ...
MLU
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: for (int i = 4; i < 8; i++) { Sum[i] = 0; } The right code snippet is: for (int i = 0; i < 4; i++) { Sum[i] = 0; }
BUF
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: for (int i = 0; i < 4; i++) { Sum[i] = 0; }
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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: for (int i = 4; i < 8; i++) { Sum[i] = 0; } 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: for (int i = 4; i < 8; i++) { Sum[i] = 0; } The high-level-synthesis bug type of the code is: BUF The right code snippet is: for (int i = 0; i < 4; i++) { Sum[i] = 0; }
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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS array_partition variable=Sum block The right code snippet is: #pragma HLS array_partition variable=Sum complete
APT
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS array_partition variable=Sum 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS array_partition variable=Sum block 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS array_partition variable=Sum block The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=Sum 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS array_partition variable=Sum factor=3 The right code snippet is: #pragma HLS array_partition variable=Sum complete
FND
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS array_partition variable=Sum 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS array_partition variable=Sum 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 ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS array_partition variable=Sum factor=3 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=Sum complete
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS array_partition variable=Sum dim=2 The right code snippet is: #pragma HLS array_partition variable=Sum complete
DID
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS array_partition variable=Sum complete
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS array_partition variable=Sum dim=2 The high-level-synthesis bug type of the code is: DID
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS array_partition variable=Sum dim=2 The high-level-synthesis bug type of the code is: DID The right code snippet is: #pragma HLS array_partition variable=Sum complete
DID
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS interface ap_vld port=return The right code snippet is: #pragma HLS interface ap_none port=return
IDAP
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS interface ap_none port=return
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS interface ap_vld port=return The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS interface ap_vld port=return The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_none port=return
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS interface m_axi port=Sum depth=1024 offset=random The right code snippet is: #pragma HLS interface m_axi port=Sum depth=1024 offset=direct
RAMB
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS interface m_axi port=Sum depth=1024 offset=direct
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS interface m_axi port=Sum depth=1024 offset=random The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS interface m_axi port=Sum depth=1024 offset=random The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=Sum depth=1024 offset=direct
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS interface ap_fifo port=Sum The right code snippet is: #pragma HLS interface ap_memory port=Sum
SMA
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[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS interface ap_memory port=Sum
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS interface ap_fifo port=Sum The high-level-synthesis bug type of the code is: SMA
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=Sum The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface ap_memory port=Sum
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS interface ap_fifo 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS interface ap_fifo 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS interface ap_fifo 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: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS pipeline II=3 The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS pipeline II=3 The high-level-synthesis bug type of the code is: MLP
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS pipeline II=3 The high-level-synthesis bug type of the code is: MLP The right code snippet is: #pragma HLS pipeline II=1
MLP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); F...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
ILNU
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1], c2); FULL_A...
The right code snippet is: #pragma HLS unroll
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); FULL_ADDER(A[1], B[1], c1, Sum[1],...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: ILNU
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: void ADD4(bool A[4], bool B[4], bool Cin, bool Sum[4], bool& Cout) { bool c1, c2, c3; FULL_ADDER(A[0], B[0], Cin, Sum[0], c1); ...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: ILNU The right code snippet is: #pragma HLS unroll
ILNU
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s...
The wrong part of the code is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 2; The right code snippet is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 1; next_rd_data_count = rd_data_count_reg - 1; } else { next_rd_ptr = rd_ptr; next_rd_data_count = rd_data_count_reg; }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS INTERFACE s_axil...
The right code snippet is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 1; next_rd_data_count = rd_data_count_reg - 1; } else { next_rd_ptr = rd_ptr; next_rd_data_count = rd_data_count_reg; }
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=rst bundle=CTRL_BUS #pragma HLS ...
The wrong part of the code is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite ...
The wrong part of the code is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 2; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (rd_en && !empty) { next_rd_ptr = rd_ptr + 1; next_rd_data_count = rd_data_count_reg - 1; } else { next_rd_ptr = rd_ptr; ne...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: if (data_in.range(8,5) == 4'b0000) { code = 2'b10; } else if (data_in.range(8,5) == 4'b1111) { code = 2'b10; } else if (data_in.range(8,5) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.range(8,5) == 4'b0000) { code = 2'b11; } else if (data_in.range(3,0...
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: if (data_in.range(7,4) == 4'b0000) { code = 2'b10; } else if (data_in.range(7,4) == 4'b1111) { code = 2'b10; } else if (data_in.range(7,4) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.range(7,4) == 4'b0000) { code = 2'b11; } else if (data_in.range(3,0) ==...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: if (data_in.range(8,5) == 4'b0000) { code = 2'b10; } else if (data_in.range(8,5) == 4'b1111) { code = 2'b10; } else if (data_in.range(8,5) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.range(8,5) == 4'b0000) { code = 2'b11; } else if (data_in.range(3,0...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: if (data_in.range(8,5) == 4'b0000) { code = 2'b10; } else if (data_in.range(8,5) == 4'b1111) { code = 2'b10; } else if (data_in.range(8,5) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.range(8,5) == 4'b0000) { code = 2'b11; } else if (data_in.range(3,0...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.range(7,4) ==...
The wrong part of the code is: ap_uint<2> code = 0; The right code snippet is: ap_uint<2> code;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.range(7,4) == 4'b0...
The right code snippet is: ap_uint<2> code;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.ra...
The wrong part of the code is: ap_uint<2> code = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: ap_uint<2> code = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<2> code;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: data_out = (code, data_in.range(7,8)); The right code snippet is: data_out = (code, data_in.range(7,4));
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: data_out = (code, data_in.range(7,4));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: data_out = (code, data_in.range(7,8)); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: data_out = (code, data_in.range(7,8)); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: data_out = (code, data_in.range(7,4));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: for (;;) {} The right code snippet is: N/A (the code does not contain any loops)
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: N/A (the code does not contain any loops)
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: for (;;) {} The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: for (;;) {} The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: N/A (the code does not contain any loops)
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: data_out = (code, (ap_uint<8>)data_in.range(7,4)); The right code snippet is: N/A (the code does not contain any sign extension operations)
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: N/A (the code does not contain any sign extension operations)
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: data_out = (code, (ap_uint<8>)data_in.range(7,4)); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: data_out = (code, (ap_uint<8>)data_in.range(7,4)); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: N/A (the code does not contain any sign extension operations)
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: for (int i = 0; i < 3; i++) { if (data_in.range(7,4) == 4'b0000) { code = 2'b10; } else if (data_in.range(7,4) == 4'b1111) { code = 2'b10; } else if (data_in.range(7,4) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.r...
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: N/A (the code does not contain any loops)
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: for (int i = 0; i < 3; i++) { if (data_in.range(7,4) == 4'b0000) { code = 2'b10; } else if (data_in.range(7,4) == 4'b1111) { code = 2'b10; } else if (data_in.range(7,4) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.r...
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: for (int i = 0; i < 3; i++) { if (data_in.range(7,4) == 4'b0000) { code = 2'b10; } else if (data_in.range(7,4) == 4'b1111) { code = 2'b10; } else if (data_in.range(7,4) == data_in.range(3,0)) { code = 2'b01; } else if (data_in.r...
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.range(7,4) ==...
The wrong part of the code is: ap_uint<2> code = 0; The right code snippet is: ap_uint<2> code;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.range(7,4) == 4'b0...
The right code snippet is: ap_uint<2> code;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code = 0; if (data_in.ra...
The wrong part of the code is: ap_uint<2> code = 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: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: ap_uint<2> code = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<2> code;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b...
The wrong part of the code is: N/A (no code snippet to replace) The right code snippet is: N/A (the code does not contain any buffer copying operations)
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(7,4) == 4'b0000)...
The right code snippet is: N/A (the code does not contain any buffer copying operations)
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap_uint<2> code; if (data_in.range(...
The wrong part of the code is: N/A (no code snippet to replace) The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void compression_decompression(ap_uint<8> data_in, ap_uint<4>& data_out) { // Compression algorithm ap...
The wrong part of the code is: N/A (no code snippet to replace) The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: N/A (the code does not contain any buffer copying operations)
'BUF'