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.

how to insert a subcircuit SPICE script in Cadence

Status
Not open for further replies.

chemaphy

Junior Member level 2
Joined
Oct 13, 2005
Messages
22
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,440
Hello,

I am having a resistor SPICE script that is provided by a manufacturer. The SPICE script begins with .subckt keyword. My question is how can I create my own resistor in Cadence Schematics so that the resistor that I create can reference to that resistor SPICE script. I would appreciate your help if anyone of you can provide me some brief description on how i can set up my own resistor.

Thank you very much for your time,
chemaphy

The following is the resistor SPICE script that I am given:

.subckt rlrrf plus minus psub w=2e-6 l=10e-6 strips=1
.param cterm = 0.1013e-3
.param lterm = 0.84e-6
.param rterm = 29.39
.param width = w
.param ns = strips
.param length = 'l/ns'
.param dw = 0.25e-06
.param rhoply = 72.0
.param coxp = '0.1013e-3*coxpf'
.param tc_S1 = 18.0e-04
.param res = 'ns*((rhoply*length)/(width-dw)+rterm*1e-6/(width-dw))'
.param cfox = 'ns*(coxp*(length)*(width-dw))'
.param ccnt = 'ns*cterm*lterm*(width-dw)'
r1 plus 1 'res/2' tc1=tc_S1
r2 1 minus 'res/2' tc1=tc_S1
c1 plus psub 'ccnt'
c2 1 psub 'cfox'
c3 minus psub 'ccnt'
.ends rlrrf
 

One way I know is using the component CDF.
Please refer to "Affirma Analog Circuit Design Environment User Guide" pp. 127-132.
As far as I know, this approach works for pure spice code only, not Pspice code. I want to know the other method as well. I heard that script like ocean can do similiar thing in spectre, but I do not know how to do that.
 

    chemaphy

    Points: 2
    Helpful Answer Positive Rating
Thanks for your help, the user manual is really useful!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top