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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS #pragma HLS INTERFAC...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS #pra...
The wrong part of the code is: #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS INTERFACE bram port=din bundle=CRTL_BUS The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS
'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 axis port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE axis port=return bundle=CRTL_BUS The right code snippet is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
'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 axis port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HLS INTERFAC...
The right code snippet is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
'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 axis port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pra...
The wrong part of the code is: #pragma HLS INTERFACE axis port=return bundle=CRTL_BUS 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 axis port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_...
The wrong part of the code is: #pragma HLS INTERFACE axis port=return bundle=CRTL_BUS The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HL...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HLS INT...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HL...
The wrong part of the code is: #pragma HLS UNROLL factor=6 The right code snippet is: #pragma HLS UNROLL factor=8
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS #pragma HLS INT...
The right code snippet is: #pragma HLS UNROLL factor=8
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=din bundle=CRTL_BUS...
The wrong part of the code is: #pragma HLS UNROLL factor=6 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=clk bundle=CRTL_BUS #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS UNROLL factor=6 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS UNROLL factor=8
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: bool X = 0; The right code snippet is: bool X;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool X;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: bool X = 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: bool X = 0; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool X;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 2) { The right code snippet is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 1) {
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 1) {
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 2) { The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 2) { The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: if (A1_N == 0 && A2_N == 0 && B1 == 1 && B2 == 1) {
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: X = 1 << 10; The right code snippet is: X = 1;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: X = 1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: X = 1 << 10; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: X = 1 << 10; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: X = 1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: while(1) { The right code snippet is: else {
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: else {
'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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: while(1) { 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: while(1) { The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: else {
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: signed int X; The right code snippet is: bool X;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool X;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: signed int X; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: signed int X; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool X;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: for (int i = 0; i < 11; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: for (int i = 0; i < 10; 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: for (int i = 0; i < 11; 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: for (int i = 0; i < 11; i++) { The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: for (int i = 0; i < 10; 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: bool X = 0; The right code snippet is: bool X;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool X;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: bool X = 0; The high-level-synthesis bug type of the code is: 'ZERO'
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: bool X = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: bool X;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: bool A[5]; The right code snippet is: bool A[10];
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: bool A[10];
'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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: bool A[5]; 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: bool A[5]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: bool A[10];
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A cyclic factor=2 dim=1 The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS ARRAY_PARTITION variable=A complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS ARRAY_PARTITION variable=A 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=A complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS DATAFLOW inline 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS DATAFLOW inline 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS DATAFLOW inline 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_f...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=X The right code snippet is: #pragma HLS INTERFACE ap_none port=X
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_fifo p...
The right code snippet is: #pragma HLS INTERFACE ap_none port=X
'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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=X 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS INTERFACE ap_fifo port=X The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS INTERFACE ap_none port=X
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=60 port=mem The right code snippet is: #pragma HLS INTERFACE m_axi depth=50 port=mem
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS INTERFACE m_axi depth=50 port=mem
'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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=60 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS INTERFACE m_axi depth=60 port=mem The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS INTERFACE m_axi depth=50 port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS INTERFACE bram port=A The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS INTERFACE ap_none port=A
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The right code snippet is: #pragma HLS INTERFACE ap_fifo port=A
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS INTERFACE ap_fifo port=A
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS INTERFACE ap_vld port=A The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS INTERFACE ap_fifo port=A
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS PIPELINE II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS PIPELINE II=1
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_n...
The wrong part of the code is: #pragma HLS UNROLL factor=1 The right code snippet is: #pragma HLS UNROLL factor=2
'ILNU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INTERFACE ap_none p...
The right code snippet is: #pragma HLS UNROLL factor=2
'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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB, bool VNB ) { #pragma HLS INT...
The wrong part of the code is: #pragma HLS UNROLL factor=1 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: ``` void verilog_module( bool X, bool A1_N, bool A2_N, bool B1, bool B2, bool VPWR, bool VGND, bool VPB,...
The wrong part of the code is: #pragma HLS UNROLL factor=1 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS UNROLL factor=2
'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 carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTER...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'OOB': Out-of-bounds array access
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ...
The right code snippet is: c[7] = g[7] | (p[7] & g[6]) | (p[7] & p[6] & g[5]) | (p[7] & p[6] & p[5] & g[4]) | (p[7] & p[6] & p[5] & p[4] & g[3]) | (p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & p[1] & g[0]);
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragm...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HL...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'OOB': Out-of-bounds array access
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTER...
The wrong part of the code is: ap_uint<8> c = 0; The right code snippet is: ap_uint<8> c;
'INIT': Read of uninitialized variable
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ...
The right code snippet is: ap_uint<8> c;
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragm...
The wrong part of the code is: ap_uint<8> c = 0; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HL...
The wrong part of the code is: ap_uint<8> c = 0; The high-level-synthesis bug type of the code is: 'INIT': Read of uninitialized variable The right code snippet is: ap_uint<8> c;
'INIT': Read of uninitialized variable
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTER...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ...
The right code snippet is: c[7] = g[7] | (p[7] & g[6]) | (p[7] & p[6] & g[5]) | (p[7] & p[6] & p[5] & g[4]) | (p[7] & p[6] & p[5] & p[4] & g[3]) | (p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & p[1] & g[0]);
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HLS INTERFACE ap_none port=a #pragm...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'SHFT': Bit shift by an out-of-bounds amount
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: ``` #include <ap_int.h> void carry_lookahead_adder(ap_uint<8> a, ap_uint<8> b, ap_uint<8>& sum, ap_uint<1>& carry_out) { #pragma HL...
The wrong part of the code is: c[8] = g[8] | (p[8] & g[7]) | (p[8] & p[7] & g[6]) | (p[8] & p[7] & p[6] & g[5]) | (p[8] & p[7] & p[6] & p[5] & g[4]) | (p[8] & p[7] & p[6] & p[5] & p[4] & g[3]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & g[2]) | (p[8] & p[7] & p[6] & p[5] & p[4] & p[3] & p[2] & g[1]) | (p[8] &...
'SHFT': Bit shift by an out-of-bounds amount