instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFAC...
The wrong part of the code is: D_OUT_5 = regfile_mem[ADDR_5+50]; The right code snippet is: D_OUT_5 = regfile_mem[ADDR_5];
OOB
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFACE ap_...
The right code snippet is: D_OUT_5 = regfile_mem[ADDR_5];
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma H...
The wrong part of the code is: D_OUT_5 = regfile_mem[ADDR_5+50]; The high-level-synthesis bug type of the code is: OOB
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS IN...
The wrong part of the code is: D_OUT_5 = regfile_mem[ADDR_5+50]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: D_OUT_5 = regfile_mem[ADDR_5];
OOB
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { D_OUT_2 = regfile_mem[ADDR_2]; } The right code snippet is: D_OUT_2 = regfile_mem[ADDR_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 ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFACE ap_...
The right code snippet is: D_OUT_2 = regfile_mem[ADDR_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 ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma H...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { D_OUT_2 = regfile_mem[ADDR_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_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS IN...
The wrong part of the code is: #pragma HLS unroll factor(2) for (int i = 0; i < 2; i++) { D_OUT_2 = regfile_mem[ADDR_2]; } The high-level-synthesis bug type of the code is: ILNU The right code snippet is: D_OUT_2 = regfile_mem[ADDR_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: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS array_partition variable=regfile_mem cyclic factor=2 dim=1 D_OUT_3 = regfile_mem[ADDR_3]; The right code snippet is: D_OUT_3 = regfile_mem[ADDR_3];
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFACE ap_...
The right code snippet is: D_OUT_3 = regfile_mem[ADDR_3];
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma H...
The wrong part of the code is: #pragma HLS array_partition variable=regfile_mem cyclic factor=2 dim=1 D_OUT_3 = regfile_mem[ADDR_3]; The high-level-synthesis bug type of the code is: APT
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS IN...
The wrong part of the code is: #pragma HLS array_partition variable=regfile_mem cyclic factor=2 dim=1 D_OUT_3 = regfile_mem[ADDR_3]; The high-level-synthesis bug type of the code is: APT The right code snippet is: D_OUT_3 = regfile_mem[ADDR_3];
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS interface ap_fifo port=D_OUT_4 D_OUT_4 = regfile_mem[ADDR_4]; The right code snippet is: D_OUT_4 = regfile_mem[ADDR_4];
IDAP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma HLS INTERFACE ap_...
The right code snippet is: D_OUT_4 = regfile_mem[ADDR_4];
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS INTERFACE ap_none port=ADDR_3 #pragma H...
The wrong part of the code is: #pragma HLS interface ap_fifo port=D_OUT_4 D_OUT_4 = regfile_mem[ADDR_4]; The high-level-synthesis bug type of the code is: IDAP
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=CLK #pragma HLS INTERFACE ap_none port=ADDR_1 #pragma HLS INTERFACE ap_none port=ADDR_2 #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_fifo port=D_OUT_4 D_OUT_4 = regfile_mem[ADDR_4]; The high-level-synthesis bug type of the code is: IDAP The right code snippet is: D_OUT_4 = regfile_mem[ADDR_4];
IDAP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT0_PHASE = sys_pll_cfg.PLL_OUT0_PHASE + 1; The right code snippet is: sys_pll_cfg.PLL_OUT0_PHASE = -3000;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: sys_pll_cfg.PLL_OUT0_PHASE = -3000;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: sys_pll_cfg.PLL_OUT0_PHASE = sys_pll_cfg.PLL_OUT0_PHASE + 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: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT0_PHASE = sys_pll_cfg.PLL_OUT0_PHASE + 1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sys_pll_cfg.PLL_OUT0_PHASE = -3000;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: bool sys_pll_locked_export = false; The right code snippet is: bool sys_pll_locked_export;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: bool sys_pll_locked_export;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: bool sys_pll_locked_export = false; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: bool sys_pll_locked_export = false; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool sys_pll_locked_export;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT_FREQ = sys_pll_cfg.PLL_OUT_FREQ << 5; The right code snippet is: sys_pll_cfg.PLL_OUT_FREQ = 100;
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: sys_pll_cfg.PLL_OUT_FREQ = 100;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: sys_pll_cfg.PLL_OUT_FREQ = sys_pll_cfg.PLL_OUT_FREQ << 5; The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT_FREQ = sys_pll_cfg.PLL_OUT_FREQ << 5; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: sys_pll_cfg.PLL_OUT_FREQ = 100;
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // code here } The right code snippet is: for (int i = 0; i < 10; i++) { // 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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: for (int i = 0; i < 10; i++) { // 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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // 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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: for (int i = 0; i >= 0; i++) { // 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++) { // 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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: int8_t tmp = sys_pll_cfg.PLL_OUT0_DIV; sys_pll_cfg.PLL_OUT0_DIV = (uint8_t)tmp; The right code snippet is: sys_pll_cfg.PLL_OUT0_DIV = 1;
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: sys_pll_cfg.PLL_OUT0_DIV = 1;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: int8_t tmp = sys_pll_cfg.PLL_OUT0_DIV; sys_pll_cfg.PLL_OUT0_DIV = (uint8_t)tmp; The high-level-synthesis bug type of the code is: 'USE'
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: int8_t tmp = sys_pll_cfg.PLL_OUT0_DIV; sys_pll_cfg.PLL_OUT0_DIV = (uint8_t)tmp; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: sys_pll_cfg.PLL_OUT0_DIV = 1;
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: // code here // code here // code here The right code snippet is: // code here
'MLU'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: // code here
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: // code here // code here // code here The high-level-synthesis bug type of the code is: 'MLU'
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: // code here // code here // code here The high-level-synthesis bug type of the code is: 'MLU' The right code snippet is: // code here
'MLU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT9_DIV = 0; The right code snippet is: sys_pll_cfg.PLL_OUT9_DIV = 1;
'ZERO'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: sys_pll_cfg.PLL_OUT9_DIV = 1;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: sys_pll_cfg.PLL_OUT9_DIV = 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: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: sys_pll_cfg.PLL_OUT9_DIV = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: sys_pll_cfg.PLL_OUT9_DIV = 1;
'ZERO'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: // code here The right code snippet is: // code here
'BUF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: // code here
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: // code here The high-level-synthesis bug type of the code is: 'BUF'
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: // code here The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: // code here
'BUF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV cyclic The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV cyclic The high-level-synthesis bug type of the code is: 'APT'
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV cyclic The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV factor=3 The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'FND'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV dim=2 The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV dim=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV dim=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=sys_pll_cfg.PLL_OUT0_DIV complete
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS dataflow loop_flatten The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS interface ap_vld port=sys_pll_locked_export The right code snippet is: #pragma HLS interface ap_none port=sys_pll_locked_export
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS interface ap_none port=sys_pll_locked_export
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS interface ap_vld port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS interface ap_vld port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=sys_pll_locked_export
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS interface m_axi port=sys_pll_locked_export offset=64 The right code snippet is: #pragma HLS interface m_axi port=sys_pll_locked_export
'RAMB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS interface m_axi port=sys_pll_locked_export
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS interface m_axi port=sys_pll_locked_export offset=64 The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS interface m_axi port=sys_pll_locked_export offset=64 The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=sys_pll_locked_export
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS interface bram port=sys_pll_locked_export The right code snippet is: #pragma HLS interface axis port=sys_pll_locked_export
'SMA'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS interface axis port=sys_pll_locked_export
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS interface bram port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'SMA'
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS interface bram port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface axis port=sys_pll_locked_export
'SMA'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS interface ap_memory port=sys_pll_locked_export The right code snippet is: #pragma HLS interface ap_vld port=sys_pll_locked_export
'AMS'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS interface ap_vld port=sys_pll_locked_export
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS interface ap_memory port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'AMS'
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS interface ap_memory port=sys_pll_locked_export The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_vld port=sys_pll_locked_export
'AMS'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP'
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_cl...
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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk port=sdram_clk_clk...
The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_clk_clk #pragma HLS INTERFACE ap_clk po...
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_clk port=ref_clk_clk #pragma HLS INTERFACE ap_rst_n port=ref_reset_reset #pragma HLS INTERFACE ap_clk port=sys_cl...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: state_r = state_e1+1; The right code snippet is: state_r = state_e1;
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: state_r = state_e1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: state_r = state_e1+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: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: state_r = state_e1+1; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: state_r = state_e1;
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: static state_t state_e1; The right code snippet is: static state_t state_e1 = IDLE;
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: static state_t state_e1 = IDLE;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: static state_t state_e1; The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: static state_t state_e1; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static state_t state_e1 = IDLE;
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state...
The wrong part of the code is: case UPDATE2: state_e1 = WAIT1; break; The right code snippet is: case UPDATE2: state_e1 = IDLE; break;
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPDATE2} state_t; ...
The right code snippet is: case UPDATE2: state_e1 = IDLE; break;
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {IDLE, SEND, WAIT1, UPDATE1, WAIT2, UPD...
The wrong part of the code is: case UPDATE2: state_e1 = WAIT1; break; The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=rst_ #pragma HLS INTERFACE ap_none port=state_r typedef enum {I...
The wrong part of the code is: case UPDATE2: state_e1 = WAIT1; break; The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: case UPDATE2: state_e1 = IDLE; break;
'INF'