Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Getting error ORPSIM-16363 while simulating memrsitor model

Status
Not open for further replies.

mmkabir

Newbie level 4
Joined
Mar 25, 2017
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
74
Hi

I am using this bellow spice model to run a simple simulation of a memristor

Code:
.SUBCKT memristor Plus Minus 
.PARAMS Ron=1K Roff=100K Rinit=80K D=10N uv=10F p=1

Gx 0 x value={ I(Emem)*uv*Ron/D^2*f(V(x),p)}
Cx x 0 1 IC={(Roff-Rinit)/(Roff-Ron)}
Raux x 0 1G


Emem Plus aux value={-I(Emem)*V(x)*(Roff-Ron)}
Roff aux Minus {Roff}

.func f(x,p)={1-(2*x-1)^(2*p)}
.ENDS

but after running the simulation i am getting this msg. 


**** INCLUDING SCHEMATIC1.net ****
* source MEMRISTOR4
X_M1         IN OUT MEMRISTOR
V_V1         IN 0  AC 5AC
+SIN 0 1Vdc 500Hz 0 0 0
R_R1         OUT 0  1k TC=0,0 

**** RESUMING sim1.cir ****
.END

**** FROM LIBRARY C:\Cadence\SPB_16.6\tools\pspice\library\memristor4.lib ****
.SUBCKT memristor Plus Minus 
.PARAMS Ron=1K Roff=100K Rinit=80K D=10N uv=10F p=1
$
ERROR(ORPSIM-16363): Command invalid in subcircuit
I am not understanding which command is invalid. please help me out
 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top