Voldemort
Junior Member
Offline
Posts: 12
|
Hi What is the procedure for obtaining the frequency response of a second order system designed using verilog a. The verilog model I am using is as follows
`include "discipline.h" `include "constants.h"
// model strans
// S-domain in Numerator-Denominator form // Filter order is: 1 / 3
module strans (vin, vout) ; input vin; output vout; electrical vin, vout;
// nxN is numerator of degree N. // dxN is denominator of degree N. parameter real nx0 = 1.0; parameter real dx0 = 202.2; parameter real dx1 = 1.202e5; parameter real dx2 = 1.67e-10;
analog begin V(vout) <+ laplace_nd( V(vin), [ nx0 ], [ dx0, dx1, dx2 ]); end
endmodule
I created a symbol for this model and I connected a vsin source at the vin node and a 1k resistor at the vout node to ground. I ran an ac simulation in spectre. The ac magnitude I obtain is just some really low constant value (-6.7k). The system is a second order system with a resonant frequency around 180kHz.
Can someone explain the correct way to do this ?
Thank You
|