Ivan_
Full Member level 2
Hi guys,
I have never used spice netlist before 'cause I am basically an antenna designer. Now I am facing the problem of getting a memristor model for circuit simulations. I downloaded LTspice and I imported both the codes that I found ind this forum. I tried to follow the istructions contained in the LTspice manual. I created the symbol and linked the .cir files that I found in this topic (I made both tries). During the simulation I get the following error:
what do I do wrong? I simply use the given codes and in the attributes reference the respective cir files. How should I do exactly. Could anybody please explain me step by step ho to do the entire process and obtain the curves that you showed in this topic? :grin: Follows the symbol attribute window tha I set up:
I have also another question. I need the model in another simulator (AWR or Agilent ADS, but preferably AWR 'cause I have to make some memristor-based circuits with other components, of which I have the AWR-libraries). As well I tried to import the spice netlists in those programs but I get errors on the windowing function (unrecognised) and on the time domain integrals (unrecognised). How comes? Does anybody imported this memristor spice models in AWR or ADS?
Looking forward to receiving your valuable help!
Ivan
CURENTLY USED NETLIST:
.SUBCKT memristor Plus Minus PARAMS:
+ Ron=1k Roff=100K Rinit=80K D=10N uv=10F p=1
Gx 0 x value={I(Em)*uv*Ron/D**2*f(V(x),p)}
Cx x 0 1 IC={(Roff-Rinit)/(Roff-Ron)}
Raux x 0 1T
Em plus aux value={-I(Em)*V(x)*(Roff-Ron)}
Roff aux minus {Roff}
Eflux flux 0 value={SDT(V(plus,minus))}
Echarge charge 0 value={SDT(I(Em))}
* Joglekar
.func f(x,p)={1-(2*x-1)**(2*p)}
;.func f(x,i,p)={1-(x-stp(-i))**(2*p)}
.ENDS memristor
X plus 0 memristor
Vmem plus 0 SIN(0 1.2V 1Hz)
.tran 0S 3S
.probe
.end
I have never used spice netlist before 'cause I am basically an antenna designer. Now I am facing the problem of getting a memristor model for circuit simulations. I downloaded LTspice and I imported both the codes that I found ind this forum. I tried to follow the istructions contained in the LTspice manual. I created the symbol and linked the .cir files that I found in this topic (I made both tries). During the simulation I get the following error:
what do I do wrong? I simply use the given codes and in the attributes reference the respective cir files. How should I do exactly. Could anybody please explain me step by step ho to do the entire process and obtain the curves that you showed in this topic? :grin: Follows the symbol attribute window tha I set up:
I have also another question. I need the model in another simulator (AWR or Agilent ADS, but preferably AWR 'cause I have to make some memristor-based circuits with other components, of which I have the AWR-libraries). As well I tried to import the spice netlists in those programs but I get errors on the windowing function (unrecognised) and on the time domain integrals (unrecognised). How comes? Does anybody imported this memristor spice models in AWR or ADS?
Looking forward to receiving your valuable help!
Ivan
CURENTLY USED NETLIST:
.SUBCKT memristor Plus Minus PARAMS:
+ Ron=1k Roff=100K Rinit=80K D=10N uv=10F p=1
Gx 0 x value={I(Em)*uv*Ron/D**2*f(V(x),p)}
Cx x 0 1 IC={(Roff-Rinit)/(Roff-Ron)}
Raux x 0 1T
Em plus aux value={-I(Em)*V(x)*(Roff-Ron)}
Roff aux minus {Roff}
Eflux flux 0 value={SDT(V(plus,minus))}
Echarge charge 0 value={SDT(I(Em))}
* Joglekar
.func f(x,p)={1-(2*x-1)**(2*p)}
;.func f(x,i,p)={1-(x-stp(-i))**(2*p)}
.ENDS memristor
X plus 0 memristor
Vmem plus 0 SIN(0 1.2V 1Hz)
.tran 0S 3S
.probe
.end
Last edited: