Chargement…
Chargement…
Moving-average filter over the last 4 samples. A new average is produced on each rising clock edge.
Behaviour:
i_reset='1'): all internal registers and o_data are cleared.i_clk: i_data is pushed into the delay line, the oldest sample is dropped.o_data ← (sum of the 4 stored samples) / 4.*Division by 4 = right shift by 2 bits. Asynchronous active-high reset.*
| Signal | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_data | Input | 8 bits | Input sample |
o_data | Output | 8 bits | Moving average |