The filter you builtDesigning…
Filter order——
Passband ripple—Rounded coefficients · peak to peak
Stopband attenuation—Rounded coefficients · worst case
Digital memory—Sample registers

Frequency response

Magnitude dB

Rounded coefficientsFull precisionPassbandStopband
Magnitude response with passband and stopband targets. Use arrow keys to change the probe.
Gain —Phase —Local slope —

Drag P / S to change the band edges; click to probe. These curves show the linear coefficient response. Use Passband zoom to inspect ripple.

Phase degrees

Secondary filter response.

Checking the design targets…

Run a digital signal

2,048 samples
0.70 FS
Quantized input x[n]Digital output y[n]

Time domain full scale

n = 0
Ctrl + wheel to zoom · drag the scrollbar to pan
Quantized input and filtered output share a time axis.

Measured spectrum dBFS / bin

Hann window · 2,048-point FFT
The FFT compares input and output spectral levels.
Input RMS —Output RMS —Arithmetic SNR —Saturation events —

The measured spectrum describes this finite signal record. The transfer response above describes the linear filter.

Pole–zero map

Rounded coefficientsFull precision
Poles and zeros in the complex z plane.

Impulse response

Rounded coefficientsFull precision
Unit impulse through the full-precision and rounded coefficient models.

Coefficients become hardware

Cascade of biquads

Direct form II transposed

Coefficient memory
RegisterFull precisionStored valueSigned integerError

Learning guide

Choose the tradeoff

A Kaiser FIR filter has symmetric coefficients and linear phase. A moving average uses equal coefficients and is a simple FIR baseline. IIR filters use feedback to obtain a sharp transition with fewer coefficients.

Butterworth filters have a smooth passband. Chebyshev I allows passband ripple, while Chebyshev II places ripple in the stopband. Elliptic filters allow ripple in both bands to sharpen the transition for a given order. Auto order searches for a full-precision design that meets the requested bands within the supported order limits.

The bands define the target

The passband edge marks the end of the useful band. The stopband edge marks where the attenuation target applies. Their separation is the transition width. A narrower transition or stronger attenuation usually needs a higher order.

Band-pass keeps frequencies between P₁ and P₂, with stopbands below S₁ and above S₂. Band-stop rejects frequencies between S₁ and S₂, with passbands below P₁ and above P₂. Each transition has its own pair of edges. The performance readouts check every specified band.

For band-pass and band-stop IIR filters, the order is the total digital order. The band transformation doubles the low-pass prototype order, so the implemented order is even. The tone demo uses three tones to test the lower, middle, and upper regions.

In a fixed-order IIR design, the passband edges set the response and the stopband edges set the attenuation targets. Auto can increase order to meet tighter targets. Band-stop Auto keeps both requested passband edges fixed.

The frequency axis ends at half the sample rate, the Nyquist frequency. Digital rolloff changes near Nyquist. The local slope at the probe shows the measured dB per octave at that frequency.

Compare phase and group delay

Enable family comparison to overlay magnitude responses for one specification. Use the secondary plot dropdown to select phase or group delay. Separate panels below show pole–zero maps and impulse or step responses. Select Step response beside the legends to see each filter respond to a unit step from zero state. Focus passbands to compare the frequencies that the filters preserve. On a linear frequency axis, a straight unwrapped phase line means constant group delay.

The symmetric FIR designs delay their passband components by N/2 samples. IIR delay generally changes with frequency, which changes the relative timing of those components. Phase wraps and jumps at response zeros are separated in the plots. Use the group-delay view to distinguish a constant delay from frequency-dependent delay.

Watch roots move as bits change

The Pole–zero map panel shows full-precision and quantized coefficient sets together in comparison mode. Crosses mark poles, and circles mark zeros. The unit circle is the stability boundary: every pole of a stable causal feedback model stays strictly inside it. Reducing coefficient bits can move a pole onto this circle. Poles on or outside it fail the strict stability condition.

Use the local Coefficient bits slider to change the same stored coefficients as the main controls. Isolate a family or inspect an individual root to resolve overlapping markers. The table gives the largest pole radius and its margin to the unit circle. Zeros can lie outside the circle while a filter remains stable; FIR filters have finite memory and no feedback instability.

One set of panels, two views

Compare filter families transforms the frequency, impulse, pole–zero, and signal panels into shared overlays. The hardware panel compares resource requirements and keeps the inspected filter’s coefficients and architecture below the table. Switch comparison off to return to the saved single-filter views.

Compare the filtered waveforms

The time-domain comparison sends the same sampled signal through each selected family. Start with passband tones to compare the timing of preserved components, or choose an impulse, step, or pulse to inspect transients. The actual-delay view keeps the real input and output sample positions. In either waveform view, hold Ctrl and turn the mouse wheel over the plot to zoom horizontally. Drag the scrollbar to browse the record. Keyboard users can press + or − to zoom, arrow keys to scroll, and Home to show the full record.

Alignment shifts the displayed outputs by an estimated waveform lag. It helps compare shapes, while the phase and group-delay plots explain frequency-dependent timing. Periodic signals can match at several shifts, including negative shifts; this waveform match is separate from causal filter latency. Amplitude shaping and finite-word arithmetic also affect the output shape.

Compare the frequency content

The measured spectrum overlays the same quantized input and every available output. Each FFT uses the full unaligned record with the same Hann window and amplitude scale. Moving or aligning the time window preserves these spectra. Noise reveals broad attenuation, while tones show preserved and rejected frequency components.

Levels are peak amplitude in dBFS per bin. Finite records have leakage and limited frequency resolution; these curves describe the actual signal, including state rounding and saturation. A spectrum is omitted when its output record contains invalid samples.

Each coefficient is a number in memory

A multiplier scales a sample by a coefficient. An adder combines terms. A z⁻¹ block stores a value for one sample period. A FIR uses a finite history of inputs; an IIR also feeds stored results back into the calculation.

The diagram and table use the same coefficients as the signal calculation. Select a FIR coefficient or IIR section to inspect its hardware. The exported JSON includes both full-precision and stored coefficients.

Export the digital filter

Export Verilog saves the whole inspected filter as a synthesizable Verilog-2001 module. It includes the selected architecture, every stored coefficient, and both word lengths. In comparison mode, use Inspect on the desired family before exporting.

The hardware rounds and saturates every stored state and section output. Enable Round states and output to compare its arithmetic with the simulator. In comparison mode, also select Rounded coefficients. The generated file documents the signed sample format, synchronous reset, sample-valid interface, and registered output.

All sections calculate within one clock interval, so a large filter has a long combinational path. Verify timing for the target device. The sample-rate setting describes the accepted sample stream; the surrounding system supplies its clock and sample-enable timing.

Model electrical logic in Verilog-A

Export Verilog-A opens the logic-level and timing settings for the whole inspected filter. Set the output voltage levels, input and clock thresholds, active clock edge, propagation delay, rise/fall times, and input/output resistance. Voltages use the vss reference pin. Input resistance connects each input pin to vss.

The model samples electrical input bits on the selected clock edge, applies the stored coefficients and fixed-point state updates, and drives electrical output bits. Reset is synchronous and active high. Output timing applies to the pins; internal arithmetic executes as a clocked behavioral model.

Use an analog simulator with clock-crossing events and transition support. The downloaded parameters can also be overridden in that simulator. The selected architecture and word lengths are fixed in the exported model.

Verify the sampled signal in Verilog

Export testbench in Run a digital signal saves one file containing the matching filter RTL and a self-checking testbench. Choose the number of samples, testbench clock period, and reset cycles in its dialog. It includes the selected leading quantized input and expected output samples, plus the complete startup sequence used by the current record. The startup sequence restores the same state before the displayed samples are checked.

Use hardware arithmetic selects rounded coefficients and rounded, saturated states for a direct comparison. In comparison mode, choose Testbench filter to select a family. The export preserves actual sample order when the plot is zoomed or visually aligned. Its default includes all 2,048 displayed samples.

The file header gives compile and run commands. The testbench reports PASS after every expected sample agrees, or FAIL with the sample index and values. It also checks reset, valid signaling, and idle clocks. Expected samples come from the simulator; they are independent of the generated HDL.

Choose the digital realization

Each IIR section can use direct form I, direct form II, or transposed direct form II. Direct form I keeps separate input and output histories. Direct form II shares one delay line for an internal signal w. Transposed direct form II stores the intermediate sums.

All three forms use the same section coefficients and have the same linear transfer response. Direct form I uses twice as many delay registers. The internal signal ranges differ, so finite-bit rounding and saturation can change the output when you switch forms.

Bits change the behavior

Coefficient rounding changes the poles, zeros, and response. Low coefficient precision can move an IIR pole onto the unit circle and remove strict stability. The stability indicator checks the rounded coefficients.

Signals use a signed fixed-point range from −1 to just below +1. The model rounds input samples and coefficients. When enabled, it also rounds and saturates filter states and output. Products and sums use a wide accumulator before each register write.

Arithmetic SNR compares the digital output with a full-precision-coefficient reference driven by the same quantized input. The finite-record FFT can show leakage and a noise floor. Saturation makes the signal path nonlinear, so its measured spectrum can differ from the linear response.

Export testbench

Choose the samples and clock timing for the matching RTL and self-checking testbench.

Samples and simulation timing
Retained startup samples

The sample count starts at record sample zero. The complete startup sequence preserves the filter state. Zoom and visual alignment keep the exported sample timing unchanged.

Export Verilog-A

Set the electrical logic levels and output timing for this filter. The export includes its stored coefficients and fixed-point state updates.

Logic levels and clock

Input logic threshold applies to data, reset, and valid. Each data, clock, reset, and valid input has the selected resistance to vss. All voltages use this reference pin. Reset is synchronous and active high.

Output timing and drive

Delay may be zero; rise time, fall time, and resistance must be positive. These settings shape every output bit and out_valid.

Downloads a behavioral .va model with electrical bit buses. Use an analog simulator that supports clock-crossing events and transition waveforms.