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.

Simulation problem with pspice model of memristor

Status
Not open for further replies.
Hi,
i'm trying to do a simulation pspice of memristor,but when i run simulaion i don't obtain the pinched hysteresis loop of memristor.Can you help me? This is the pspice netlist .... are there mistakes?

* Ron, Roff - Resistance in ON / OFF States
* Rinit - Resistance at T=0
* D - Width of the thin film
* uv - Migration coefficient
* p - Parameter of the WINDOW-function
* for modeling nonlinear boundary conditions
* x - W/D Ratio, W is the actual width
* of the doped area (from 0 to D)
*
.SUBCKT memristor Plus Minus PARAMS:
+ Ron=100 Roff=16K Rinit=11K D=10N uv=10F p=10

* 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

Xmemrist aa 0 memristor
Vtest aa 0 SIN(0 1.2V 1 0 0 0)

.tran 0 3s 0 3m skipbp
.probe
.end

After "Run Test" i do:
Trace---->Add New Trace---->V(aa)-I(Vtest).....is correct?



Can u please send the block diagram of circuit you drawn by u for this pspice model???
 

What if i have to implement and/or gate using this model? how can i do thiss?
 

Hi,
i'm trying to do a simulation pspice of memristor,but when i run simulaion i don't obtain the pinched hysteresis loop of memristor.Can you help me? This is the pspice netlist .... are there mistakes?



After "Run Test" i do:
Trace---->Add New Trace---->V(aa)-I(Vtest).....is correct?



Can u please send the block diagram of circuit you drawn by u for this pspice model???

Princess_NEDIAN,

In order to get the pinched hysteresis loop you have to plot I vs V meaning, the current should be on the y-axis and the voltage should be on the x-axis. When you add a trace this only changes the y-axis and the x-axis remains time. Therefore, you have to do two steps firstly, add the current (I(V(test))) as a trace. Secondly, double click on the x-axis a pop up window will appear go to x-axis tab, and then change axis and choose V(test) or V(aa) both are the same. Press OK and you will get your pinched hysteresis loop.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top