Skip to content

Commit 563c84c

Browse files
Jonathan-Shoemakervloncar
authored andcommitted
fix conv1d stream hls directives
1 parent 50cf296 commit 563c84c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hls4ml/templates/vivado/nnet_utils/nnet_conv_stream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)