//
simulator lang=spectre insensitive=yes
library test_varactor
section moscap
//
subckt varactor ( p n )
parameters c0=1p c1=0.5p v0=0 v1=1
cg ( p n ) bsource c=c0+c1*tanh((v(p,n)-v0)/v1)
ends varactor
endsection moscap
endlibrary 
