Vivek_2017
Newbie level 4
Hi,
I am designing a discrete time integrator with transfer function = 1/(1-Z^-1) using model writer of the cadence virtuoso, below is the verilogA code of the integrator. But I am getting a gain of more than 1000 in the output, when applying an input signal of 900 uV (p-p).
I added the screenshot of the schematic as well as the transient output response of the integrator.
I am designing a discrete time integrator with transfer function = 1/(1-Z^-1) using model writer of the cadence virtuoso, below is the verilogA code of the integrator. But I am getting a gain of more than 1000 in the output, when applying an input signal of 900 uV (p-p).
I added the screenshot of the schematic as well as the transient output response of the integrator.
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 // FUNCTION: Z-domain Filter // VERSION: $Revision: 2.8 $ // AUTHOR: Cadence Design Systems, Inc. // // GENERATED BY: Cadence Modelwriter 2.31 // ON: Thu Feb 02 08:59:10 IST 2017 // // Description: N degree Transfer functions of H(z) // May be specified as a Polynomial or as Poles and Zeros. // // Complex Poles and Zeros must have conjugates. // // // This model is an example, provided "as is" without express or // implied warranty and with no claim as to its suitability for // any purpose. // // PARAMETERS: // first = Delay before taking first sample [S] // samp = Sampling period [S] // trans = Transtion time [S] // `include "discipline.h" `include "constants.h" // model ztrans // Z-domain in Numerator-Denominator form // Filter order is: 1 / 2 module ztrans (vin, vout); input vin; output vout; electrical vin, vout; parameter real samp = 3.90u from (0:inf); // nxN is numerator of degree N. // dxN is denominator of degree N. parameter real nx0 = 1.0; parameter real dx0 = 1.0; parameter real dx1 = -1; analog begin V(vout) <+ zi_nd( V(vin), { nx0 }, { dx0, dx1 }, samp); end endmodule
Last edited by a moderator: