Attention

This documentation is a work in progress. Expect to see errors and unfinished things.

fwashout

Description


Name: Washout (DC-reject) filter
track input allows freezing DC offset.
let N = 2^cut
The filter has a z-plane zero at DC [1 + 0j] and 2 poles [0 + 0j], [(N-1)/N + 0j]
Evaluating gain at f_s*7/33 using python3:
from numpy import exp, pi; cut=4; N=2**cut; p=(N-1)/N
z=exp(2j*pi*7/33); gain=(z-1)/z/(z-p); print(abs(gain))
1.031390721958454

Pinout

Schematic symbol

Parameters

Table 65 fwashout_param_table

Name

Min

Max

Default

Description

a_dw

?

?

16

o_dw

?

?

16

cut

?

?

4

Ports

Table 66 fwashout_port_table

Signal

Direction

Description

clk

Input

timespec 8.0 ns

rst

Input

active high, resets internal DC offset to zero

track

Input

high for normal operation

a_data[a_dw-1:0]

Input

Raw ADC samples

a_gate

Input

o_data[o_dw-1:0]

Output

Output data

o_gate

Output

time_err

Output

Implementation and use

The portable Verilog implementation can be found in fwashout Source File

Timing Diagram

A GTKWave-generated timing diagram is shown below:

Timing diagram