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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
clk_divider_counter = clk_divider_counter << 1;
The right code snippet is:
clk_divider_counter++; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
clk_divider_counter++; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
clk_divider_counter = clk_divider_counter << 1;
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
clk_divider_counter = clk_divider_counter << 1;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
clk_divider_counter++; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
if (clk_divider_counter == clock_divider_value) {
clk_divider_counter = 0;
} else {
clk_divider_counter++;
}
The right code snippet is:
if (clk_divider_counter == clock_divider_value - 1) {
clk_divider_counter = 0;
} else {
clk_divider_counter++;
} | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
if (clk_divider_counter == clock_divider_value - 1) {
clk_divider_counter = 0;
} else {
clk_divider_counter++;
} | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
if (clk_divider_counter == clock_divider_value) {
clk_divider_counter = 0;
} else {
clk_divider_counter++;
}
The high-level-synthesis bug type of the code is: 'INF' | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
if (clk_divider_counter == clock_divider_value) {
clk_divider_counter = 0;
} else {
clk_divider_counter++;
}
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
if (clk_divider_counter == clock_divider_value - 1) {
clk_divide... | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
static unsigned int calibration_value = 0;
The right code snippet is:
static int calibration_value = 0; | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
static int calibration_value = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
static unsigned int calibration_value = 0;
The high-level-synthesis bug type of the code is: 'USE' | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
static unsigned int calibration_value = 0;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
static int calibration_value = 0; | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
static bool tsdcaldone_reg = 0;
The right code snippet is:
static bool tsdcaldone_reg = false; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
static bool tsdcaldone_reg = false; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
static bool tsdcaldone_reg = 0;
The high-level-synthesis bug type of the code is: 'ZERO' | 'ZERO' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
static bool tsdcaldone_reg = 0;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
static bool tsdcaldone_reg = false; | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 factor=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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=tsdcalo 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 factor=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo 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=tsdcalo cyclic dim=1 factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=2 factor=4
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=2 factor=4
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=2 factor=4
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=tsdcalo cyclic dim=1 factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP' | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS DATAFLOW loop_flatten
The high-level-synthesis bug type of the code is: 'DFP'
The right code snippet is:
#pragma HLS DATAFLOW | 'DFP' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS depth=16
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS depth=16
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS | '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 s_axilite port=offset bundle=CTRL_BUS depth=16
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#prag... |
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS | '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 s_axilite port=offset bundle=CTRL_BUS depth=16
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundl... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS depth=16
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 s_axilite port=offset bundle=CTRL_BUS depth=16
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS depth=16
The high-level-synthesis bug type of the code is: 'IDAP'
The right code snippet is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem randomize_on_start
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem randomize_on_start
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS INTERFACE m_axi port=mem randomize_on_start
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=mem
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=mem | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=mem | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=mem
The high-level-synthesis bug type of the code is: 'SMA' | 'SMA' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
#pragma HLS INTERFACE s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS INTERFACE bram port=mem
The high-level-synthesis bug type of the code is: 'SMA'
The right code snippet is:
#pragma HLS INTERFACE ap_memory port=mem | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=scalar
The right code snippet is:
#pragma HLS INTERFACE ap_none port=scalar | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS INTERFACE ap_none port=scalar | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=scalar
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS INTERFACE s_axilite port=scalar
The high-level-synthesis bug type of the code is: 'AMS'
The right code snippet is:
#pragma HLS INTERFACE ap_none port=scalar | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma H... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
The right code snippet is:
#pragma HLS UNROLL factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BUS
#pragma HLS IN... |
The right code snippet is:
#pragma HLS UNROLL factor=4 | '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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=clk bundle=CTRL_BU... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
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 s_axilite port=offset bundle=CTRL_BUS
#pragma HLS INTERFACE s_axilite port=testin bundle=CTRL_BUS
#pragma HLS INTERF... |
The wrong part of the code is:
#pragma HLS UNROLL factor=3
The high-level-synthesis bug type of the code is: 'ILNU'
The right code snippet is:
#pragma HLS UNROLL factor=4 | 'ILNU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
edge_out = (in ^ prev_in) & in & 1;
The right code snippet is:
edge_out = (in ^ prev_in) & in; | 'OOB' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
edge_out = (in ^ prev_in) & in; | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
edge_out = (in ^ prev_in) & in & 1;
The high-level-synthesis bug type of the code is: 'OOB' | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
edge_out = (in ^ prev_in) & in & 1;
The high-level-synthesis bug type of the code is: 'OOB'
The right code snippet is:
edge_out = (in ^ prev_in) & in; | 'OOB' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<8> in = 0;
ap_uint<8> edge_out = 0;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a = false;
bool ready_b = false;
bool ready_a = true;
bool valid_b = false;
bool select = false;
The right code snippet is:
ap_uint<8> in;
ap_uint<8> edge_out;
ap_uint<3... | 'INIT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
ap_uint<8> in;
ap_uint<8> edge_out;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a;
bool ready_b;
bool ready_a;
bool valid_b = 0;
bool select; | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
ap_uint<8> in = 0;
ap_uint<8> edge_out = 0;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a = false;
bool ready_b = false;
bool ready_a = true;
bool valid_b = false;
bool select = false;
The high-level-synthesis bug type of the code is: 'INIT' | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the high-level-synthesis bug type, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
ap_uint<8> in = 0;
ap_uint<8> edge_out = 0;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a = false;
bool ready_b = false;
bool ready_a = true;
bool valid_b = false;
bool select = false;
The high-level-synthesis bug type of the code is: 'INIT'
The right code ... | 'INIT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
out = out << in;
The right code snippet is:
out = out + in; | 'SHFT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
out = out + in; | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
out = out << in;
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
out = out << in;
The high-level-synthesis bug type of the code is: 'SHFT'
The right code snippet is:
out = out + in; | 'SHFT' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
while(false) {
The right code snippet is:
while(true) { | 'INF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
while(true) { | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
while(false) {
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
while(false) {
The high-level-synthesis bug type of the code is: 'INF'
The right code snippet is:
while(true) { | 'INF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
int8_t in;
int8_t edge_out;
int3_t edge_count = 0;
int10_t out = 0;
bool valid_a;
bool ready_b;
bool ready_a;
bool valid_b = 0;
bool select;
The right code snippet is:
ap_uint<8> in;
ap_uint<8> edge_out;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a;
bool r... | 'USE' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
ap_uint<8> in;
ap_uint<8> edge_out;
ap_uint<3> edge_count = 0;
ap_uint<10> out = 0;
bool valid_a;
bool ready_b;
bool ready_a;
bool valid_b = 0;
bool select; | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
int8_t in;
int8_t edge_out;
int3_t edge_count = 0;
int10_t out = 0;
bool valid_a;
bool ready_b;
bool ready_a;
bool valid_b = 0;
bool select;
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
int8_t in;
int8_t edge_out;
int3_t edge_count = 0;
int10_t out = 0;
bool valid_a;
bool ready_b;
bool ready_a;
bool valid_b = 0;
bool select;
The high-level-synthesis bug type of the code is: 'USE'
The right code snippet is:
ap_uint<8> in;
ap_uint<8> edge_out;
ap_uint<... | 'USE' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
edge_detector: for(int i=0; i<10; i++) {
The right code snippet is:
edge_detector: while(true) { | 'MLU' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
edge_detector: while(true) { | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
edge_detector: for(int i=0; i<10; i++) {
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
edge_detector: for(int i=0; i<10; i++) {
The high-level-synthesis bug type of the code is: 'MLU'
The right code snippet is:
edge_detector: while(true) { | 'MLU' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
ap_uint<10> out;
The right code snippet is:
ap_uint<10> out = 0; | 'ZERO' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
ap_uint<10> out = 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
ap_uint<10> out;
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
ap_uint<10> out;
The high-level-synthesis bug type of the code is: 'ZERO'
The right code snippet is:
ap_uint<10> out = 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
intSdCh valIn = outStream.read();
The right code snippet is:
intSdCh valIn = inStream.read(); | 'BUF' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
intSdCh valIn = inStream.read(); | '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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
intSdCh valIn = outStream.read();
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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
intSdCh valIn = outStream.read();
The high-level-synthesis bug type of the code is: 'BUF'
The right code snippet is:
intSdCh valIn = inStream.read(); | 'BUF' |
Given the following buggy code, tell which part of the code is wrong, and tell the right code snippet
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a block factor=2 dim=1
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 dim=1 | 'APT' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a block factor=2 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a block factor=2 dim=1
The high-level-synthesis bug type of the code is: 'APT'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in cyclic dim=1 factor=3
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=in 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=in 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFAC... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=3 dim=2
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 dim=1 | 'DID' |
Given the following buggy code, and the wrong part of the code, generate the right code snippet:
The buggy code is:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma HLS INTERFACE axi... |
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<intSdCh> &outStream
) {
#pragma H... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=3 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:
```
#include <ap_axi_sdata.h>
typedef ap_axis<32,2,5,6> intSdCh;
void top_module(
hls::stream<intSdCh> &inStream,
hls::stream<... |
The wrong part of the code is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=3 dim=2
The high-level-synthesis bug type of the code is: 'DID'
The right code snippet is:
#pragma HLS ARRAY_PARTITION variable=valid_a cyclic factor=2 dim=1 | 'DID' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.