High-pass filter model

This article contains Verilog-A model for a high-pass filter.

Usage:

  1. Create a new cell in Library Manager named HPF and select cell type Verilog A;
  2. Copy and paste the code provided;
  3. Specify Cutoff_frequency variable to be -3dB frequency;
  4. Perform Check and Save;
  5. A cell symbol will be created;
  6. Instantiate HPF cell into your design;
  7. Perform Check and Save and run the simulation.


HPF model testbench

HPF model testbench


LPF model simulation result

HPF model simulation result


Cell name: HPF

Model type: Verilog-A

1 2// Low Pass filter model based on -3dB frequency definition 3// Author: A. Sidun 4// Source: AnalogHub.ie 5 6`include "constants.vams" 7`include "disciplines.vams" 8 9module HPF(in, out); 10electrical in, out; 11parameter real Cutoff_frequency = 10k; // -3dB frequency 12parameter real Filter_Order = 1; // 1 for 20dB/dec, 2 for 40dB/dec 13 14analog begin 15 V(out) <+ laplace_nd(V(in),{0, 1},{2*`M_PI*Cutoff_frequency, 1}); 16 end 17endcase 18end 19endmodule