Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to write a hspice code to get in db range?

Status
Not open for further replies.

mya

Newbie level 3
Newbie level 3
Joined
Sep 4, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
hspice coding

I want to plot a second order integrator in db @yais and frequency in axis. The software that i am using is hspice. pls. tell me what i should write to get in db range.
 

hspice coding

vdb(node)

or use your plot software to do the transition.
 

Re: hspice coding

thanks for ur reply. i cannot get the response graph in db. It 's in mag. only.

The one that i want is in mag. response graph and phase graph.


.ac dec 10 .001 10k
vin in 0 ac 1
.plot ac vdb(op1)

is it right?

Added after 3 hours 2 minutes:

Is BW of the integrater related to THD?
Is phase margin of the integrator related to THD?

when i run the hspice, the phase plot is ascending from 180 degree. the one i am using is 2nd order integrator.
 

hspice coding

vp(node) will give you the phase plot.
 

hspice coding

If you want a continuous phase plot at 180 degree, you should add a option unwrap:
.option unwrap=1
.probe ac vdb(op1) vp(op1)
 

Re: hspice coding

i can get the Bode plot. In phase plot , the graph shows that it is ascending from 180 degree. The one that i am using is non-inverting op-amp. I don't know how to interpret that graph.

Is THD related to Phase margin?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top