diff --git a/src/spicelib/devices/adms/bsim6/admsva/bsim6.va b/src/spicelib/devices/adms/bsim6/admsva/bsim6.va index 2a15e0b26..87d6b7858 100755 --- a/src/spicelib/devices/adms/bsim6/admsva/bsim6.va +++ b/src/spicelib/devices/adms/bsim6/admsva/bsim6.va @@ -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;