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(
156156 typename data_T::value_type kernel_window[CONFIG_T::filt_width * CONFIG_T::n_chan]
157157) {
158158 #pragma HLS inline
159- #pragma HLS PIPELINE II = 1
160159
161160 // Shift kernel_window by one step to the left (manual shift operation)
162161 static const int filt_width = CONFIG_T::filt_width - 1 ;
163162 KernelShiftWidth: for (int i_iw = 0 ; i_iw < filt_width; i_iw++) {
164- #pragma HLS UNROLL
163+ #pragma HLS PIPELINE II = 1
165164 KernelShiftChannel: for (unsigned i_ic = 0 ; i_ic < CONFIG_T::n_chan; i_ic++) {
165+ #pragma HLS UNROLL
166166 // Shift every element in kernel_window to the left
167167 kernel_window[i_iw * CONFIG_T::n_chan + i_ic] = kernel_window[(i_iw + 1 ) * CONFIG_T::n_chan + i_ic];
168168 }
You can’t perform that action at this time.
0 commit comments