I know little about memristors but there's animated simulations using them at this link:
Click Yes if a message comes up asking if it can install the java applet.
https://www.falstad.com/circuit/e-mr-sine.html
There are several other simulations of memristor action. It has a whole library of various circuits.
This question is almost identical to another current thread so my answer will be the same - have you tried searching the forum? There have been several discussions about simulating memristors.
Keith
.func f(x,p) {1-(2*x-1)^(2*p)}
For HSPICE, try removing the = sign out of func:
Code:.func f(x,p) {1-(2*x-1)^(2*p)}
For LTspice, it seems that it prefers ** to ^ for raising to a power.
Keith.
Have you actually tried my suggestion? I tried your syntax and also got an error. I removed the equals sign and it fixed it. Gx calls the func f(x,p) so a syntax error in the func stops Gx working.
Keith
Gx 0 x Value={I(Emem)*uv*Ron/D^2*f(V(x),p)}
Gx 0 x Value={i(Emem)*uv*Ron/D^2*f(V(x),p)}
f(x,p) {1-(2*x-1)^(2*p)}
f(x,p)={1-(2*x-1)^(2*p)}
I don't have Hspice to try it, but from the Hspice manual I would suggest you remove the .func part from the line altogether so you get:
Code:f(x,p) {1-(2*x-1)^(2*p)}
or
Code:f(x,p)={1-(2*x-1)^(2*p)}
Keith.
.PARAM f(x,p)= '1-pow((2*x-1),(2*p))'
.func f(x,p)={1-(2*x-1)^(2*p)}
.OPTION runlvl=0
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?