instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFA...
The wrong part of the code is: q = (q.range(99, 1), q[0]); The right code snippet is: q = (q.range(98, 0), q[99]);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap...
The right code snippet is: q = (q.range(98, 0), q[99]);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma ...
The wrong part of the code is: q = (q.range(99, 1), q[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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: q = (q.range(99, 1), q[0]); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: q = (q.range(98, 0), q[99]);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFA...
The wrong part of the code is: if (reset) { q = q+1; } The right code snippet is: if (reset) { q = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap...
The right code snippet is: if (reset) { q = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma ...
The wrong part of the code is: if (reset) { q = q+1; } The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: if (reset) { q = q+1; } The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: if (reset) { q = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFA...
The wrong part of the code is: q = (q[0], q.range(100, 1)); The right code snippet is: q = (q[0], q.range(99, 1));
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap...
The right code snippet is: q = (q[0], q.range(99, 1));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma ...
The wrong part of the code is: q = (q[0], q.range(100, 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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: q = (q[0], q.range(100, 1)); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: q = (q[0], q.range(99, 1));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFA...
The wrong part of the code is: if (reset) { q = -1; } The right code snippet is: if (reset) { q = 0; }
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma HLS INTERFACE ap...
The right code snippet is: if (reset) { q = 0; }
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=load #pragma ...
The wrong part of the code is: if (reset) { q = -1; } The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: if (reset) { q = -1; } The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: if (reset) { q = 0; }
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: if (count == 16) { count = 0; } The right code snippet is: if (count == 15) { count = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) { count = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: if (count == 16) { count = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: if (count == 16) { count = 0; } The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (count == 15) { count = 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: ap_uint<4> count; The right code snippet is: ap_uint<4> &count
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<4> &count
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: ap_uint<4> count; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: ap_uint<4> count; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<4> &count
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: count << 5; The right code snippet is: count << 3;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: count << 3;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: count << 5; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: count << 5; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: count << 3;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: while (count != 15) { count++; } The right code snippet is: if (count == 15) { count = 0; }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: if (count == 15) { count = 0; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: while (count != 15) { count++; } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: while (count != 15) { count++; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (count == 15) { count = 0; }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: ap_int<4> &count The right code snippet is: ap_uint<4> &count
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<4> &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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: ap_int<4> &count The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: ap_int<4> &count The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<4> &count
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: for (int i = 0; i < 3; i++) { #pragma HLS UNROLL // some code here } The right code snippet is: for (int i = 0; i < 4; i++) { #pragma HLS UNROLL // some code here }
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: for (int i = 0; i < 4; i++) { #pragma HLS UNROLL // some code here }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: for (int i = 0; i < 3; i++) { #pragma HLS UNROLL // some code here } The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: for (int i = 0; i < 3; i++) { #pragma HLS UNROLL // some code here } The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 4; i++) { #pragma HLS UNROLL // some code here }
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: ap_uint<4> count; The right code snippet is: ap_uint<4> count = 0;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<4> count = 0;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: ap_uint<4> count; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: ap_uint<4> count; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: ap_uint<4> count = 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 ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: memcpy(dest, src + size/2, size); The right code snippet is: memcpy(dest, src, size);
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: memcpy(dest, src, size);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: memcpy(dest, src + size/2, size); The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: memcpy(dest, src + size/2, size); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(dest, src, size);
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The right code snippet is: #pragma HLS array_partition variable=count complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS array_partition variable=count complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=count cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=count complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=count complete factor=3 The right code snippet is: #pragma HLS array_partition variable=count complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS array_partition variable=count complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=count complete factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=count complete factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=count complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=count complete dim=2 The right code snippet is: #pragma HLS array_partition variable=count complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS array_partition variable=count complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS array_partition variable=count complete dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=count complete dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=count complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS dataflow region The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_vld port=count The right code snippet is: #pragma HLS interface ap_none port=count
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS interface ap_none port=count
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS interface ap_vld port=count The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_vld port=count The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=count
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The right code snippet is: #pragma HLS interface m_axi port=mem offset=off
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS interface m_axi port=mem offset=off
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=mem offset=off
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface bram port=count The right code snippet is: #pragma HLS interface ap_none port=count
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS interface ap_none port=count
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS interface bram port=count The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS interface bram port=count The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=count
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The right code snippet is: #pragma HLS interface bram port=mem
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS interface bram port=mem
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface bram port=mem
'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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTER...
The wrong part of the code is: #pragma HLS unroll inner The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragma HLS INTERFACE ...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_none port=enable #pragm...
The wrong part of the code is: #pragma HLS unroll inner 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS...
The wrong part of the code is: #pragma HLS unroll inner The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<32,2,5,6> intSdCh; void priority_encoder_3bit (bool A2, bool A1, bool A0, bool &EN, ap_uint<3> &Y) { #pragma HLS INTERFACE ap_ctrl_none...
The wrong part of the code is: if(Y_reg.range(3,1) == 3 && Y_reg[0] == 0) { The right code snippet is: if(Y_reg.range(2,1) == 3 && Y_reg[0] == 0) {
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<32,2,5,6> intSdCh; void priority_encoder_3bit (bool A2, bool A1, bool A0, bool &EN, ap_uint<3> &Y) { #pragma HLS INTERFACE ap_ctrl_none port...
The right code snippet is: if(Y_reg.range(2,1) == 3 && Y_reg[0] == 0) {
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_axi_sdata.h> typedef ap_axis<32,2,5,6> intSdCh; void priority_encoder_3bit (bool A2, bool A1, bool A0, bool &EN, ap_uint<3> &Y) { #pragma HLS INTERFACE a...
The wrong part of the code is: if(Y_reg.range(3,1) == 3 && Y_reg[0] == 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: #include <ap_axi_sdata.h> typedef ap_axis<32,2,5,6> intSdCh; void priority_encoder_3bit (bool A2, bool A1, bool A0, bool &EN, ap_uint<...
The wrong part of the code is: if(Y_reg.range(3,1) == 3 && Y_reg[0] == 0) { The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if(Y_reg.range(2,1) == 3 && Y_reg[0] == 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_none port=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI_Transmissi...
The wrong part of the code is: if (!Reset_n_i) { SPI_FSM_State = stIdleSPI; MAX6682CS_n_o = true; SPI_Write_o = false; SPI_ReadNext_o = false; SPI_FSM_Wr1 = false; SPI_FSM_Wr0 = false; SPI_FSM_Done = false; Byte2 = 0; Byte1 = 0; } The right code snippet is: if (!Re...
'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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI_Transmission_i ...
The right code snippet is: if (!Reset_n_i) { SPI_FSM_State = stIdleSPI; MAX6682CS_n_o = true; SPI_Write_o = false; SPI_ReadNext_o = false; SPI_FSM_Wr1 = false; SPI_FSM_Wr0 = false; SPI_FSM_Done = false; Byte0 = 0; Byte1 = 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_none port=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI...
The wrong part of the code is: if (!Reset_n_i) { SPI_FSM_State = stIdleSPI; MAX6682CS_n_o = true; SPI_Write_o = false; SPI_ReadNext_o = false; SPI_FSM_Wr1 = false; SPI_FSM_Wr0 = false; SPI_FSM_Done = false; Byte2 = 0; Byte1 = 0; } The high-level-synthesis bug type of t...
'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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #...
The wrong part of the code is: if (!Reset_n_i) { SPI_FSM_State = stIdleSPI; MAX6682CS_n_o = true; SPI_Write_o = false; SPI_ReadNext_o = false; SPI_FSM_Wr1 = false; SPI_FSM_Wr0 = false; SPI_FSM_Done = false; Byte2 = 0; Byte1 = 0; } The high-level-synthesis bug type of t...
'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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI_Transmissi...
The wrong part of the code is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = false; break; The right code snippet is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = true; break;
'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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI_Transmission_i ...
The right code snippet is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = true; break;
'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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #pragma HLS INTERFACE ap_none port=SPI...
The wrong part of the code is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = false; 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=Reset_n_i #pragma HLS INTERFACE ap_none port=Clk_i #pragma HLS INTERFACE ap_none port=SPI_FSM_Start #...
The wrong part of the code is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = false; break; The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: case stPause: SPI_FSM_NextState = stIdleSPI; SPI_FSM_Done = true; break;
'INF'