The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 11:17am
Pages: 1
Send Topic Print
oceanEval statement in Monte Carlo simulation in Spectre to expert current (Read 1594 times)
pennyWWW
New Member
*
Offline



Posts: 2

oceanEval statement in Monte Carlo simulation in Spectre to expert current
Jun 20th, 2018, 10:19pm
 
Hi all,
I try to export the current in the monte Carlo simulation but failed.
Could someone help me?
The following is an example of a PMOS.
I want to record the PMOS source-drain current.
It seems in the export mc.mcdata file the export values are just voltage of Dp(3.3) and Sp(0). I could not get the current value flowing through Sp node.
Is there some one can help with the oceanEval statement?

Follows are my script.

...
parameters vgp=3.3
parameters vdp=3.3
parameters wp=1.15u

nP (Dp Gp Sp vdd) pch_33 l=500n w=wp
VSp (Sp 0) vsource dc=0
VDp (Dp 0) vsource dc=vdp
VGp (Gp 0) vsource dc=0

mc1 montecarlo variations=process seed=10000 numruns=37 savefamilyplots=yes {
dc1 dc
export i1=oceanEval("i(\"Sp\")")
export v=oceanEval("v(\"Dp\")")
}

Thanks!

Penny

Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: oceanEval statement in Monte Carlo simulation in Spectre to expert current
Reply #1 - Jun 23rd, 2018, 2:16am
 
Hi Penny,

You appear to be trying to measure the current on a node, which makes no sense (currents flow through branches or through device terminals). It should be:

Code:
export i1=oceanEval("i(\"VSp:p\")") 



This is the "p" terminal of the voltage source connected to the source. You could also use :1 instead of :p.

In case you add more analyses, for safety the expression should also say which analysis it's from too:

Code:
export i1=oceanEval("i(\"VSp:p\" ?result 'dc)") 



Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
pennyWWW
New Member
*
Offline



Posts: 2

Re: oceanEval statement in Monte Carlo simulation in Spectre to expert current
Reply #2 - Jun 26th, 2018, 3:59pm
 
Thanks so much!
It works!

Best,
Penny
Andrew Beckett wrote on Jun 23rd, 2018, 2:16am:
Hi Penny,

You appear to be trying to measure the current on a node, which makes no sense (currents flow through branches or through device terminals). It should be:

Code:
export i1=oceanEval("i(\"VSp:p\")") 



This is the "p" terminal of the voltage source connected to the source. You could also use :1 instead of :p.

In case you add more analyses, for safety the expression should also say which analysis it's from too:

Code:
export i1=oceanEval("i(\"VSp:p\" ?result 'dc)") 



Regards,

Andrew.

Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.