From 0a7a34c8695f18767db16be0ccf47a60d016f534 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 8 May 2017 21:09:40 +0200 Subject: [PATCH] bsim6.va, work around body local vars (topology.c) again OPdependent related --- src/spicelib/devices/adms/bsim6/admsva/bsim6.va | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;