File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hls4ml/templates/vivado/nnet_utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,13 +156,13 @@ void kernel_shift_1d(
156
156
typename data_T::value_type kernel_window[CONFIG_T::filt_width * CONFIG_T::n_chan]
157
157
) {
158
158
#pragma HLS inline
159
- #pragma HLS PIPELINE II = 1
160
159
161
160
// Shift kernel_window by one step to the left (manual shift operation)
162
161
static const int filt_width = CONFIG_T::filt_width - 1 ;
163
162
KernelShiftWidth: for (int i_iw = 0 ; i_iw < filt_width; i_iw++) {
164
- #pragma HLS UNROLL
163
+ #pragma HLS PIPELINE II = 1
165
164
KernelShiftChannel: for (unsigned i_ic = 0 ; i_ic < CONFIG_T::n_chan; i_ic++) {
165
+ #pragma HLS UNROLL
166
166
// Shift every element in kernel_window to the left
167
167
kernel_window[i_iw * CONFIG_T::n_chan + i_ic] = kernel_window[(i_iw + 1 ) * CONFIG_T::n_chan + i_ic];
168
168
}
You can’t perform that action at this time.
0 commit comments