diff --git a/src/spicelib/devices/bsim4/b4.c b/src/spicelib/devices/bsim4/b4.c index 9a12c7413..492eea115 100644 --- a/src/spicelib/devices/bsim4/b4.c +++ b/src/spicelib/devices/bsim4/b4.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/devdefs.h" @@ -1064,6 +1035,8 @@ IOP( "tnoic", BSIM4_MOD_TNOIC, IF_REAL, "Thermal noise parameter"), IOP( "rnoia", BSIM4_MOD_RNOIA, IF_REAL, "Thermal noise coefficient"), IOP( "rnoib", BSIM4_MOD_RNOIB, IF_REAL, "Thermal noise coefficient"), IOP( "rnoic", BSIM4_MOD_RNOIC, IF_REAL, "Thermal noise coefficient"), +IOP( "gidlclamp", BSIM4_MOD_GIDLCLAMP, IF_REAL, "gidl clamp value"), +IOP( "idovvds", BSIM4_MOD_IDOVVDSC, IF_REAL, "noise clamping limit parameter"), IOP( "ntnoi", BSIM4_MOD_NTNOI, IF_REAL, "Thermal noise parameter"), IOP( "em", BSIM4_MOD_EM, IF_REAL, "Flicker noise parameter"), IOP( "ef", BSIM4_MOD_EF, IF_REAL, "Flicker noise frequency exponent"), diff --git a/src/spicelib/devices/bsim4/b4acld.c b/src/spicelib/devices/bsim4/b4acld.c index 40b59228d..fb214ab6f 100644 --- a/src/spicelib/devices/bsim4/b4acld.c +++ b/src/spicelib/devices/bsim4/b4acld.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" diff --git a/src/spicelib/devices/bsim4/b4ask.c b/src/spicelib/devices/bsim4/b4ask.c index 20926d089..b65fb8c6d 100644 --- a/src/spicelib/devices/bsim4/b4ask.c +++ b/src/spicelib/devices/bsim4/b4ask.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/ifsim.h" diff --git a/src/spicelib/devices/bsim4/b4check.c b/src/spicelib/devices/bsim4/b4check.c index a01bce5a8..7b8f3ce59 100644 --- a/src/spicelib/devices/bsim4/b4check.c +++ b/src/spicelib/devices/bsim4/b4check.c @@ -1,65 +1,36 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** - - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** - * Modified by Holger Vogt, 12/27/2020 + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * ******************************************************************************/ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc + +* Modified by Holger Vogt, 12/27/2020 +********************************************************************************/ + #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" #include "bsim4def.h" @@ -108,12 +79,13 @@ CKTcircuit *ckt) wl->wl_next = NULL; wl->wl_word = tprintf("\nChecking parameters for BSIM 4.8 model %s\n", model->BSIM4modName); - if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4)) && (strncmp(model->BSIM4version, "4.8", 3))) + if ((strcmp(model->BSIM4version, "4.8.0")) && (strncmp(model->BSIM4version, "4.80", 4)) && (strncmp(model->BSIM4version, "4.8", 3)) && + (strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4))) { printf("Warning: This model supports BSIM4 version 4.8\n"); - printf("You specified a wrong version number. Working now with BSIM4.8.1\n"); + printf("You specified a wrong version number. Working now with BSIM4.8.2\n"); wl_append_word(&wl, &wl, tprintf("Warning: This model supports BSIM4 version 4.8\n")); - wl_append_word(&wl, &wl, tprintf("You specified a wrong version number. Working now with BSIM4.8.1.\n")); + wl_append_word(&wl, &wl, tprintf("You specified a wrong version number. Working now with BSIM4.8.2.\n")); } if ((here->BSIM4rgateMod == 2) || (here->BSIM4rgateMod == 3)) @@ -538,7 +510,11 @@ CKTcircuit *ckt) { wl_append_word(&wl, &wl, tprintf("Warning: Eta0 = %g is negative.\n", here->BSIM4eta0)); } - + /* Check GIDL parameters */ + if (model->BSIM4gidlclamp >= 0.0) + { + wl_append_word(&wl, &wl, tprintf("Warning: gidlclamp = %g is zero or positive.\n", model->BSIM4gidlclamp)); + } /* Check Abulk parameters */ if (fabs(1.0e-8 / (pParam->BSIM4b1 + pParam->BSIM4weff)) > 10.0) { @@ -754,8 +730,14 @@ CKTcircuit *ckt) if (model->BSIM4tnoiMod == 1){ wl_append_word(&wl, &wl, tprintf("Warning: TNOIMOD=1 is not supported and may be removed from future version.\n")); } + if (model->BSIM4idovvdsc <= 0.0) + { + wl_append_word(&wl, &wl, tprintf("Warning: idovvdsc = %g is zero or negative.\n", model->BSIM4idovvdsc)); + } - if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4))) { + if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4)) && + (strcmp(model->BSIM4version, "4.8.2")) && (strncmp(model->BSIM4version, "4.82", 4))) + { /* checking for version <= 4.8 */ /* v4.7 */ if (model->BSIM4tnoiMod == 1 || model->BSIM4tnoiMod == 2) { if (model->BSIM4tnoia < 0.0) diff --git a/src/spicelib/devices/bsim4/b4cvtest.c b/src/spicelib/devices/bsim4/b4cvtest.c index 47551ed84..a6b0a46db 100644 --- a/src/spicelib/devices/bsim4/b4cvtest.c +++ b/src/spicelib/devices/bsim4/b4cvtest.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" diff --git a/src/spicelib/devices/bsim4/b4geo.c b/src/spicelib/devices/bsim4/b4geo.c index 18314fd9f..1cd17e72a 100644 --- a/src/spicelib/devices/bsim4/b4geo.c +++ b/src/spicelib/devices/bsim4/b4geo.c @@ -1,74 +1,38 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "bsim4def.h" -/* - * WDLiu: - * This subrutine is a special module to process the geometry dependent - * parasitics for BSIM4, which calculates Ps, Pd, As, Ad, and Rs and Rd - * for multi-fingers and varous GEO and RGEO options. - */ - static int BSIM4NumFingerDiff( double nf, diff --git a/src/spicelib/devices/bsim4/b4getic.c b/src/spicelib/devices/bsim4/b4getic.c index 2a42311fd..6436a0921 100644 --- a/src/spicelib/devices/bsim4/b4getic.c +++ b/src/spicelib/devices/bsim4/b4getic.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" diff --git a/src/spicelib/devices/bsim4/b4ld.c b/src/spicelib/devices/bsim4/b4ld.c index 300231625..7e76d2eb3 100644 --- a/src/spicelib/devices/bsim4/b4ld.c +++ b/src/spicelib/devices/bsim4/b4ld.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ /**** OpenMP support ngspice 06/28/2010 ****/ @@ -2202,7 +2173,7 @@ for (; model != NULL; model = BSIM4nextModel(model)) here->BSIM4gm = Gm; here->BSIM4gmbs = Gmb; here->BSIM4IdovVds = Ids; - if( here->BSIM4IdovVds <= 1.0e-9) here->BSIM4IdovVds = 1.0e-9; + if( here->BSIM4IdovVds <= model->BSIM4idovvdsc) here->BSIM4IdovVds = model->BSIM4idovvdsc; /* Calculate Rg */ if ((here->BSIM4rgateMod > 1) || @@ -2452,6 +2423,9 @@ for (; model != NULL; model = BSIM4nextModel(model)) } T4 = vbs - pParam->BSIM4fgisl; + /*--chetan dabhi solution for clamping T4-*/ + if(T4 > model->BSIM4gidlclamp) + T4=model->BSIM4gidlclamp; if (T4==0) T5 = EXPL_THRESHOLD; @@ -2508,6 +2482,9 @@ for (; model != NULL; model = BSIM4nextModel(model)) Ggidlg = T3 * dT1_dVg; } T4 = vbd - pParam->BSIM4fgidl; + /*--chetan dabhi solution for clamping T4-*/ + if(T4 > model->BSIM4gidlclamp) + T4=model->BSIM4gidlclamp; if (T4==0) T5 = EXPL_THRESHOLD; else diff --git a/src/spicelib/devices/bsim4/b4mask.c b/src/spicelib/devices/bsim4/b4mask.c index 8e802cc30..b589729b5 100644 --- a/src/spicelib/devices/bsim4/b4mask.c +++ b/src/spicelib/devices/bsim4/b4mask.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/ifsim.h" @@ -683,6 +654,12 @@ IFvalue *value) case BSIM4_MOD_RNOIC: value->rValue = model->BSIM4rnoic; return(OK); + case BSIM4_MOD_GIDLCLAMP: + value->rValue = model->BSIM4gidlclamp; + return(OK); + case BSIM4_MOD_IDOVVDSC: + value->rValue = model->BSIM4idovvdsc; + return(OK); case BSIM4_MOD_NTNOI: value->rValue = model->BSIM4ntnoi; return(OK); diff --git a/src/spicelib/devices/bsim4/b4mdel.c b/src/spicelib/devices/bsim4/b4mdel.c index 5acc6e375..fa94f5589 100644 --- a/src/spicelib/devices/bsim4/b4mdel.c +++ b/src/spicelib/devices/bsim4/b4mdel.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "bsim4def.h" diff --git a/src/spicelib/devices/bsim4/b4mpar.c b/src/spicelib/devices/bsim4/b4mpar.c index e7e47ad2d..1101a6446 100644 --- a/src/spicelib/devices/bsim4/b4mpar.c +++ b/src/spicelib/devices/bsim4/b4mpar.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "bsim4def.h" @@ -3640,6 +3611,15 @@ GENmodel *inMod) mod->BSIM4kfGiven = TRUE; break; + case BSIM4_MOD_GIDLCLAMP: + mod->BSIM4gidlclamp = value->rValue; + mod->BSIM4gidlclampGiven = TRUE; + break; + case BSIM4_MOD_IDOVVDSC: + mod->BSIM4idovvdsc = value->rValue; + mod->BSIM4idovvdscGiven = TRUE; + break; + case BSIM4_MOD_VGS_MAX: mod->BSIM4vgsMax = value->rValue; mod->BSIM4vgsMaxGiven = TRUE; diff --git a/src/spicelib/devices/bsim4/b4noi.c b/src/spicelib/devices/bsim4/b4noi.c index 816d0288d..3a3b1b4d5 100644 --- a/src/spicelib/devices/bsim4/b4noi.c +++ b/src/spicelib/devices/bsim4/b4noi.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "bsim4def.h" diff --git a/src/spicelib/devices/bsim4/b4par.c b/src/spicelib/devices/bsim4/b4par.c index d0515ef8b..4db237ed3 100644 --- a/src/spicelib/devices/bsim4/b4par.c +++ b/src/spicelib/devices/bsim4/b4par.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/ifsim.h" diff --git a/src/spicelib/devices/bsim4/b4pzld.c b/src/spicelib/devices/bsim4/b4pzld.c index 379d7cd1e..3082f125e 100644 --- a/src/spicelib/devices/bsim4/b4pzld.c +++ b/src/spicelib/devices/bsim4/b4pzld.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" diff --git a/src/spicelib/devices/bsim4/b4set.c b/src/spicelib/devices/bsim4/b4set.c index c721d8d8c..aae6d1878 100644 --- a/src/spicelib/devices/bsim4/b4set.c +++ b/src/spicelib/devices/bsim4/b4set.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/jobdefs.h" @@ -245,7 +216,7 @@ BSIM4instance **InstArray; } if (!model->BSIM4versionGiven) - model->BSIM4version = copy("4.8.1"); + model->BSIM4version = copy("4.8.2"); if (!model->BSIM4toxrefGiven) model->BSIM4toxref = 30.0e-10; if (!model->BSIM4eotGiven) @@ -383,8 +354,9 @@ BSIM4instance **InstArray; model->BSIM4eu = (model->BSIM4type == NMOS) ? 1.67 : 1.0; if (!model->BSIM4ucsGiven) model->BSIM4ucs = (model->BSIM4type == NMOS) ? 1.67 : 1.0; - if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4))) - { + if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4)) && + (strcmp(model->BSIM4version, "4.8.2")) && (strncmp(model->BSIM4version, "4.82", 4))) + { /* check only for version <= 4.80 */ if (!model->BSIM4uaGiven) model->BSIM4ua = ((model->BSIM4mobMod == 2)) ? 1.0e-15 : 1.0e-9; /* unit m/V */ if (!model->BSIM4ucGiven) @@ -656,6 +628,10 @@ BSIM4instance **InstArray; model->BSIM4rnoia = 0.577; if (!model->BSIM4rnoibGiven) model->BSIM4rnoib = 0.5164; + if (!model->BSIM4gidlclampGiven) + model->BSIM4gidlclamp = -1e-5; + if (!model->BSIM4idovvdscGiven) + model->BSIM4idovvdsc = 1e-9; if (!model->BSIM4rnoicGiven) model->BSIM4rnoic = 0.395; if (!model->BSIM4ntnoiGiven) @@ -2039,15 +2015,10 @@ BSIM4instance **InstArray; } if (!model->BSIM4dwjGiven) model->BSIM4dwj = model->BSIM4dwc; - if (!model->BSIM4cfGiven) - model->BSIM4cf = 2.0 * model->BSIM4epsrox * EPS0 / PI - * log(1.0 + 0.4e-6 / model->BSIM4toxe); - if (!model->BSIM4xpartGiven) model->BSIM4xpart = 0.0; if (!model->BSIM4sheetResistanceGiven) model->BSIM4sheetResistance = 0.0; - if (!model->BSIM4SunitAreaJctCapGiven) model->BSIM4SunitAreaJctCap = 5.0E-4; if (!model->BSIM4DunitAreaJctCapGiven) diff --git a/src/spicelib/devices/bsim4/b4temp.c b/src/spicelib/devices/bsim4/b4temp.c index e2afea53c..6a0e4d90b 100644 --- a/src/spicelib/devices/bsim4/b4temp.c +++ b/src/spicelib/devices/bsim4/b4temp.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/smpdefs.h" @@ -159,15 +130,21 @@ int Size_Not_Found, i; if(model->BSIM4mtrlMod == 0) { if ((model->BSIM4toxeGiven) && (model->BSIM4toxpGiven) && (model->BSIM4dtoxGiven) - && (model->BSIM4toxe != (model->BSIM4toxp + model->BSIM4dtox))) - printf("Warning: toxe, toxp and dtox all given and toxe != toxp + dtox; dtox ignored.\n"); + && (model->BSIM4toxe != (model->BSIM4toxp + model->BSIM4dtox))) + { printf("Warning: toxe, toxp and dtox all given and toxe != toxp + dtox; dtox ignored.\n"); + } else if ((model->BSIM4toxeGiven) && (!model->BSIM4toxpGiven)) - model->BSIM4toxp = model->BSIM4toxe - model->BSIM4dtox; - else if ((!model->BSIM4toxeGiven) && (model->BSIM4toxpGiven)){ - model->BSIM4toxe = model->BSIM4toxp + model->BSIM4dtox; - if (!model->BSIM4toxmGiven) /* v4.7 */ + { model->BSIM4toxp = model->BSIM4toxe - model->BSIM4dtox; + } + else if ((!model->BSIM4toxeGiven) && (model->BSIM4toxpGiven)) + { + model->BSIM4toxe = model->BSIM4toxp + model->BSIM4dtox; + if (!model->BSIM4toxmGiven) /* v4.7 */ model->BSIM4toxm = model->BSIM4toxe; } + if (!model->BSIM4cfGiven) /* v4.8.2 */ + model->BSIM4cf = 2.0 * model->BSIM4epsrox * EPS0 / PI + * log(1.0 + 0.4e-6 / model->BSIM4toxe); } else if(model->BSIM4mtrlCompatMod != 0) /* v4.7 */ { @@ -1392,7 +1369,8 @@ int Size_Not_Found, i; pParam->BSIM4Aechvb = (model->BSIM4type == NMOS) ? 4.97232e-7 : 3.42537e-7; pParam->BSIM4Bechvb = (model->BSIM4type == NMOS) ? 7.45669e11 : 1.16645e12; - if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4))) + if ((strcmp(model->BSIM4version, "4.8.1")) && (strncmp(model->BSIM4version, "4.81", 4)) && + (strcmp(model->BSIM4version, "4.8.2")) && (strncmp(model->BSIM4version, "4.82", 4))) { pParam->BSIM4AechvbEdgeS = pParam->BSIM4Aechvb * pParam->BSIM4weff * model->BSIM4dlcig * pParam->BSIM4ToxRatioEdge; @@ -2408,7 +2386,7 @@ int Size_Not_Found, i; if (BSIM4checkModel(model, here, ckt)) { SPfrontEnd->IFerrorf(ERR_FATAL, - "detected during BSIM4.8.1 parameter checking for \n model %s of device instance %s\n", model->BSIM4modName, here->BSIM4name); + "detected during BSIM4.8.2 parameter checking for \n model %s of device instance %s\n", model->BSIM4modName, here->BSIM4name); return(E_BADPARM); } } /* End instance */ diff --git a/src/spicelib/devices/bsim4/b4trunc.c b/src/spicelib/devices/bsim4/b4trunc.c index 3d4ec53ba..6b37ddf6d 100644 --- a/src/spicelib/devices/bsim4/b4trunc.c +++ b/src/spicelib/devices/bsim4/b4trunc.c @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #include "ngspice/ngspice.h" #include "ngspice/cktdefs.h" diff --git a/src/spicelib/devices/bsim4/bsim4def.h b/src/spicelib/devices/bsim4/bsim4def.h index 9afba6144..1fdb291d4 100644 --- a/src/spicelib/devices/bsim4/bsim4def.h +++ b/src/spicelib/devices/bsim4/bsim4def.h @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #ifndef BSIM4 #define BSIM4 @@ -1831,7 +1802,8 @@ typedef struct sBSIM4model double BSIM4vgbrMax; double BSIM4vbsrMax; double BSIM4vbdrMax; - + double BSIM4gidlclamp; + double BSIM4idovvdsc; struct bsim4SizeDependParam *pSizeDependParamKnot; #ifdef USE_OMP @@ -2763,7 +2735,8 @@ typedef struct sBSIM4model unsigned BSIM4pkvth0weGiven :1; unsigned BSIM4pk2weGiven :1; unsigned BSIM4pku0weGiven :1; - + unsigned BSIM4gidlclampGiven :1; + unsigned BSIM4idovvdscGiven :1; } BSIM4model; @@ -3816,6 +3789,10 @@ typedef struct sBSIM4model /* tnoiMod=2 (v4.7) */ #define BSIM4_MOD_TNOIC 1272 #define BSIM4_MOD_RNOIC 1273 +/* smoothing for gidl clamp (C.K.Dabhi) */ +#define BSIM4_MOD_GIDLCLAMP 1274 +/* Tuning for noise parameter BSIM4IdovVds (C.K.Dabhi) - request cadence */ +#define BSIM4_MOD_IDOVVDSC 1275 #define BSIM4_MOD_VGS_MAX 1301 #define BSIM4_MOD_VGD_MAX 1302 diff --git a/src/spicelib/devices/bsim4/bsim4ext.h b/src/spicelib/devices/bsim4/bsim4ext.h index 810144cc4..cd810e99a 100644 --- a/src/spicelib/devices/bsim4/bsim4ext.h +++ b/src/spicelib/devices/bsim4/bsim4ext.h @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ extern int BSIM4acLoad(GENmodel *,CKTcircuit*); extern int BSIM4ask(CKTcircuit *,GENinstance*,int,IFvalue*,IFvalue*); diff --git a/src/spicelib/devices/bsim4/bsim4itf.h b/src/spicelib/devices/bsim4/bsim4itf.h index 7d485aec1..b24f6eedd 100644 --- a/src/spicelib/devices/bsim4/bsim4itf.h +++ b/src/spicelib/devices/bsim4/bsim4itf.h @@ -1,62 +1,33 @@ /* ****************************************************************************** - * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * + * BSIM4 4.8.2 released by Chetan Kumar Dabhi 01/01/2020 * * BSIM4 Model Equations * ****************************************************************************** ****************************************************************************** - * Copyright 2017 Regents of the University of California. * - * All rights reserved. * + * Copyright (c) 2020 University of California * * * * Project Director: Prof. Chenming Hu. * + * Current developers: Chetan Kumar Dabhi (Ph.D. student, IIT Kanpur) * + * Prof. Yogesh Chauhan (IIT Kanpur) * + * Dr. Pragya Kushwaha (Postdoc, UC Berkeley) * + * Dr. Avirup Dasgupta (Postdoc, UC Berkeley) * + * Ming-Yen Kao (Ph.D. student, UC Berkeley) * * Authors: Gary W. Ng, Weidong Liu, Xuemei Xi, Mohan Dunga, Wenwei Yang * - * Ali Niknejad, Shivendra Singh Parihar, Chetan Kumar Dabhi * - * Yogesh Singh Chauhan, Sayeef Salahuddin, Chenming Hu * - ****************************************************************************** + * Ali Niknejad, Chetan Kumar Dabhi, Yogesh Singh Chauhan, * + * Sayeef Salahuddin, Chenming Hu * + ******************************************************************************/ - ****************************************************************************** - * CMC In-Code Statement * - * * - * The Developer agrees that the following statement will appear in the * - * model code that has been adopted as a CMC Standard. * - * * - * Software is distributed as is, completely without warranty or service * - * support. The University of California and its employees are not liable * - * for the condition or performance of the software. * - * * - * The University of California owns the copyright and grants users a * - * perpetual, irrevocable, worldwide, non-exclusive, royalty-free license * - * with respect to the software as set forth below. * - * * - * The University of California hereby disclaims all implied warranties. * - * * - * The University of California grants the users the right to modify, * - * copy, and redistribute the software and documentation, both within * - * the user's organization and externally, subject to the following * - * restrictions: * - * * - * 1. The users agree not to charge for the University of California code * - * itself but may charge for additions, extensions, or support. * - * * - * 2. In any product based on the software, the users agree to * - * acknowledge the University of California that developed the * - * software. This acknowledgment shall appear in the product * - * documentation. * - * * - * 3. Redistributions to others of source code and documentation must * - * retain the copyright notice, disclaimer, and list of conditions. * - * * - * 4. Redistributions to others in binary form must reproduce the * - * copyright notice, disclaimer, and list of conditions in the * - * documentation and/or other materials provided with the * - * distribution. * - * * - * Agreed to on ______Feb. 15, 2017______________ * - * * - * By: ____University of California, Berkeley___ * - * ____Chenming Hu__________________________ * - * ____Professor in Graduate School ________ * - * * - ****************************************************************************** */ +/* +Licensed under Educational Community License, Version 2.0 (the "License"); you may +not use this file except in compliance with the License. You may obtain a copy of the license at +http://opensource.org/licenses/ECL-2.0 +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations +under the License. + +BSIM-CMG model is supported by the members of Silicon Integration Initiative's Compact Model Coalition. A link to the most recent version of this +standard can be found at: http://www.si2.org/cmc +*/ #ifndef DEV_BSIM4 #define DEV_BSIM4