mmkabir
Newbie level 4
I am using orcad pspice 16.6 full version and trying to implement the macro model of memristor. i am using this code to run
when i try to run the net list it shows this message
Please show me the path to solve this problem.
this is the design environment
Code dot - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 .SUBCKT memristor 1 2 6 Eres 1 9 POLY(2) +(8, 0) (11, 0) 0 0 0 0 1 Vsense 9 4 DC 0V Fcopy 0 8 Vsense 1 Rstep 8 0 1K Rser 2 4 10 Fmem 6 0 POLY(2) Vsense +Ecopy -0.5E-10 0 1E-10 0 -1 0 0 0 1 Cmem 6 0 90nF Rsp 6 0 1000Meg Ecopy 7 0 0 6 1 Rc 7 0 1 Ecpy2 10 0 6 0 1 Vref ref 0 DC 1V R1 10 11 100K Ssat1 11 0 0 11 SWX Ssat2 11 ref 11 ref SWX .MODEL SWX SW(Ron=0.001, Roff=1000Meg, +Vt=0.00001V, Vh=0.00001V) .ENDS
when i try to run the net list it shows this message
Code dot - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 X_M1.Rser OUTPUT X_M1.4 10 X_M1.Fmem STATE 0 POLY 2 X_M1.Vsense Ecopy -------------------------------------$ ERROR(ORPSIM-16047): Must be V + -0.5E-10 0 1E-10 0 -1 0 0 0 1 X_M1.Cmem STATE 0 90nF X_M1.Rsp STATE 0 1000Meg X_M1.Ecopy X_M1.7 0 0 STATE 1 X_M1.Rc X_M1.7 0 1 X_M1.Ecpy2 X_M1.10 0 STATE 0 1 X_M1.Vref X_M1.ref 0 DC 1V X_M1.R1 X_M1.10 X_M1.11 100K X_M1.Ssat1 X_M1.11 0 0 X_M1.11 X_M1.SWX X_M1.Ssat2 X_M1.11 X_M1.ref X_M1.11 X_M1.ref X_M1.SWX .MODEL X_M1.SWX SW ----------------$ ERROR -- Invalid model type
Please show me the path to solve this problem.
this is the design environment
Last edited by a moderator: