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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=3 // Factor not divisible for the pragma '#pragma HLS array_partition'
The right code snippet is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=3 // Factor not divisible for the pragma '#pragma HLS array_partition'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=3 // Factor not divisible for the pragma '#pragma HLS array_partition'
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=buffer1 cyclic fa... | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition'
The right code snippet is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=buffer1 cyclic factor=4 dim=2 // Dim incorrect dimension for the pragma '#pragma HLS array_partition'
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=buffer1 ... | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS dataflow wait // Dataflow position error for the pragma '#pragma HLS dataflow'
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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS dataflow wait // Dataflow position error for the pragma '#pragma HLS dataflow'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS dataflow wait // Dataflow position error for the pragma '#pragma HLS dataflow'
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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buffer1 // Incorrect data access pattern for the pragma '#pragma HLS interface'
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buffer1 // Incorrect data access pattern for the pragma '#pragma HLS interface'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=buffer1 // Incorrect data access pattern for the pragma '#pragma HLS interface'
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer1 offset=4 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
The right code snippet is:
#pragma HLS interface m_axi port=buffer1 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS interface m_axi port=buffer1 | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer1 offset=4 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=buffer1 offset=4 // m_axi interface is accessed randomly in the code, resulting in non-burst AXI read/write for the pragma '#pragma HLS interface'
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pr... | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface axis port=buffer1 // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
The right code snippet is:
#pragma HLS interface bram port=buffer1 | 'SMA' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS interface bram port=buffer1 | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS interface axis port=buffer1 // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
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=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface axis port=buffer1 // Scalar values mapped to array interfaces like bram/ap_memory/m_axi/ap_fifo/axis for the pragma '#pragma HLS interface'
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface ... | '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=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_array port=buffer1
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | 'AMS' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=counter_out
#pragma HLS INTERFACE ap_none port=register_out
#pragma HLS INTE... |
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=counter_out
#pragma HLS INTERFACE ap_none port=register_out
... |
The wrong part of the code is:
#pragma HLS interface ap_array port=buffer1
The high-level-synthesis bug type of the code is: 'AMS' | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE ap_none port=counter_out
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_array port=buffer1
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface ap_none port=buffer1 | 'AMS' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
tmp = in.range((i*32)+32, i*32);
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
tmp = in.range((i*32)+32, i*32);
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
tmp = in.range((i*32)+32, i*32);
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
static ap_uint<8> reg;
The right code snippet is:
static ap_uint<8> reg = 0; | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
static ap_uint<8> reg = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
static ap_uint<8> reg;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
static ap_uint<8> reg;
The high-level-synthesis bug type of the code is: 'INIT'
The right code snippet is:
static ap_uint<8> reg = 0; | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
in_signal[8]
The right code snippet is:
in_signal[7] | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
in_signal[7] | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
in_signal[8]
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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
in_signal[8]
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
in_signal[7] | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (i = 0; i <= 8; i = i + 1) {
The right code snippet is:
for (i = 0; i < 8; i = i + 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
for (i = 0; i < 8; i = i + 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
for (i = 0; i <= 8; i = i + 1) {
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
for (i = 0; i <= 8; i = i + 1) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
for (i = 0; i < 8; i = i + 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_int<8> pop_count_out;
The right code snippet is:
ap_uint<8> pop_count_out; | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
ap_uint<8> pop_count_out; | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
ap_int<8> pop_count_out;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
ap_int<8> pop_count_out;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<8> pop_count_out; | '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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
for (i = 0; i < 4; i = i + 1) {
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
for (i = 0; i < 4; i = i + 1) {
The high-level-synthesis bug type of the code is: 'MLU' | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
for (i = 0; i < 4; i = i + 1) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
ap_uint<8> reg = 1;
The right code snippet is:
ap_uint<8> reg = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
ap_uint<8> reg = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
ap_uint<8> reg = 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_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
ap_uint<8> reg = 1;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<8> reg = 0; | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
tmp = in.range((i*32)+15, i*32);
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
tmp = in.range((i*32)+15, i*32);
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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
tmp = in.range((i*32)+15, i*32);
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
tmp = in.range((i*32)+31, i*32); | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector block factor=8 dim=1
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector block factor=8 dim=1
The high-level-synthesis bug type of the code is: 'APT' | 'APT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector block factor=8 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=9 dim=1
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=9 dim=1
The high-level-synthesis bug type of the code is: 'FND' | 'FND' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=9 dim=1
The high-level-synthesis bug type of the code is: 'FND'
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 dim=2
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 dim=2
The high-level-synthesis bug type of the code is: 'DID' | 'DID' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS array_partition variable=in_vector cyclic factor=8 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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#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 port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS dataflow pipeline
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS dataflow | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=output_sum
The right code snippet is:
#pragma HLS interface ap_none port=output_sum | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS interface ap_none port=output_sum | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=output_sum
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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_ctrl_none port=output_sum
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS interface ap_none port=output_sum | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in_signal
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in_signal
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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface m_axi port=in_signal
The high-level-synthesis bug type of the code is: 'RAMB'
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS interface bram port=in_signal
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface bram port=in_signal
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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface bram port=in_signal
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in_signal
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in_signal
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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS interface ap_vld port=in_signal
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS interface axis port=in_signal | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP' | '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 axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS pipeline II=2
The high-level-synthesis bug type of the code is: 'MLP'
The right code snippet is:
#pragma HLS pipeline II=1 | 'MLP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ... |
The wrong part of the code is:
#pragma HLS unroll
for (i = 0; i < 8; i = i + 1) {
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS INTERFACE ap_no... |
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | '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 axis port=in_signal
#pragma HLS INTERFACE axis port=in_vector
#pragma HLS... |
The wrong part of the code is:
#pragma HLS unroll
for (i = 0; i < 8; i = i + 1) {
The high-level-synthesis bug type of the code is: 'ILNU' | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE ap_clk port=clk
#pragma HLS INTERFACE ap_rst port=reset
#pragma HLS INTERFACE axis port=in_signal
#pragma HLS INTE... |
The wrong part of the code is:
#pragma HLS unroll
for (i = 0; i < 8; i = i + 1) {
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
for (i = 0; i < 8; i = i + 1) { | 'ILNU' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.