blob: 7a9afe4a461b54258e1f44954d76996b4522d63e [file] [log] [blame]
################################################################################################
# Copyright 2022 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 EXTRACTION -------
#================================
logger.info('Starting MOSFET EXTRACTION')
# ==============
# ---- PMOS ----
# ==============
logger.info('Starting PMOS EXTRACTION')
# 1.8V PMOS transistor
logger.info('Extracting 1.8V PMOS transistor')
extract_devices(mos4('pmos_1p8'),
{ 'SD' => psd, 'G' => pgate_1p8, 'tS' => psd, 'tD' => psd, 'tG' => poly2_con, 'W' => nwell_con })
# 3.3V PMOS transistor
logger.info('Extracting 3.3V PMOS transistor')
extract_devices(mos4('pmos_3p3'),
{ 'SD' => psd, 'G' => pgate_3p3, 'tS' => psd, 'tD' => psd, 'tG' => poly2_con, 'W' => nwell_con })
# ==============
# ---- NMOS ----
# ==============
logger.info('Starting NMOS EXTRACTION')
# 1.8V NMOS transistor
logger.info('1.8V NMOS transistor')
extract_devices(mos4('nmos_1p8'),
{ 'SD' => nsd, 'G' => ngate_1p8, 'tS' => nsd, 'tD' => nsd, 'tG' => poly2_con, 'W' => sub })
# 3.3V NMOS transistor
logger.info('3.3V NMOS transistor')
extract_devices(mos4('nmos_3p3'),
{ 'SD' => nsd, 'G' => ngate_3p3, 'tS' => nsd, 'tD' => nsd, 'tG' => poly2_con, 'W' => sub })
# Nat 1.8V NMOS transistor
logger.info('Nat 1.8V NMOS transistor')
extract_devices(mos4('nmos_1p8_nat'),
{ 'SD' => nsd, 'G' => ngate_nat_1p8, 'tS' => nsd, 'tD' => nsd, 'tG' => poly2_con, 'W' => sub })
# Nat 3.3V NMOS transistor
logger.info('Nat 3.3V NMOS transistor')
extract_devices(mos4('nmos_3p3_nat'),
{ 'SD' => nsd, 'G' => ngate_nat_3p3, 'tS' => nsd, 'tD' => nsd, 'tG' => poly2_con, 'W' => sub })