leila.bagheriye
Newbie level 3
Dear all,
I want to see the memristor resistance switching ( by applying different voltages to its terminals), this is my Hspice code, by applying any different voltages, it only shows Roff, switching to Ron doesn't occur. Could you please tell me what is the problem?
**************Memristor model
.SUBCKT memristor Plus Minus
+ Ron=100 Roff=16K Rinit=11K D=10N uv=10F p=10
* DIFFERENTIAL EQUATION MODELING *
. PARAM f(x,p)= '1-pow((2*x-1),(2*p))'
Gx 0 x value='I(Emem)*uv*Ron/pow(D,2)*f(V(x),p)'
Cx x 0 1 IC='(Roff-Rinit)/(Roff-Ron)'
Raux x 0 1T
* RESISTIVE PORT OF THE MEMRISTOR *
Emem plus aux value='-I(Emem)*V(x)*(Roff-Ron)'
Roff aux minus Roff
.ENDS memristor
*********************************************************
Xmemrist blb bl memristor Ron=100 Roff=16K Rinit=.1 D=10N uv=10F p=10
RL f bl 1
VF F 0 pwl(0 0 1n 0 1.05n 0 10n 0 )
VBLB BLB 0 pwl(0 0 1n 0 1.05n 2 10n 2 )
*************************************************************************
.option probe
.option measform 3
.Tran 10p 10n
.prob v(bl) I(RL) v(blb) PAR('(V(f)-V(blb))/I(RL)')
*************************************************************************
.option probe
.end
I want to see the memristor resistance switching ( by applying different voltages to its terminals), this is my Hspice code, by applying any different voltages, it only shows Roff, switching to Ron doesn't occur. Could you please tell me what is the problem?
**************Memristor model
.SUBCKT memristor Plus Minus
+ Ron=100 Roff=16K Rinit=11K D=10N uv=10F p=10
* DIFFERENTIAL EQUATION MODELING *
. PARAM f(x,p)= '1-pow((2*x-1),(2*p))'
Gx 0 x value='I(Emem)*uv*Ron/pow(D,2)*f(V(x),p)'
Cx x 0 1 IC='(Roff-Rinit)/(Roff-Ron)'
Raux x 0 1T
* RESISTIVE PORT OF THE MEMRISTOR *
Emem plus aux value='-I(Emem)*V(x)*(Roff-Ron)'
Roff aux minus Roff
.ENDS memristor
*********************************************************
Xmemrist blb bl memristor Ron=100 Roff=16K Rinit=.1 D=10N uv=10F p=10
RL f bl 1
VF F 0 pwl(0 0 1n 0 1.05n 0 10n 0 )
VBLB BLB 0 pwl(0 0 1n 0 1.05n 2 10n 2 )
*************************************************************************
.option probe
.option measform 3
.Tran 10p 10n
.prob v(bl) I(RL) v(blb) PAR('(V(f)-V(blb))/I(RL)')
*************************************************************************
.option probe
.end