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 multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >>...
The wrong part of the code is: temp = A * B + 1; The right code snippet is: temp = A * B;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-1...
The right code snippet is: temp = A * B;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { ...
The wrong part of the code is: temp = A * B + 1; The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { ...
The wrong part of the code is: temp = A * B + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: temp = A * B;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-...
The wrong part of the code is: int temp; The right code snippet is: int temp = 0;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-1)) =...
The right code snippet is: int temp = 0;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp; if (ctrl == 0) { P = A * B; } else { if...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp; if (ctrl == 0) { ...
The wrong part of the code is: int temp; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int temp = 0;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >>...
The wrong part of the code is: if ((A >> (n-2)) == (B >> (n-1))) { The right code snippet is: if ((A >> (n-1)) == (B >> (n-1))) {
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-2...
The right code snippet is: if ((A >> (n-1)) == (B >> (n-1))) {
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { ...
The wrong part of the code is: if ((A >> (n-2)) == (B >> (n-1))) { The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { ...
The wrong part of the code is: if ((A >> (n-2)) == (B >> (n-1))) { The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: if ((A >> (n-1)) == (B >> (n-1))) {
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >>...
The wrong part of the code is: P = (unsigned int)temp; The right code snippet is: P = temp;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-1...
The right code snippet is: P = temp;
'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 multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { P = A * B; } else { ...
The wrong part of the code is: P = (unsigned int)temp; 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 multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 0; if (ctrl == 0) { ...
The wrong part of the code is: P = (unsigned int)temp; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: P = temp;
'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 multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 1; if (ctrl == 0) { P = A * B; } else { if ((A >>...
The wrong part of the code is: int temp = 1; The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 1; if (ctrl == 0) { P = A * B; } else { if ((A >> (n-1...
The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 1; if (ctrl == 0) { P = A * B; } else { ...
The wrong part of the code is: int temp = 1; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void multiplier( int A, int B, bool ctrl, int &P ) { const int n = 8; int temp = 1; if (ctrl == 0) { ...
The wrong part of the code is: int temp = 1; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int temp = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: p[i] = a.data[i+1] | b.data[i+1]; The right code snippet is: p[i] = a.data[i] | b.data[i];
'OOB': Out-of-bounds array access
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: p[i] = a.data[i] | b.data[i];
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: p[i] = a.data[i+1] | b.data[i+1]; The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: p[i] = a.data[i+1] | b.data[i+1]; The high-level-synthesis bug type of the code is: 'OOB': Out-of-bounds array access The right code snippet is: p[i] = a.data[i] | b.data[i];
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: ap_uint<8> temp = 0; The right code snippet is: ap_uint<8> temp;
'INIT': Read of uninitialized variable
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: ap_uint<8> temp;
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: ap_uint<8> temp = 0; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: ap_uint<8> temp = 0; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable The right code snippet is: ap_uint<8> temp;
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(511,384) + temp(639,512), temp(895,768) + temp(1023,896), temp(1023,896) + temp(127,0)}; The right code snippet is: temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) +...
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) + temp(1023,896)};
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(511,384) + temp(639,512), temp(895,768) + temp(1023,896), temp(1023,896) + temp(127,0)}; The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(511,384) + temp(639,512), temp(895,768) + temp(1023,896), temp(1023,896) + temp(127,0)}; The high-level-synthesis bug type of the code is: 'SHFT': Bit shift by an out-of-bounds amount The right code snippet is: temp = {temp(12...
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: for (int i = 0; i <= 100; i++) { #pragma HLS unroll factor=100 p[i] = a.data[i] | b.data[i]; g[i] = a.data[i] & b.data[i]; c[i] = (i == 0) ? cin : (g[i-1] | (p[i-1] & c[i-1])); s[i] = a.data[i] ^ b.data[i] ^ c[i]; } The right code snippet is: for (int ...
'INF': An infinite loop arising from an incorrect loop termination
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: for (int i = 0; i < 100; i++) { #pragma HLS unroll factor=100 p[i] = a.data[i] | b.data[i]; g[i] = a.data[i] & b.data[i]; c[i] = (i == 0) ? cin : (g[i-1] | (p[i-1] & c[i-1])); s[i] = a.data[i] ^ b.data[i] ^ c[i]; }
'INF': An infinite loop arising from an incorrect loop termination
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: for (int i = 0; i <= 100; i++) { #pragma HLS unroll factor=100 p[i] = a.data[i] | b.data[i]; g[i] = a.data[i] & b.data[i]; c[i] = (i == 0) ? cin : (g[i-1] | (p[i-1] & c[i-1])); s[i] = a.data[i] ^ b.data[i] ^ c[i]; } The high-level-synthesis bug type of the...
'INF': An infinite loop arising from an incorrect loop termination
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: for (int i = 0; i <= 100; i++) { #pragma HLS unroll factor=100 p[i] = a.data[i] | b.data[i]; g[i] = a.data[i] & b.data[i]; c[i] = (i == 0) ? cin : (g[i-1] | (p[i-1] & c[i-1])); s[i] = a.data[i] ^ b.data[i] ^ c[i]; } The high-level-synthesis bug type of the...
'INF': An infinite loop arising from an incorrect loop termination
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: int mux_out; The right code snippet is: ap_uint<4> mux_out;
'USE': Unintended sign extension
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: ap_uint<4> mux_out;
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: int mux_out; The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: int mux_out; The high-level-synthesis bug type of the code is: 'USE': Unintended sign extension The right code snippet is: ap_uint<4> mux_out;
'USE': Unintended sign extension
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) + temp(1023,896)}; The right code snippet is: for (int i = 0; i < 8; i++) { #pragma HLS unroll factor=8 temp = {temp(127,0) + temp(255,128), temp(383,2...
'MLU': Errors in manual loop unrolling
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: for (int i = 0; i < 8; i++) { #pragma HLS unroll factor=8 temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) + temp(1023,896)}; }
'MLU': Errors in manual loop unrolling
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) + temp(1023,896)}; The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling
'MLU': Errors in manual loop unrolling
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: temp = {temp(127,0) + temp(255,128), temp(383,256) + temp(511,384), temp(639,512) + temp(767,640), temp(895,768) + temp(1023,896)}; The high-level-synthesis bug type of the code is: 'MLU': Errors in manual loop unrolling The right code snippet is: for (int i = 0; i < ...
'MLU': Errors in manual loop unrolling
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: bool op = 0; The right code snippet is: bool op;
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: bool op;
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: bool op = 0; The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: bool op = 0; The high-level-synthesis bug type of the code is: 'ZERO': Variable initialized to zero instead of nonzero initializer The right code snippet is: bool op;
'ZERO': Variable initialized to zero instead of nonzero initializer
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port...
The wrong part of the code is: void control_logic(axis_t &a, axis_t &b, bool cin, axis_t &in, ap_uint<8> sel, bool op, bool &cout, ap_uint<8> &q) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a The right code snippet is: void control_logic(axis_t &a, axis_t &b...
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=cin ...
The right code snippet is: void control_logic(axis_t &a, axis_t &b, bool cin, axis_t &in, ap_uint<8> sel, bool op, bool &cout, ap_uint<8> &q) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE ap_none port=c...
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFACE axis port=b #pragma HLS INTERFACE a...
The wrong part of the code is: void control_logic(axis_t &a, axis_t &b, bool cin, axis_t &in, ap_uint<8> sel, bool op, bool &cout, ap_uint<8> &q) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a The high-level-synthesis bug type of the code is: 'BUF': Copying from ...
'BUF': Copying from the wrong half of a split buffer
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE axis port=a #pragma HLS INTERFAC...
The wrong part of the code is: void control_logic(axis_t &a, axis_t &b, bool cin, axis_t &in, ap_uint<8> sel, bool op, bool &cout, ap_uint<8> &q) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=a The high-level-synthesis bug type of the code is: 'BUF': Copying from ...
'BUF': Copying from the wrong half of a split buffer
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 axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: ap_uint<3> shiftreg; The right code snippet is: static ap_uint<3> shiftreg = 0;
INIT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: static ap_uint<3> shiftreg = 0;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: ap_uint<3> shiftreg; The high-level-synthesis bug type of the code is: INIT
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: ap_uint<3> shiftreg; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static ap_uint<3> shiftreg = 0;
INIT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: shiftreg.range(3, 1) = shiftreg.range(1, 0); The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 0);
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 axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: shiftreg.range(3, 1) = shiftreg.range(1, 0); 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 axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: shiftreg.range(3, 1) = shiftreg.range(1, 0); The high-level-synthesis bug type of the code is: OOB The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS unroll for (int i = 0; i < 2; i++) { shiftreg.range(2, 1) = shiftreg.range(1, 0); } The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 0);
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 0);
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: #pragma HLS unroll for (int i = 0; i < 2; i++) { shiftreg.range(2, 1) = shiftreg.range(1, 0); } 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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS unroll for (int i = 0; i < 2; i++) { shiftreg.range(2, 1) = shiftreg.range(1, 0); } The high-level-synthesis bug type of the code is: ILNU The right code snippet is: shiftreg.range(2, 1) = shiftreg.range(1, 0);
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 axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: while (true) { out.last = in.last; falling.last = in.last; rising.last = in.last; } The right code snippet is: out.last = in.last; falling.last = in.last; rising.last = in.last;
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: out.last = in.last; falling.last = in.last; rising.last = in.last;
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: while (true) { out.last = in.last; falling.last = in.last; rising.last = in.last; } 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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: while (true) { out.last = in.last; falling.last = in.last; rising.last = in.last; } The high-level-synthesis bug type of the code is: INF The right code snippet is: out.last = in.last; falling.last = in.last; rising.last = in.last;
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: out.data = (signed int) shiftreg[1]; The right code snippet is: out.data = shiftreg[1];
USE
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: out.data = shiftreg[1];
USE
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: out.data = (signed int) shiftreg[1]; The high-level-synthesis bug type of the code is: USE
USE
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: out.data = (signed int) shiftreg[1]; The high-level-synthesis bug type of the code is: USE The right code snippet is: out.data = shiftreg[1];
USE
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg cyclic dim=1 The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg cyclic 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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg cyclic dim=1 The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg complete dim=2 The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg complete dim=2 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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=shiftreg complete dim=2 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=shiftreg complete dim=1
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS dataflow void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) { The right code snippet is: void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) {
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) {
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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: #pragma HLS dataflow void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) { 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_ctrl_none port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS dataflow void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) { The high-level-synthesis bug type of the code is: DFP The right code snippet is: void sync_signal(axis_t in, axis_t& out, axis_t& falling, axis_t& rising) {
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_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=in The right code snippet is: #pragma HLS INTERFACE axis port=in
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_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis p...
The right code snippet is: #pragma HLS INTERFACE axis 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: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS ...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=in 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_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=in #pragma HLS INTERFACE axis port=out #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=in The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS INTERFACE axis port=in
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 m_axi port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port=r...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=return The right code snippet is: #pragma HLS INTERFACE ap_ctrl_none port=return
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 m_axi port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port=rising...
The right code snippet is: #pragma HLS INTERFACE ap_ctrl_none port=return
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 m_axi port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=return 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 m_axi port=return #pragma HLS INTERFACE axis port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axi...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=return The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS INTERFACE ap_ctrl_none port=return
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_ctrl_none port=return #pragma HLS INTERFACE bram port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis...
The wrong part of the code is: #pragma HLS INTERFACE bram port=in The right code snippet is: #pragma HLS INTERFACE axis port=in
SMA
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis port...
The right code snippet is: #pragma HLS INTERFACE axis port=in
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE bram port=in The high-level-synthesis bug type of the code is: SMA
SMA
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE bram port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE bram port=in The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS INTERFACE axis port=in
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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in The right code snippet is: #pragma HLS INTERFACE axis port=in
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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS INTERFACE axis p...
The right code snippet is: #pragma HLS INTERFACE axis port=in
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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=in #pragma HLS INTERFACE axis port=out #pragma HLS INTERFACE axis port=falling #pragma HLS ...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in 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_ctrl_none port=return #pragma HLS INTERFACE ap_none port=in #pragma HLS INTERFACE axis port=out #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS INTERFACE axis port=in
AMS