High-pass filter model
This article contains Verilog-A model for a high-pass filter.
Usage:
- Create a new cell in Library Manager named HPF and select cell type Verilog A;
- Copy and paste the code provided;
- Specify Cutoff_frequency variable to be -3dB frequency;
- Perform Check and Save;
- A cell symbol will be created;
- Instantiate HPF cell into your design;
- Perform Check and Save and run the simulation.
HPF model testbench
HPF model simulation result
Cell name: HPF
Model type: Verilog-A
1// High Pass filter model based on -3dB frequency definition
2// Author: A. Sidun
3// Source: AnalogHub.ie
4
5`include "constants.vams"
6`include "disciplines.vams"
7
8module HPF(in, out);
9electrical in, out;
10parameter real Cutoff_frequency = 10k; // -3dB frequency
11
12analog begin
13 V(out) <+ laplace_nd(V(in),{0, 1},{2*`M_PI*Cutoff_frequency, 1});
14 end
15endcase
16end
17endmodule