Back to Forums
4 posts / 0 new
Last post
#1 Aug 14, 2017
Anala
Offline
Last seen: 6 years 8 months ago
Joined: 2017-08-14 13:20

Proposed model validation using PSPICE

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

Wed, 2017-08-16 03:15
RobertoGb
RobertoGb's picture
Offline
Last seen: 5 years 10 months ago
Joined: 2016-05-24 03:10

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

Wed, 2017-08-16 09:33 (Reply to #2)
Anala
Offline
Last seen: 6 years 8 months ago
Joined: 2017-08-14 13:20

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 ?

Thu, 2017-08-17 10:38
RobertoGb
RobertoGb's picture
Offline
Last seen: 5 years 10 months ago
Joined: 2016-05-24 03:10

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

Download PSpice and try it for free! Download Free Trial
Cadence