DELAY= exp[(Vth2-Vth1)/n*Vth]
Is there any way so that i can input this equation to the SPICE tool and plot Delay Vs supply voltage?I need to obtain a graph so that i can validate my model against the PSPICE model
Hello,
You should define Vth2, Vth1 and Vth as global parameters using the symbol PARAM. Then you could define such equation.
If this does not answer as you expect, please share example or give more information about what you want to do.
Regards
So basically i need to do something like this in my netlist..(eg:pythagorean theorem )
.func myfunc(x,y) {sqrt(x*x+y*y)} .param u=100 v=600 V1 a 0 pulse(0 1 0 1n 1n .5μ 1μ) R1 a b {myfunc(u,v/3)} C1 b 0 100p .tran 3μ .end
Is there any other option like where a dialogue box appears and i can just feed the equation ?
This is the generated netlist of my circuit:
PULSE 0 1 0 1n 1n 500n 1000n C_C1 N00534 N00541 100p TC=0,0 R_R1 0 N00541 {myfunc (u,v/3)} TC=0,0 .PARAM v=600 u=100
I have defined a txt file withe the name function.txt where I have defined:
.func myfunc(x,y) {sqrt(x*x+y*y)}
and then I have change the extension of this file to .inc
Then in the simulation profile I have clicked on Configuration Files --> Include and I have added the file function.inc.
Then I have simulated and it has worked perfectly.
Copyright © 2020 Cadence Design Systems, Inc. All rights reserved.
Terms of Use | Privacy
Hello,
You should define Vth2, Vth1 and Vth as global parameters using the symbol PARAM. Then you could define such equation.
If this does not answer as you expect, please share example or give more information about what you want to do.
Regards
So basically i need to do something like this in my netlist..(eg:pythagorean theorem )
.func myfunc(x,y) {sqrt(x*x+y*y)}
.param u=100 v=600
V1 a 0 pulse(0 1 0 1n 1n .5μ 1μ)
R1 a b {myfunc(u,v/3)}
C1 b 0 100p
.tran 3μ
.end
Is there any other option like where a dialogue box appears and i can just feed the equation ?
Hello,
This is the generated netlist of my circuit:
PULSE 0 1 0 1n 1n 500n 1000n
C_C1 N00534 N00541 100p TC=0,0
R_R1 0 N00541 {myfunc (u,v/3)} TC=0,0
.PARAM v=600 u=100
I have defined a txt file withe the name function.txt where I have defined:
.func myfunc(x,y) {sqrt(x*x+y*y)}
and then I have change the extension of this file to .inc
Then in the simulation profile I have clicked on Configuration Files --> Include and I have added the file function.inc.
Then I have simulated and it has worked perfectly.
Regards