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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024];...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=2 douta = mem[addra]; mem[addra] = douta; douta = mem[addra+1]; mem[addra+1] = douta; } The right code snippet is: void Initial_blk_mem_gen...
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024]; voi...
The right code snippet is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; }
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=2 douta = mem[addra]; mem[addra] = douta; douta = mem[addra+1]; mem[addra+1] = douta; } 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=2 douta = mem[addra]; mem[addra] = douta; douta = mem[addra+1]; mem[addra+1] = douta; } 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 right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024] ...
The wrong part of the code is: int mem[1024] = {1}; The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024] = {1}...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int...
The wrong part of the code is: int mem[1024] = {1}; 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: int mem[1024] = {1}; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024];...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra+512]; mem[addra+512] = douta; } The right code snippet is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, boo...
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024]; voi...
The right code snippet is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; }
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra+512]; mem[addra+512] = douta; } 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra+512]; mem[addra+512] = douta; } The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: void Ini...
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS ar...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS array_p...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS ar...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=3 The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS array_p...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS array_partition variable=mem 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 ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS ar...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=1025 The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS array_p...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=1025 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic factor=1025 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024];...
The wrong part of the code is: #pragma HLS dataflow void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; } The right code snippet is: void Initial_blk_mem_gen_prim_width__parameterized20(in...
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int mem[1024]; #pr...
The right code snippet is: void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; }
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta int...
The wrong part of the code is: #pragma HLS dataflow void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; } The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS dataflow void Initial_blk_mem_gen_prim_width__parameterized20(int& douta, bool clka, int addra) { #pragma HLS PIPELINE II=1 douta = mem[addra]; mem[addra] = douta; } The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is:...
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS in...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mem The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS interfa...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mem 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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=mem The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS in...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS interfa...
The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The high-level-synthesis bug type of the code is: 'RAMB'
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS interface m_axi port=mem The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: int mem[1024];
'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_none port=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS in...
The wrong part of the code is: #pragma HLS interface bram port=mem The right code snippet is: int mem[1024];
'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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS interfa...
The right code snippet is: int mem[1024];
'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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS interface bram port=mem 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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS interface bram port=mem The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: int mem[1024];
'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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS in...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The right code snippet is: int mem[1024];
'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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pragma HLS interfa...
The right code snippet is: int mem[1024];
'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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma HLS INTERFACE ap_fifo port=douta #pr...
The wrong part of the code is: #pragma HLS interface ap_none port=mem 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=clka #pragma HLS INTERFACE ap_none port=addra #pragma HLS INTERFACE ap_ctrl_none port=return #pragma ...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: int mem[1024];
'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=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: sum = a + b + c_in; c_out = sum[3]; // accessing out of bounds bit sum = sum[1:0]; The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: sum = a + b + c_in; c_out = sum[3]; // accessing out of bounds bit sum = sum[1:0]; 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: sum = a + b + c_in; c_out = sum[3]; // accessing out of bounds bit sum = sum[1:0]; The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: int sum1, sum2, sum3; int carry1, carry2; // removing carry3 initialization The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: int sum1, sum2, sum3; int carry1, carry2; // removing carry3 initialization 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: int sum1, sum2, sum3; int carry1, carry2; // removing carry3 initialization The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: c_out = sum[4]; // shifting by an out-of-bounds amount sum = sum[3:0]; The right code snippet is: c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: c_out = sum[4]; // shifting by an out-of-bounds amount sum = sum[3:0]; 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: c_out = sum[4]; // shifting by an out-of-bounds amount sum = sum[3:0]; The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS PIPELINE II=0 // setting II=0 to create an infinite loop The right code snippet is: #pragma HLS PIPELINE II=1
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS PIPELINE II=1
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS PIPELINE II=0 // setting II=0 to create an infinite loop 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS PIPELINE II=0 // setting II=0 to create an infinite loop The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: #pragma HLS PIPELINE II=1
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: signed int s_sum = a + b + c_in; // unintended sign extension c_out = s_sum[2]; sum = s_sum[1:0]; The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1:0];
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1: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: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: signed int s_sum = a + b + c_in; // unintended sign extension c_out = s_sum[2]; sum = s_sum[1: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: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: signed int s_sum = a + b + c_in; // unintended sign extension c_out = s_sum[2]; sum = s_sum[1:0]; The high-level-synthesis bug type of the code is: 'USE' The right code snippet is: sum = a + b + c_in; c_out = sum[2]; sum = sum[1: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: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: // First stage of the pipelined carry lookahead adder cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); // manual loop unrolling error The right code snippet is: // First stage of the pipelined carry lookahe...
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: // First stage of the pipelined carry lookahead adder cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1);
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: // First stage of the pipelined carry lookahead adder cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); // manual loop unrolling error 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: // First stage of the pipelined carry lookahead adder cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); cla_adder_stage1(in_vec[3], in_vec[2], 0, sum1, carry1); // manual loop unrolling error The high-level-synthesis bug type of the code is: 'MLU' The right code s...
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: int sum1 = 0, sum2 = 0, sum3 = 0; // initializing variables to zero instead of nonzero initializer int carry1 = 0, carry2 = 0, carry3 = 0; The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: int sum1 = 0, sum2 = 0, sum3 = 0; // initializing variables to zero instead of nonzero initializer int carry1 = 0, carry2 = 0, carry3 = 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: int sum1 = 0, sum2 = 0, sum3 = 0; // initializing variables to zero instead of nonzero initializer int carry1 = 0, carry2 = 0, carry3 = 0; The high-level-synthesis bug type of the code is: 'ZERO' The right code snippet is: int sum1, sum2, sum3; int carry1, carry2, ca...
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: out_vec[0] = sum2; // copying from the wrong half of a split buffer out_vec[1] = sum1; out_vec[2] = carry3; out_vec[3] = sum3; The right code snippet is: out_vec[0] = sum1; out_vec[1] = sum2; out_vec[2] = sum3; out_vec[3] = carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: out_vec[0] = sum1; out_vec[1] = sum2; out_vec[2] = sum3; out_vec[3] = carry3;
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: out_vec[0] = sum2; // copying from the wrong half of a split buffer out_vec[1] = sum1; out_vec[2] = carry3; out_vec[3] = sum3; 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: out_vec[0] = sum2; // copying from the wrong half of a split buffer out_vec[1] = sum1; out_vec[2] = carry3; out_vec[3] = sum3; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: out_vec[0] = sum1; out_vec[1] = sum2; out_vec[2] = sum3; ...
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec cyclic // using the wrong array partition type The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec cyclic // using the wrong array partition type 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec cyclic // using the wrong array partition type The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec factor=3 // choosing a factor that is not divisible The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec factor=3 // choosing a factor that is not divisible 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec factor=3 // choosing a factor that is not divisible The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=in_vec 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec complete dim=2 // using an incorrect dimension The right code snippet is: #pragma HLS array_partition variable=in_vec complete 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 ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS array_partition variable=in_vec complete 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 ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec complete dim=2 // using an incorrect dimension 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS array_partition variable=in_vec complete dim=2 // using an incorrect dimension The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=in_vec complete 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 ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS dataflow wait // adding an incorrect dataflow position pragma 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS dataflow wait // adding an incorrect dataflow position pragma The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS dataflow wait // adding an incorrect dataflow position pragma 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in_vec // using an incorrect data access pattern The right code snippet is: #pragma HLS interface ap_none port=in_vec
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS interface ap_none port=in_vec
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in_vec // using an incorrect data access pattern 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=in_vec // using an incorrect data access pattern The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=in_vec
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS I...
The wrong part of the code is: #pragma HLS interface m_axi port=in_vec random // accessing the m_axi interface randomly The right code snippet is: #pragma HLS interface m_axi port=in_vec
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #pragma HLS INTERF...
The right code snippet is: #pragma HLS interface m_axi port=in_vec
'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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma HLS INTERFACE ap_none port=mid_out #p...
The wrong part of the code is: #pragma HLS interface m_axi port=in_vec random // accessing the m_axi interface randomly 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_none port=in_vec #pragma HLS INTERFACE ap_none port=out_vec #pragma HLS INTERFACE ap_none port=msb_out #pragma ...
The wrong part of the code is: #pragma HLS interface m_axi port=in_vec random // accessing the m_axi interface randomly The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=in_vec
'RAMB'