Quantcast
Channel: Cadence PCB Design Forum
Viewing all articles
Browse latest Browse all 5525

Need Help, Orcad Capture and Pspice simulating

$
0
0

I simulated 

* source TRIAL

X_M1         -1 0 MEMRISTOR PARAMS: RON=10K ROFF=100K RINIT=130K D=10N UV=10F

+  P=1

R_R1         -1 0  1k TC=0,0 

V_V1         -1 0  

+SIN 0V 0.1V 0.56Hz 0 0 0

 with the the memristor code

 .SUBCKT memristor Plus Minus PARAMS: 

+ Ron=10K Roff=100K Rinit=130K D=10N uv=10F p=1

***********************************************

* DIFFERENTIAL EQUATION MODELING *

***********************************************

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 1T

* RESISTIVE PORT OF THE MEMRISTOR *

*******************************

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

Roff aux minus {Roff}

***********************************************

*Flux computation*

***********************************************

Eflux flux 0 value={SDT(V(plus,minus))}

***********************************************

*Charge computation*

***********************************************

Echarge charge 0 value={SDT(I(Emem))}

***********************************************

* WINDOW FUNCTIONS

* FOR NONLINEAR DRIFT MODELING *

***********************************************

*window function, according to Joglekar

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

*proposed window function 

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

.ENDS memristor

 

and I created a new simulation AC sweep profile  .AC DEC 10 0 10000

and i get the error

ERROR-- INVALID VALUE

.PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))

.INC "..\SCHEMATIC1.net" 

 

and I donot know what to do?

So please can anyone help me... 


Viewing all articles
Browse latest Browse all 5525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>