| ################################################################################################ |
| # Copyright 2023 GlobalFoundries PDK Authors |
| # |
| # Licensed under the Apache 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 |
| # |
| # https://www.apache.org/licenses/LICENSE-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. |
| ################################################################################################ |
| |
| #================================== |
| # ------ MOSFET DERIVATIONS ------- |
| #================================== |
| |
| logger.info('Starting MOSFET DERIVATIONS') |
| |
| # =================== |
| # --- MOS EXCLUDE --- |
| # =================== |
| |
| mos_exclude = resistor.join(sab).join(res_mk) |
| .join(diode_mk).join(lvs_bjt).join(lvs_rf) |
| .join(res_mk_type1) |
| |
| ngate_lv = ngate.not(dualgate) |
| ngate_mv = ngate.and(dualgate) |
| |
| # ============== |
| # ---- NMOS ---- |
| # ============== |
| |
| logger.info('Starting NMOS layers DERIVATIONS') |
| |
| # nfet_01v8: Thin gate NMOS (1.8v) [nmos_1p8] |
| ngate_01v8 = ngate_lv.not(mos_exclude).not(nat) |
| |
| # nfet_03v3: Thick gate NMOS (3.3v) [nmos_3p3] |
| ngate_03v3 = ngate_mv.not(mos_exclude).not(nat) |
| |
| # nfet_01v8_nvt: Thin gate native NMOS (1.8v) [nmos_1p8_nat] |
| ngate_nvt_01v8 = ngate_lv.and(nat).not(mos_exclude) |
| |
| # nfet_03v3_nvt: Thick gate native NMOS (3.3v) [nmos_3p3_nat] |
| ngate_nvt_03v3 = ngate_mv.and(nat).not(mos_exclude) |
| |
| # ============== |
| # ---- PMOS ---- |
| # ============== |
| logger.info('Starting PMOS layers DERIVATIONS') |
| |
| # pfet_01v8: Thin gate PMOS (1.8v) [pmos_1p8] |
| pgate_01v8 = pgate.not(dualgate).not(mos_exclude).not(nat) |
| |
| # pfet_03v3: 3.3V PMOS transistor [pmos_3p3] |
| pgate_03v3 = pgate.and(dualgate).not(mos_exclude).not(nat) |