Spice to cadence translation - Define vccs in cadence

Status
Not open for further replies.

femystika08

Newbie level 5
Joined
Dec 10, 2012
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
Hi guys,

I'm trying to translate the model of a this circuit from spice to cadence
Code:
* HP Memristor SPICE Model 
* For Transient Analysis only 
* created by Zdenek and Dalibor Biolek 
************************** 
* 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=1K Roff=100K Rinit=80K 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

I want to use a voltage controlled voltage source vcvs and a voltage controlled current source vccs and my problem is how do I write a verilog-A module for your vccs given that it's gain depends on the current flow across the vcvs as shown in the attached image .

I have also attached the complete paper.
Thanks.
 

Attachments

  • SPICE_memristor.pdf
    313.5 KB · Views: 118

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…