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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCC...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCCD, bo...
The right code snippet is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, HLD_H...
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIA...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool V...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCC...
The wrong part of the code is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, inp_dis_out, ref_out}; The right code snippet is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, inp_dis_out};
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCCD, bo...
The right code snippet is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, inp_dis_out};
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIA...
The wrong part of the code is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, inp_dis_out, ref_out}; 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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool V...
The wrong part of the code is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, inp_dis_out, ref_out}; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: // Assign output_vector output_vector = {ref_out, vreg_out, vtrip_out, od_out, ...
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCC...
The wrong part of the code is: // Generate od_out while(true){ od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); } The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCCD, bo...
The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIA...
The wrong part of the code is: // Generate od_out while(true){ od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); } 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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool V...
The wrong part of the code is: // Generate od_out while(true){ od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCC...
The wrong part of the code is: // Generate od_out od_out = (int) OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'USE'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCCD, bo...
The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIA...
The wrong part of the code is: // Generate od_out od_out = (int) OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); 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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool V...
The wrong part of the code is: // Generate od_out od_out = (int) OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0)); The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: // Generate od_out od_out = OD_H && ((VDDIO_Q==1) && (VDDIO==1) && (VSSD==0));
'USE'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCC...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIAS, bool VCCD, bo...
The right code snippet is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, HLD_H...
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool VINREF, bool VOUTREF, bool REFLEAK_BIA...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'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: // HLS code for my_module void my_module(bool ref_out, bool vreg_out, bool vtrip_out, bool od_out, bool inp_dis_out, bool V...
The wrong part of the code is: bool [2:0] dm_final; bool slow_final, vtrip_sel_final, inp_dis_final, hld_ovr_final; bool [2:0] dm; bool slow, inp_dis, hld_ovr; bool [1:0] vsel; sky130_fd_io__top_refgen refgen(VINREF, VOUTREF, REFLEAK_BIAS, VCCD, VCCHIB, VDDA, VDDIO, VDDIO_Q, VSSD, VSSIO, VSSIO_Q, H...
'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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: read_data = memory[rdaddress+1]; The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: read_data = memory[rdaddress+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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: read_data = memory[rdaddress+1]; The high-level-synthesis bug type of the code is: OOB The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: uint72_t memory[1024]; The right code snippet is: static uint72_t memory[1024];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: static uint72_t memory[1024];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: uint72_t memory[1024]; 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: uint72_t memory[1024]; The high-level-synthesis bug type of the code is: INIT The right code snippet is: static uint72_t memory[1024];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: for (int i = 0; ; i++) { The right code snippet is: for (int i = 0; i < 10; i++) {
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: for (int i = 0; i < 10; i++) {
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: for (int i = 0; ; i++) { 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: for (int i = 0; ; i++) { The high-level-synthesis bug type of the code is: INF The right code snippet is: for (int i = 0; i < 10; i++) {
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: int72_t read_data; The right code snippet is: uint72_t read_data;
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: uint72_t read_data;
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: int72_t read_data; 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: int72_t read_data; The high-level-synthesis bug type of the code is: USE The right code snippet is: uint72_t read_data;
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: read_data = memory[rdaddress + 512]; The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: read_data = memory[rdaddress + 512]; 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: read_data = memory[rdaddress + 512]; The high-level-synthesis bug type of the code is: BUF The right code snippet is: read_data = memory[rdaddress];
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=4 dim=1 The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
APT
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=4 dim=1 The high-level-synthesis bug type of the code is: APT
APT
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=memory cyclic factor=4 dim=1 The high-level-synthesis bug type of the code is: APT The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
APT
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS array_partition variable=memory block factor=3 dim=1 The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
FND
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=memory block factor=3 dim=1 The high-level-synthesis bug type of the code is: FND
FND
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=memory block factor=3 dim=1 The high-level-synthesis bug type of the code is: FND The right code snippet is: #pragma HLS array_partition variable=memory block factor=4 dim=1
FND
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS dataflow pipeline The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: DFP
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS dataflow pipeline The high-level-synthesis bug type of the code is: DFP The right code snippet is: #pragma HLS dataflow
DFP
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_memory port=data The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS interface ap_memory port=data 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_memory port=data The high-level-synthesis bug type of the code is: IDAP The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface m_axi port=memory random The right code snippet is: #pragma HLS interface m_axi port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface m_axi port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS interface m_axi port=memory random The high-level-synthesis bug type of the code is: RAMB
RAMB
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS interface m_axi port=memory random The high-level-synthesis bug type of the code is: RAMB The right code snippet is: #pragma HLS interface m_axi port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface bram port=data The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS interface bram port=data 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS interface bram port=data The high-level-synthesis bug type of the code is: SMA The right code snippet is: #pragma HLS interface ap_fifo port=data
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
The wrong part of the code is: #pragma HLS interface ap_fifo port=memory The right code snippet is: #pragma HLS interface bram port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
The right code snippet is: #pragma HLS interface bram port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=memory 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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_fifo port=memory The high-level-synthesis bug type of the code is: AMS The right code snippet is: #pragma HLS interface bram port=memory
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
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_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
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_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
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_clk port=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFA...
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma HLS INTERFACE ap...
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS INTERFACE ap_fifo port=rden #pragma ...
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=clock #pragma HLS INTERFACE ap_fifo port=data #pragma HLS INTERFACE ap_fifo port=rdaddress #pragma HLS...
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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: if (set_minutes) { clock_state.minutes++; if (clock_state.minutes == 61) { clock_state.minutes = 0; if (clock_state.hours == 11) { clock_state.am_pm = !clock_state.am_pm; } clock_state.hours++; if (clock_state.hours == 1...
'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 s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: if (set_minutes) { clock_state.minutes++; if (clock_state.minutes == 60) { clock_state.minutes = 0; if (clock_state.hours == 11) { clock_state.am_pm = !clock_state.am_pm; } clock_state.hours++; if (clock_state.hours == 12) {...
'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 s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: if (set_minutes) { clock_state.minutes++; if (clock_state.minutes == 61) { clock_state.minutes = 0; if (clock_state.hours == 11) { clock_state.am_pm = !clock_state.am_pm; } clock_state.hours++; if (clock_state.hours == 1...
'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 s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: if (set_minutes) { clock_state.minutes++; if (clock_state.minutes == 61) { clock_state.minutes = 0; if (clock_state.hours == 11) { clock_state.am_pm = !clock_state.am_pm; } clock_state.hours++; if (clock_state.hours == 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: #pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: static clock_t clock_state; The right code snippet is: static clock_t clock_state = {0, 0, false};
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: static clock_t clock_state = {0, 0, false};
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: static clock_t clock_state; 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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: static clock_t clock_state; The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: static clock_t clock_state = {0, 0, false};
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: int i = 0; while (i < 10) { // finite loop i++; } The right code snippet is: while (1) { // infinite loop }
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: while (1) { // infinite loop }
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: int i = 0; while (i < 10) { // finite loop i++; } 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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: int i = 0; while (i < 10) { // finite loop i++; } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (1) { // infinite loop }
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: int16_t minutes_display; The right code snippet is: ap_uint<6> minutes_display;
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: ap_uint<6> minutes_display;
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: int16_t minutes_display; 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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: int16_t minutes_display; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: ap_uint<6> minutes_display;
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: memcpy(buffer1, buffer2 + size, size); The right code snippet is: memcpy(buffer1, buffer2, size);
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: memcpy(buffer1, buffer2, size);
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: memcpy(buffer1, buffer2 + size, size); 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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: memcpy(buffer1, buffer2 + size, size); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: memcpy(buffer1, buffer2, size);
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #prag...
The wrong part of the code is: #pragma HLS array_partition variable=clock_state cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=clock_state complete dim=0
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTRL_BUS #pragma HL...
The right code snippet is: #pragma HLS array_partition variable=clock_state complete dim=0
'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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=set_hours bundle=CTR...
The wrong part of the code is: #pragma HLS array_partition variable=clock_state cyclic dim=0 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=clk bundle=CTRL_BUS #pragma HLS INTERFACE s_axilite port=reset bundle=CTRL_BUS #pragma HLS INTERFAC...
The wrong part of the code is: #pragma HLS array_partition variable=clock_state cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=clock_state complete dim=0
'APT'