6.1.1 Moving Window

The input data is sampled at every rising edge of dec_clk_i. This submodule takes the input samples and creates windows of fixed length (5 or 7 or 9 samples each). The window size depends on the configuration parameter g_WINDOW_SIZE. If we consider g_WINDOW_SIZE as 7, then {1st, 2nd, 3rd, 4th, 5th, 6th, 7th} samples will form a window, {2nd, 3rd, 4th, 5th, 6th, 7th, 8th} samples will form the next window and so on. These windows are connected as the input to median submodule.

After the reset signal is de-asserted, the window will have all zeros. The input data_i is sampled at rising edge of dec_clk_i.