Simulation Problem with PSPICE

Status
Not open for further replies.

sinansabahm

Newbie level 1
Joined
Sep 6, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,291
Hi All,

I am using PSPICE to get the nonlinear Memristor model simulation. A part of the SPICE Model is as follows:

Code:
Gxpos 0 x value={stp(-V(x)+lim_max)*stp(V(plus,minus))*((V(Plus,Minus))^q)*f(V(x),I(plus,minus),p)}
Gxneg x 0 value={stp(V(x)-lim_min)*stp(V(minus,plus))*((V(Plus,Minus))^q)*f(V(x),I(plus,minus),p)}
Cx x 0 0.00008 IC=0.15
Raux x 0 0.01T

Gmem plus minus value={(((V(x)^n))*b*sinh(a*V(plus,minus))+c*(exp(g*V(plus,minus))-1))}

.func f(x,i,p)={1-(x-stp(-i))^(2*p)}

But when running ,I get an error "Missing or invalid expression" not recognizing I(plus,minus) ,which is the current of the VCCS Gmem.
So how to solve such problem? Thanks
 
Last edited by a moderator:

Pspice does not support directly referencing behavioral devices currents inside other behavioral sources.
You would need to add dummy voltage source (zero volt) in series with Gmem and refer it's current inside Gxpos ,Gxneg.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…