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: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: int enc_count; // The variable enc_count is declared as a signed integer instead of an unsigned integer // This can lead to unintended sign extension and incorrect results during encoding operation The right code snippet is: uint_w enc_count;
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: uint_w enc_count;
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: int enc_count; // The variable enc_count is declared as a signed integer instead of an unsigned integer // This can lead to unintended sign extension and incorrect results during encoding operation 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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: int enc_count; // The variable enc_count is declared as a signed integer instead of an unsigned integer // This can lead to unintended sign extension and incorrect results during encoding operation The high-level-synthesis bug type of the code is: USE The right code snipp...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: for (i = 0; i < m/2; i++) { // Manually unrolling the loop only for half of the iterations enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; decoded[dec_count] = enc_val; dec_count++; decoded[dec_count] = enc_val; dec_count++; } The right code snippet is: ...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: for (i = 0; i < m; i++) {
MLU
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: for (i = 0; i < m/2; i++) { // Manually unrolling the loop only for half of the iterations enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; decoded[dec_count] = enc_val; dec_count++; decoded[dec_count] = enc_val; dec_count++; } The high-level-synthesis bug ty...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: for (i = 0; i < m/2; i++) { // Manually unrolling the loop only for half of the iterations enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; decoded[dec_count] = enc_val; dec_count++; decoded[dec_count] = enc_val; dec_count++; } The high-level-synthesis bug ty...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: uint_w enc_count = 0; // enc_count is initialized to zero instead of one, which can lead to incorrect results during encoding operation The right code snippet is: uint_w enc_count = 1;
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: uint_w enc_count = 1;
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: uint_w enc_count = 0; // enc_count is initialized to zero instead of one, which can lead to incorrect results during encoding operation 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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: uint_w enc_count = 0; // enc_count is initialized to zero instead of one, which can lead to incorrect results during encoding operation The high-level-synthesis bug type of the code is: ZERO The right code snippet is: uint_w enc_count = 1;
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: for (i = m/2; i < m; i++) { // Copying from the wrong half of the split buffer enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; for (int j = 0; j < enc_count; j++) { decoded[dec_count] = enc_val; dec_count++; } } The right code snippet is: for (i = 0;...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: for (i = 0; i < m; i++) {
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: for (i = m/2; i < m; i++) { // Copying from the wrong half of the split buffer enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; for (int j = 0; j < enc_count; j++) { decoded[dec_count] = enc_val; dec_count++; } } The high-level-synthesis bug type of the c...
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: for (i = m/2; i < m; i++) { // Copying from the wrong half of the split buffer enc_val = encoded[i*w]; enc_count = encoded[i*w+w]; for (int j = 0; j < enc_count; j++) { decoded[dec_count] = enc_val; dec_count++; } } The high-level-synthesis bug type of the c...
BUF
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS array_partition variable=in cyclic // Using the wrong partition type for the input array // This can lead to incorrect results during encoding and decoding operations The right code snippet is: #pragma HLS array_partition variable=in complete
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS array_partition variable=in complete
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS array_partition variable=in cyclic // Using the wrong partition type for the input array // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: APT
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS array_partition variable=in cyclic // Using the wrong partition type for the input array // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma ...
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic factor=w-1 // Using a factor that is not divisible for the size of the array // This can lead to incorrect results during decoding operation The right code snippet is: #pragma HLS array_partition variable=encoded cyclic ...
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS array_partition variable=encoded cyclic factor=w
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic factor=w-1 // Using a factor that is not divisible for the size of the array // This can lead to incorrect results during decoding operation The high-level-synthesis bug type of the code is: FND
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic factor=w-1 // Using a factor that is not divisible for the size of the array // This can lead to incorrect results during decoding operation The high-level-synthesis bug type of the code is: FND The right code snippet is...
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic dim=2 factor=w // Using the wrong dimension for the partition pragma // This can lead to incorrect results during decoding operation The right code snippet is: #pragma HLS array_partition variable=encoded cyclic factor=w
DID
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS array_partition variable=encoded cyclic factor=w
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic dim=2 factor=w // Using the wrong dimension for the partition pragma // This can lead to incorrect results during decoding operation The high-level-synthesis bug type of the code is: DID
DID
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS array_partition variable=encoded cyclic dim=2 factor=w // Using the wrong dimension for the partition pragma // This can lead to incorrect results during decoding operation The high-level-synthesis bug type of the code is: DID The right code snippet is: #p...
DID
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS dataflow pipeline // Using the wrong pipeline type for the dataflow pragma // This can lead to incorrect results during encoding and decoding operations The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS dataflow pipeline // Using the wrong pipeline type for the dataflow pragma // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: DFP
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS dataflow pipeline // Using the wrong pipeline type for the dataflow pragma // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: DFP The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS interface ap_vld port=in // Using the wrong data access pattern for the interface pragma // This can lead to incorrect results during encoding and decoding operations The right code snippet is: #pragma HLS interface ap_none port=in
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS interface ap_none port=in
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS interface ap_vld port=in // Using the wrong data access pattern for the interface pragma // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS interface ap_vld port=in // Using the wrong data access pattern for the interface pragma // This can lead to incorrect results during encoding and decoding operations The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma...
IDAP
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_va...
The wrong part of the code is: #pragma HLS interface m_axi port=encoded offset=slave // Accessing the m_axi interface randomly in the The right code snippet is: #pragma HLS interface m_axi port=encoded
RAMB
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> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uint_w prev_val; ...
The right code snippet is: #pragma HLS interface m_axi port=encoded
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: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w encoded[m*w], uint_w decoded[n]) { uin...
The wrong part of the code is: #pragma HLS interface m_axi port=encoded offset=slave // Accessing the m_axi interface randomly in the 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: #include <ap_int.h> const int n = 16; const int m = 8; const int w = 8; typedef ap_uint<w> uint_w; void RLE(uint_w in[n], uint_w enco...
The wrong part of the code is: #pragma HLS interface m_axi port=encoded offset=slave // Accessing the m_axi interface randomly in the The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=encoded
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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: ap_uint<1> A = ap_uint<1>("0bX"); The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: ap_uint<1> A = ap_uint<1>("0bX"); 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: ap_uint<1> A = ap_uint<1>("0bX"); The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: ap_uint<1> arr[5]; arr[6] = ap_uint<1>("0b1"); The right code snippet is: None
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: None
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: ap_uint<1> arr[5]; arr[6] = ap_uint<1>("0b1"); 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: ap_uint<1> arr[5]; arr[6] = ap_uint<1>("0b1"); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: None
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: while (1) { wait(); std::cout << "X = " << X.to_string() << std::endl; if (X == ap_uint<1>("0b1")) { break; } } The right code snippet is: while (1) { wait(); std::cout << "X = " << X.to_string() << std::endl; }
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: while (1) { wait(); std::cout << "X = " << X.to_string() << std::endl; }
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: while (1) { wait(); std::cout << "X = " << X.to_string() << std::endl; if (X == ap_uint<1>("0b1")) { break; } } 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: while (1) { wait(); std::cout << "X = " << X.to_string() << std::endl; if (X == ap_uint<1>("0b1")) { break; } } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (1) { wait(); std::cout << "X = " <...
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: ap_int<1> A; The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: ap_int<1> A; 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: ap_int<1> A; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<1> A;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: ap_fixed<8, 4> X = 0; The right code snippet is: ap_fixed<8, 4> X;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: ap_fixed<8, 4> X;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: ap_fixed<8, 4> X = 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: ap_fixed<8, 4> X = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_fixed<8, 4> X;
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X block factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X block factor=2 dim=1 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=3 dim=1 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS ARRAY_PARTITION variable=X cyclic factor=2 dim=1
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: None 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: None 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: None 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_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
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
'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_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
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_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo 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_fifo port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=64 offset=16 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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=64 offset=16 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=A depth=64 offset=16 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 bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none por...
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 bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=VPB...
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 bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ...
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 bram port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=A The right code snippet is: #pragma HLS INTERFACE bram port=A
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS INTERFACE bram port=A
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS INTERFACE ap_none 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=A The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE bram port=A
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none ...
The wrong part of the code is: #pragma HLS UNROLL factor=3 The right code snippet is: #pragma HLS UNROLL factor=4
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFACE ap_none port=...
The right code snippet is: #pragma HLS UNROLL factor=4
'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=VPWR #pragma HLS INTERFACE ap_none port=VGND #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS UNROLL factor=3 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=VPWR #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS UNROLL factor=3 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS UNROLL factor=4
'ILNU'