bsim6.va, work around body local vars (topology.c)

again OPdependent related
This commit is contained in:
rlar 2017-05-08 21:09:40 +02:00
parent e96bb72e8c
commit 64a274ac5c
1 changed files with 4 additions and 1 deletions

View File

@ -1903,6 +1903,10 @@ real q_vth, psip_th;
real gth, cth;
`endif
`ifdef __RGATEMOD__
real Ggate, Gnoise;
`endif
// ---- OPERATING POINT VARIABLES ----
`OPP( QBI , "C" , "Intrinsic Body Charge")
`OPP( QSI , "C" , "Intrinsic Source Charge")
@ -4436,7 +4440,6 @@ end
if (RGATEMOD == 0) begin
V(g, gm) <+ 0;
end else begin : rgate
real Ggate, Gnoise;
if (RGATEMOD == 2) begin
Ggate = Gcrg;
Gnoise = Gcrg * Gcrg / Grgeltd;