chemaphy
Junior Member level 2
I would like to add the resistor with the following hspice code into my library in Cadence. Is there any good way to add it?
.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
Thank you very much for your time,
chemaphy
.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
Thank you very much for your time,
chemaphy