sinansabahm
Newbie level 1
Hi All,
I am using PSPICE to get the nonlinear Memristor model simulation. A part of the SPICE Model is as follows:
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
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: