Chargement…
Chargement…
Moving average filter computing the mean of the last 4 samples. On each rising edge when enable is active, a new sample enters and the oldest is discarded. The output is the arithmetic average of the 4 current samples.
Reset is asynchronous and active-high.
| 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 |