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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: out = (in1 | (ap_int<32>(in2) << 24)).or_reduce(); The right code snippet is: out = (in1 | (ap_uint<32>(in2) << 24)).or_reduce();
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: out = (in1 | (ap_uint<32>(in2) << 24)).or_reduce();
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: out = (in1 | (ap_int<32>(in2) << 24)).or_reduce(); The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: out = (in1 | (ap_int<32>(in2) << 24)).or_reduce(); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: out = (in1 | (ap_uint<32>(in2) << 24)).or_reduce();
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change cyclic The right code snippet is: #pragma HLS array_partition variable=bit_change 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=bit_change 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change block factor=3 The right code snippet is: #pragma HLS array_partition variable=bit_change complete
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change block factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change block factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change dim=2 complete The right code snippet is: #pragma HLS array_partition variable=bit_change complete
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change dim=2 complete 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS array_partition variable=bit_change dim=2 complete The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=bit_change 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS interface ap_fifo port=clk The right code snippet is: #pragma HLS interface ap_none port=clk
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_none port=clk
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=clk 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_fifo port=clk The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=clk
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS interface m_axi port=in The right code snippet is: #pragma HLS interface axis port=in
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS interface axis port=in
'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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface m_axi port=in 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> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS interface m_axi port=in The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface axis port=in
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS interface bram port=in The right code snippet is: #pragma HLS interface ap_none port=in
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_none 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
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 ap_none 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS interface ap_vld port=in The right code snippet is: #pragma HLS interface ap_none port=in
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_none 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS interface ap_vld 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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS interface ap_vld port=in The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=in
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS pipeline II=3 The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS pipeline II=3 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS pipeline II=3 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma...
The wrong part of the code is: #pragma HLS unroll factor=2 The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS ...
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: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HLS INTERFACE ap_ctrl_none port=return ...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void top_module(ap_uint<1> clk, ap_uint<1> reset, ap_uint<32> in, ap_uint<8> in2, ap_uint<1> &out) { #pragma HL...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: if (A < B) { The right code snippet is: if (A > B) {
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: if (A > B) {
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: if (A < B) { 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: if (A < B) { The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (A > B) {
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: bool greater = 1; The right code snippet is: bool greater;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: bool greater;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: bool greater = 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: bool greater = 1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool greater;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: A << 6; The right code snippet is: A << 2;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: A << 2;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: A << 6; 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: A << 6; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: A << 2;
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: while (false) { The right code snippet is: while (true) {
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: while (true) {
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: while (false) { 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: while (false) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (true) {
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: unsigned int A; The right code snippet is: int 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: int 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: unsigned int 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: unsigned int A; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: int 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: for (int i = 0; i < 3; i++) { The right code snippet is: for (int i = 0; i < 4; i++) {
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: for (int i = 0; i < 4; 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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: for (int i = 0; i < 3; i++) { 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: for (int i = 0; i < 3; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 4; i++) {
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: bool greater = 1; The right code snippet is: bool greater = 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: bool greater = 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: bool greater = 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: bool greater = 1; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool greater = 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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: memcpy(A, B+4, 4); The right code snippet is: memcpy(A, B, 4);
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: memcpy(A, B, 4);
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: memcpy(A, B+4, 4); 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: memcpy(A, B+4, 4); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(A, B, 4);
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A block factor=2 dim=1 The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=3 dim=1 The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS array_partition variable=A cyclic factor=2 dim=2 The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=A 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=A 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
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_none port=A #pragma HLS INTERFACE ...
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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #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'
'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_none port=A #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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none por...
The wrong part of the code is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem1 The right code snippet is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem0
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ap_none port=gre...
The right code snippet is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem0
'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_none port=A #pragma HLS INTERFACE ap_none port=B #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem1 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_none port=A #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem1 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=A offset=slave bundle=gmem0
'RAMB'