instruction
stringlengths
139
357k
response
stringlengths
36
4.54k
buggy_type
stringclasses
745 values
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: WAinstrF = mem[PC/2]; The right code snippet is: WAinstrF = mem[PC];
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: WAinstrF = mem[PC];
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: WAinstrF = mem[PC/2]; 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: WAinstrF = mem[PC/2]; The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: WAinstrF = mem[PC];
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 factor=2 The right code snippet is: #pragma HLS array_partition variable=mem complete dim=1
'APT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS array_partition variable=mem complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 factor=2 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=mem complete dim=1
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 factor=3 The right code snippet is: #pragma HLS array_partition variable=mem complete 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS array_partition variable=mem complete 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 factor=3 The high-level-synthesis bug type of the code is: 'FND'
'FND'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=1 factor=3 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=mem complete 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=2 factor=2 The right code snippet is: #pragma HLS array_partition variable=mem 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS array_partition variable=mem 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS array_partition variable=mem cyclic dim=2 factor=2 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=mem 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_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS dataflow region The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP'
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS dataflow region The high-level-synthesis bug type of the code is: 'DFP' The right code snippet is: #pragma HLS dataflow
'DFP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS interface ap_fifo port=WAinstrD The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS interface ap_fifo port=WAinstrD The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_fifo port=WAinstrD The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave The right code snippet is: #pragma HLS interface m_axi port=mem
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS interface m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface m_axi port=mem offset=slave The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=mem
'RAMB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS interface bram port=WAinstrD The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS interface bram port=WAinstrD 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface bram port=WAinstrD The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS interface ap_vld port=WAinstrD The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma...
The wrong part of the code is: #pragma HLS interface ap_vld port=WAinstrD 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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS interface ap_vld port=WAinstrD The high-level-synthesis bug type of the code is: 'AMS' The right code snippet is: #pragma HLS interface ap_none port=WAinstrD
'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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
The wrong part of the code is: #pragma HLS pipeline II=2 The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS pipeline II=2 The high-level-synthesis bug type of the code is: 'MLP' The right code snippet is: #pragma HLS pipeline
'MLP'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERF...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #pragma HLS INTERFACE a...
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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS INTERFACE ap_none port=WAinstrF #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=clk #pragma HLS INTERFACE ap_rst port=reset #pragma HLS INTERFACE ap_none port=WAinstrD #pragma HLS IN...
The wrong part of the code is: #pragma HLS unroll factor=2 The high-level-synthesis bug type of the code is: 'ILNU' The right code snippet is: #pragma HLS unroll
'ILNU'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: bool idle; idle = idle && state.bitcount.and_reduce(); The right code snippet is: bool idle = state.bitcount.and_reduce();
'INIT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: bool idle = state.bitcount.and_reduce();
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: bool idle; idle = idle && state.bitcount.and_reduce(); The high-level-synthesis bug type of the code is: 'INIT'
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: bool idle; idle = idle && state.bitcount.and_reduce(); The high-level-synthesis bug type of the code is: 'INIT' The right code snippet is: bool idle = state.bitcount.and_reduce();
'INIT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: ap_uint<3> hhN = (hh.range(2, 1), uart_rx); The right code snippet is: ap_uint<3> hhN = (hh.range(1, 0), uart_rx);
'OOB'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: ap_uint<3> hhN = (hh.range(1, 0), uart_rx);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: ap_uint<3> hhN = (hh.range(2, 1), uart_rx); The high-level-synthesis bug type of the code is: 'OOB'
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: ap_uint<3> hhN = (hh.range(2, 1), uart_rx); The high-level-synthesis bug type of the code is: 'OOB' The right code snippet is: ap_uint<3> hhN = (hh.range(1, 0), uart_rx);
'OOB'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[9])) : (state.shifter.range(7, 9)); The right code snippet is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[1])) : (state.shifter.range(7, 1));
'SHFT'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[1])) : (state.shifter.range(7, 1));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[9])) : (state.shifter.range(7, 9)); The high-level-synthesis bug type of the code is: 'SHFT'
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[9])) : (state.shifter.range(7, 9)); The high-level-synthesis bug type of the code is: 'SHFT' The right code snippet is: shifterN = (sample) ? ((state.shifter.range(6, 0), hh[1])) : (state.shifter.range(7, 1));
'SHFT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: while (1) { // do something } The right code snippet is: while (true) { // do something }
'INF'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: while (true) { // do something }
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: while (1) { // do something } The high-level-synthesis bug type of the code is: 'INF'
'INF'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: while (1) { // do something } The high-level-synthesis bug type of the code is: 'INF' The right code snippet is: while (true) { // do something }
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: int bitcountN; if (startbit) { bitcountN = 0; } else if (!idle && !valid && ser_clk) { bitcountN = state.bitcount + 1; } else if (valid && rd) { bitcountN = 31; } else { bitcountN = state.bitcount; } The right code snippet i...
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: ap_uint<5> bitcountN; if (startbit) { bitcountN = 0; } else if (!idle && !valid && ser_clk) { bitcountN = state.bitcount + 1; } else if (valid && rd) { bitcountN = 31; } else { bitcountN = state.bitcount; }
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: int bitcountN; if (startbit) { bitcountN = 0; } else if (!idle && !valid && ser_clk) { bitcountN = state.bitcount + 1; } else if (valid && rd) { bitcountN = 31; } else { bitcountN = state.bitcount; } The high-level-synthesis...
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: int bitcountN; if (startbit) { bitcountN = 0; } else if (!idle && !valid && ser_clk) { bitcountN = state.bitcount + 1; } else if (valid && rd) { bitcountN = 31; } else { bitcountN = state.bitcount; } The high-level-synthesis...
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: ap_uint<8> data = state.shifter.range(7, 4); The right code snippet is: ap_uint<8> data = state.shifter;
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: ap_uint<8> data = state.shifter;
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: ap_uint<8> data = state.shifter.range(7, 4); 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: ap_uint<8> data = state.shifter.range(7, 4); The high-level-synthesis bug type of the code is: 'BUF' The right code snippet is: ap_uint<8> data = state.shifter;
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN cyclic dim=0 The right code snippet is: #pragma HLS array_partition variable=hhN 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 ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS array_partition variable=hhN 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 ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=hhN 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 ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN cyclic dim=0 The high-level-synthesis bug type of the code is: 'APT' The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'APT'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete factor=2 dim=0 The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete factor=2 dim=0 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete factor=2 dim=0 The high-level-synthesis bug type of the code is: 'FND' The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete dim=1 The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'DID'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete dim=1 The high-level-synthesis bug type of the code is: 'DID'
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS array_partition variable=hhN complete dim=1 The high-level-synthesis bug type of the code is: 'DID' The right code snippet is: #pragma HLS array_partition variable=hhN complete dim=0
'DID'
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS dataflow pipeline II=2 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=rd The right code snippet is: #pragma HLS interface ap_none port=rd
'IDAP'
Given the following buggy code, and the wrong part of the code, generate the right code snippet: The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS interface ap_none port=rd
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS interface ap_fifo port=rd The high-level-synthesis bug type of the code is: 'IDAP'
'IDAP'
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet The buggy code is: #pragma HLS INTERFACE ap_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS interface ap_fifo port=rd The high-level-synthesis bug type of the code is: 'IDAP' The right code snippet is: #pragma HLS interface ap_none port=rd
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface m_axi port=mem depth=1024 dis_burst The right code snippet is: #pragma HLS interface m_axi port=mem depth=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_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS interface m_axi port=mem depth=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_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS interface m_axi port=mem depth=1024 dis_burst 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS interface m_axi port=mem depth=1024 dis_burst The high-level-synthesis bug type of the code is: 'RAMB' The right code snippet is: #pragma HLS interface m_axi port=mem depth=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_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface bram port=uart_rx The right code snippet is: #pragma HLS interface ap_fifo port=uart_rx
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS interface ap_fifo port=uart_rx
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
The wrong part of the code is: #pragma HLS interface bram port=uart_rx 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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
The wrong part of the code is: #pragma HLS interface bram port=uart_rx The high-level-synthesis bug type of the code is: 'SMA' The right code snippet is: #pragma HLS interface ap_fifo port=uart_rx
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ...
The wrong part of the code is: #pragma HLS interface ap_none port=mem The right code snippet is: #pragma HLS interface bram port=mem
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS INTERFACE ap_no...
The right code snippet is: #pragma HLS interface bram port=mem
'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=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS INTERFACE ap_none port=rd #pragma HLS...
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_clk port=clk #pragma HLS INTERFACE ap_rst_n port=resetq #pragma HLS INTERFACE ap_none port=uart_rx #pragma HLS ...
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: #pragma HLS interface bram port=mem
'AMS'