Back to Forums
1 post / 0 new
#1 Feb 14, 2020
yyyqq1
Offline
Last seen: 7 months 1 week ago
Joined: 2020-02-14 08:58

how to solve this problem in simulation

Here is the model code:

* PSpice Model Editor - Version 17.2.0
.SUBCKT Cj NP NN 
.PARAM C0=2.1E-13
.PARAM V0=2.7
.PARAM a=0.7
.PARAM ISS=56.19E-6
.PARAM Vb={a*V0}
.FUNC Csc(X) {IF(X<Vb,C0/SQRT(1-X/V0),C0*SQRT((1-a)*(1-a)*(1-a))*(1-1.5*a+0.5*X/V0)}
***** BEGIN CIRCUIT *****
*SCH SECTION
.MODEL DSCH D (IS={ISS} N=2 RS=0.45)
DS NP NN DSCH
GCsc NP NN VALUE={Csc(V(NP)-V(NN))*DDT(V(NP)-V(NN))}
.ENDS
 

Here is my simulation result:

**** FROM LIBRARY ../../../cj.lib ****
.SUBCKT Cj NP NN 
.PARAM C0=2.1E-13
.PARAM V0=2.7
.PARAM a=0.7
.PARAM ISS=56.19E-6
.PARAM Vb={a*V0}
.FUNC Csc(X) {IF(X<Vb,C0/SQRT(1-X/V0),C0*SQRT((1-a)*(1-a)*(1-a))*(1-1.5*a+0.5*X/V0)}
***** BEGIN CIRCUIT *****
*SCH SECTION
-------------$
ERROR(ORPSIM-16367): End of expression not seen
DS NP NN DSCH
------------------------------------$
ERROR(ORPSIM-16367): End of expression not seen
DS NP NN DSCH
------------------------------------$
ERROR(ORPSIM-16367): End of expression not seen
GCsc NP NN VALUE={Csc(V(NP)-V(NN))*DDT(V(NP)-V(NN))}
------------------------------------$
ERROR(ORPSIM-16367): End of expression not seen
.ENDS
*
------------------------------------$
ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT

Can anyone help me with this problem for my simulation? Many thanks!!

Download PSpice and try it for free! Download Free Trial
Cadence