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_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragma HLS dataf...
The wrong part of the code is: #pragma HLS dataflow cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The right code snippet is: cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), ...
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragma HLS dataflow c...
The right code snippet is: cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) );
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragm...
The wrong part of the code is: #pragma HLS dataflow cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS ...
The wrong part of the code is: #pragma HLS dataflow cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: cy_psoc3_ctcomp_v1_0 ctComp ( ...
'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_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragma HLS unrol...
The wrong part of the code is: #pragma HLS unroll factor(2) cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The right code snippet is: cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(C...
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragma HLS unroll fac...
The right code snippet is: cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) );
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS INTERFACE ap_none port=CmpOut #pragm...
The wrong part of the code is: #pragma HLS unroll factor(2) cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The high-level-synthesis bug type of the code is: 'ILNU'
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=Vplus #pragma HLS INTERFACE ap_none port=Vminus #pragma HLS INTERFACE ap_none port=clock #pragma HLS ...
The wrong part of the code is: #pragma HLS unroll factor(2) cy_psoc3_ctcomp_v1_0 ctComp ( .vplus(Vplus), .vminus(Vminus), .cmpout(CmpOut), .clk_udb(clock), .clock(clock) ); The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: cy_psoc3_ctcomp_v1_0 c...
'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_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: temp_result = in1 * in2 + 1; The right code snippet is: temp_result = in1 * in2;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: temp_result = in1 * in2;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: temp_result = in1 * in2 + 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: temp_result = in1 * in2 + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: temp_result = in1 * in2;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: ap_uint<16> temp_result = 0; The right code snippet is: ap_uint<16> temp_result;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: ap_uint<16> temp_result;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: ap_uint<16> temp_result = 0; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: ap_uint<16> temp_result = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: ap_uint<16> temp_result;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: temp_result = in1 << in2 + 1; The right code snippet is: temp_result = in1 * in2;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: temp_result = in1 * in2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: temp_result = in1 << in2 + 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: temp_result = in1 << in2 + 1; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: temp_result = in1 * in2;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: while(true) {} The right code snippet is: if (in2 == 0) { result = 0; overflow = false; zero = true; }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: if (in2 == 0) { result = 0; overflow = false; zero = 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: while(true) {} The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: while(true) {} The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: if (in2 == 0) { result = 0; overflow = false; zero = 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: temp_result = (ap_int<16>)in1 * (ap_int<16>)in2; The right code snippet is: temp_result = in1 * in2;
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: temp_result = in1 * in2;
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: temp_result = (ap_int<16>)in1 * (ap_int<16>)in2; 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: temp_result = (ap_int<16>)in1 * (ap_int<16>)in2; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: temp_result = in1 * in2;
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: result = 0; overflow = false; zero = true; The right code snippet is: result = 0; overflow = false; zero = false;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: result = 0; overflow = false; zero = false;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: result = 0; overflow = false; zero = true; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: result = 0; overflow = false; zero = true; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: result = 0; overflow = false; zero = false;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: temp_result = in1 + in2; The right code snippet is: temp_result = in1 * in2;
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: temp_result = in1 * in2;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: temp_result = in1 + in2; The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: temp_result = in1 + in2; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: temp_result = in1 * in2;
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result cyclic 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result cyclic 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=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block factor=3 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block factor=2 dim=2 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=temp_result block 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=temp_result block 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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS DATAFLOW pipeline 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS DATAFLOW
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS DATAFLOW pipeline 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS DATAFLOW pipeline 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in1 The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in1 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=in1 The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=in1 random The right code snippet is: #pragma HLS INTERFACE m_axi port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS INTERFACE m_axi port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=in1 random The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS INTERFACE m_axi port=in1 random The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=in1 The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=in1 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS INTERFACE ap_memory port=in1 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in1 The right code snippet is: #pragma HLS INTERFACE ap_memory port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
The right code snippet is: #pragma HLS INTERFACE ap_memory port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in1 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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS INTERFACE ap_none port=in1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_memory port=in1
'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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
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: #include <ap_int.h> void calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk ...
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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERFACE ap_clk port=...
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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, bool &zero) { #pragma HLS INTERF...
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 calculator(ap_clk, ap_rst, ap_uint<2> op, ap_uint<8> in1, ap_uint<8> in2, ap_uint<8> &result, bool &overflow, ...
The wrong part of the code is: #pragma HLS UNROLL factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS UNROLL
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: ap_uint<34> uninitialized_variable; static ap_fifo<ap_uint<34>, uninitialized_variable> fifo; The right code snippet is: static ap_fifo<ap_uint<34>, 512> fifo;
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFACE s_a...
The right code snippet is: static ap_fifo<ap_uint<34>, 512> fifo;
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma H...
The wrong part of the code is: ap_uint<34> uninitialized_variable; static ap_fifo<ap_uint<34>, uninitialized_variable> fifo; 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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite...
The wrong part of the code is: ap_uint<34> uninitialized_variable; static ap_fifo<ap_uint<34>, uninitialized_variable> fifo; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static ap_fifo<ap_uint<34>, 512> fifo;
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: for (int i = 0; ; i++) { // some code here } The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFACE s_a...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma H...
The wrong part of the code is: for (int i = 0; ; i++) { // some code here } 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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite...
The wrong part of the code is: for (int i = 0; ; i++) { // some code here } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: for (int i = 0; i < 10; i++) { // some code here }
'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 s_axilite port=aclr bundle=CRTL_BUS direction=reverse #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #p...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS direction=reverse The right code snippet is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
'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 s_axilite port=aclr bundle=CRTL_BUS direction=reverse #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
'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 s_axilite port=aclr bundle=CRTL_BUS direction=reverse #pragma HLS INTERFACE s_axilite port=clock bundle=...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS direction=reverse 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 s_axilite port=aclr bundle=CRTL_BUS direction=reverse #pragma HLS I...
The wrong part of the code is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS direction=reverse The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS unroll The right code snippet is: #pragma HLS unroll factor=4
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFACE s_a...
The right code snippet is: #pragma HLS unroll factor=4
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma H...
The wrong part of the code is: #pragma HLS unroll 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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite...
The wrong part of the code is: #pragma HLS unroll The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll factor=4
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[256]; The right code snippet is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[0];
'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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFACE s_a...
The right code snippet is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[0];
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma H...
The wrong part of the code is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[256]; 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_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite...
The wrong part of the code is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[256]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: ap_uint<34> buffer[512]; ap_uint<34> data = buffer[0];
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=512 port=buffer The right code snippet is: #pragma HLS INTERFACE ap_memory depth=512 port=buffer
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma HLS INTERFACE s_a...
The right code snippet is: #pragma HLS INTERFACE ap_memory depth=512 port=buffer
'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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clock bundle=CRTL_BUS #pragma H...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=512 port=buffer 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 s_axilite port=aclr bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite...
The wrong part of the code is: #pragma HLS INTERFACE bram depth=512 port=buffer The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_memory depth=512 port=buffer
'SMA'