filtering¶
Dependencies¶
Components¶
fir_filter¶
-
filtering.
fir_filter
¶ Finite Impulse Response filter.
Generics: - RESET_ACTIVE_LEVEL (std_ulogic) – Asynch. reset control level
Port: - Clock (in std_ulogic) – System clock
- Reset (in std_ulogic) – Asynchronous reset
- Coefficients (in signed_array) – Filter tap coefficients
- Data_valid (in std_ulogic) – Indicate when
Data
is valid - Data (in signed) – Data input to the filter
- Busy (out std_ulogic) – Indicate when filter is ready to accept new data
- Result_valid (out std_ulogic) – Indicates when a new filter result is valid
- Result (out signed) – Filtered output
- In_use (in std_ulogic) – Request to keep
Result
unchanged
lowpass_filter¶
-
filtering.
lowpass_filter
¶ First order lowpass filter. This filter operates in two modes. When REGISTERED_MULTIPLY is false the filter processes a new data sample on every clock cycle.
Generics: - RESET_ACTIVE_LEVEL (std_ulogic) – Asynch. reset control level
- ALPHA (real) – Alpha parameter computed with lowpass_alpha()
- REGISTERED_MULTIPLY (boolean) – Control registration of internal mutiplier
Port: - Clock (in std_ulogic) – System clock
- Reset (in std_ulogic) – Asynchronous reset
- Data (in signed) – Data input to the filter
- Result (out signed) – Filtered output
attenuate¶
-
filtering.
attenuate
¶ Scale samples by an attenuation factor.
Generics: - RESET_ACTIVE_LEVEL (std_ulogic) – Asynch. reset control level
Port: - Clock (in std_ulogic) – System clock
- Reset (in std_ulogic) – Asynchronous reset
- Gain (in signed) – Attenuation factor
- Data_valid (in std_ulogic) – Indicate when
Data
is valid - Data (in signed) – Data input to the filter
- Result_valid (out std_ulogic) – Indicates when a new filter result is valid
- Result (out signed) – Filtered output
sampler¶
-
filtering.
sampler
¶ Convert binary data into numeric samples.
Generics: - RESET_ACTIVE_LEVEL (std_ulogic) – Asynch. reset control level
Port: - Clock (in std_ulogic) – System clock
- Reset (in std_ulogic) – Asynchronous reset
- Data_valid (in std_ulogic) – Indicate when
Data
is valid - Data (in std_ulogic) – Data input to the filter
- Result_valid (out std_ulogic) – Indicates when a new filter result is valid
- Result (out signed) – Filtered output
sample_and_hold¶
-
filtering.
sample_and_hold
¶ Capture and hold data samples.
Generics: - RESET_ACTIVE_LEVEL (std_ulogic) – Asynch. reset control level
Port: - Clock (in std_ulogic) – System clock
- Reset (in std_ulogic) – Asynchronous reset
- Data_valid (in std_ulogic) – Indicate when
Data
is valid - Data (in signed) – Data input to the filter
- Busy (out std_ulogic) – Indicate when filter is ready to accept new data
- Result_valid (out std_ulogic) – Indicates when a new filter result is valid
- Result (out signed) – Filtered output
- In_use (in std_ulogic) – Request to keep
Result
unchanged
Subprograms¶
-
filtering.
attenuation_gain
(Factor : attenuation_factor; Size : positive) → signed¶ - Convert attenuation factor into a signed factor
Parameters: - Factor (attenuation_factor) – Factor for gain value
- Size (positive) – Number of bits in the result
Returns: Signed value representing the Factor scaled to the range of Size.
-
filtering.
lowpass_alpha
(Tau : real; Sample_period : real) → real¶ - Compute the alpha value for a lowpass filter
Parameters: - Tau (real) – Time constant
- Sample_period (real) – Sample period of the filtered data
Returns: Alpha constant passed to the lowpass_filter component.