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=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface ap_memory 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_memory 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_memory 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
The wrong part of the code is: #pragma HLS interface ap_none port=a The right code snippet is: #pragma HLS interface ap_memory port=a
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS interface ap_memory 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS interface ap_none 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
The wrong part of the code is: #pragma HLS interface ap_none port=a The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_memory 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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none po...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE ap_none port=co...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE ap_none port=sum #pragma HLS INTERFACE...
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: #pragma HLS INTERFACE ap_none port=a #pragma HLS INTERFACE ap_none port=b #pragma HLS INTERFACE ap_none port=cin #pragma HLS INTERFACE a...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: bool sum[2]; sum[0] = sum[1]; The right code snippet is: bool sum[2];
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: bool sum[2];
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: bool sum[2]; sum[0] = sum[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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: bool sum[2]; sum[0] = sum[1]; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool sum[2];
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: sum[1] = sum[0] >> 3; The right code snippet is: sum[1] = sum[0] >> 1;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: sum[1] = sum[0] >> 1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: sum[1] = sum[0] >> 3; 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: sum[1] = sum[0] >> 3; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: sum[1] = sum[0] >> 1;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: for (int i = 0; i < 10; i++) { // some code }
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // some code } 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 }
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: int KAPWR; The right code snippet is: bool KAPWR;
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: bool KAPWR;
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: int KAPWR; 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: int KAPWR; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: bool KAPWR;
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: memcpy(buffer1, buffer2 + 2, sizeof(buffer1)); The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: memcpy(buffer1, buffer2 + 2, sizeof(buffer1)); 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: memcpy(buffer1, buffer2 + 2, sizeof(buffer1)); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, sizeof(buffer1));
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic The right code snippet is: #pragma HLS array_partition variable=sum complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=sum complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=sum complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=2
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=2
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=sum cyclic factor=2
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=2 dim=0 The right code snippet is: #pragma HLS array_partition variable=sum 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS array_partition variable=sum 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=2 dim=0 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS array_partition variable=sum cyclic factor=2 dim=0 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=sum 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS interface ap_none port=return The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS interface ap_none port=return 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface ap_none port=return The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_ctrl_none port=return
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 offset=slave bundle=gmem1 The right code snippet is: #pragma HLS interface m_axi port=buffer1 offset=slave bundle=gmem
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS interface m_axi port=buffer1 offset=slave bundle=gmem
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface m_axi port=buffer1 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=buffer1 offset=slave bundle=gmem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS interface bram port=buffer1 The right code snippet is: #pragma HLS interface ap_fifo port=buffer1
'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=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_fifo port=buffer1
'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=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS interface bram port=buffer1 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=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface bram port=buffer1 The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_fifo port=buffer1
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
The wrong part of the code is: #pragma HLS interface s_axilite port=buffer1 The right code snippet is: #pragma HLS interface ap_vld port=buffer1
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
The right code snippet is: #pragma HLS interface ap_vld port=buffer1
'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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
The wrong part of the code is: #pragma HLS interface s_axilite port=buffer1 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 s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
The wrong part of the code is: #pragma HLS interface s_axilite port=buffer1 The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_vld port=buffer1
'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=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
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=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma...
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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_BUS #pragma HLS ...
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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=VPWR bundle=CRTL_...
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: #pragma HLS INTERFACE s_axilite port=return bundle=CRTL_BUS #pragma HLS INTERFACE s_axilite port=KAPWR bundle=CRTL_BUS #pragma HLS INTER...
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: if (Rst || Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; } The right code snippet is: if (Rst || !Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; }
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: if (Rst || !Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; }
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: if (Rst || Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; } 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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: if (Rst || Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; } The high-level-synthesis bug type of the code is: INIT The right code snippet is: if (Rst || !Rden) { Dataout = 0; } else if (Rden) { Dataout = data_ram[adr_rd_i]; }
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: Dataout = data_ram[adr_rd_i + DEPTH]; The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: Dataout = data_ram[adr_rd_i + DEPTH]; 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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: Dataout = data_ram[adr_rd_i + DEPTH]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: status_cnt = status_cnt << DEPTH; The right code snippet is: status_cnt = status_cnt + 1;
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: status_cnt = status_cnt + 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: #include <ap_int.h> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: status_cnt = status_cnt << DEPTH; 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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: status_cnt = status_cnt << DEPTH; The high-level-synthesis bug type of the code is: SHFT The right code snippet is: status_cnt = status_cnt + 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: #include <ap_int.h> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: Dataout = (ap_int<dat_width>)data_ram[adr_rd_i]; The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: Dataout = (ap_int<dat_width>)data_ram[adr_rd_i]; 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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: Dataout = (ap_int<dat_width>)data_ram[adr_rd_i]; The high-level-synthesis bug type of the code is: USE The right code snippet is: Dataout = data_ram[adr_rd_i];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: static ap_uint<dat_width> data_ram[DEPTH] = 0; The right code snippet is: static ap_uint<dat_width> data_ram[DEPTH];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: static ap_uint<dat_width> data_ram[DEPTH];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: static ap_uint<dat_width> data_ram[DEPTH] = 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: #include <ap_int.h> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: static ap_uint<dat_width> data_ram[DEPTH] = 0; The high-level-synthesis bug type of the code is: ZERO The right code snippet is: static ap_uint<dat_width> data_ram[DEPTH];
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ...
The wrong part of the code is: RAM(Datain, data_ram[adr_rd_i + DEPTH], adr_wr_i, adr_rd_i, Wren, Rden, CLK); The right code snippet is: RAM(Datain, data_ram[adr_rd_i], adr_wr_i, adr_rd_i, Wren, Rden, CLK);
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // reset ap_u...
The right code snippet is: RAM(Datain, data_ram[adr_rd_i], adr_wr_i, adr_rd_i, Wren, Rden, CLK);
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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CLK, // clock ap_rst Rst, // re...
The wrong part of the code is: RAM(Datain, data_ram[adr_rd_i + DEPTH], adr_wr_i, adr_rd_i, Wren, Rden, CLK); 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> template<int DEPTH=8, int L=3, int dat_width=8> class data_buffer { public: void operator() ( ap_clk CL...
The wrong part of the code is: RAM(Datain, data_ram[adr_rd_i + DEPTH], adr_wr_i, adr_rd_i, Wren, Rden, CLK); The high-level-synthesis bug type of the code is: BUF The right code snippet is: RAM(Datain, data_ram[adr_rd_i], adr_wr_i, adr_rd_i, Wren, Rden, CLK);
BUF