//
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 q=c0*v(p,n)+c1*v1*ln(cosh((v(p,n)-v0)/v1))
ends varactor
endsection moscap
endlibrary test_varactor

 
