blob: 167c4fc4d36ca9b2b6dd28d4c6ec11621bc6dbf5 [file] [log] [blame]
################################################################################################
# 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.
################################################################################################
#================================
# ----- DIODE CONNECTIONS -------
#================================
logger.info('Starting LVS DIODE CONNECTIONS')
#=====================
# --- NP 1P8 DIODE ---
#=====================
# diode_nd2ps_01v8: Model for 1.8V P+/Nwell diode (outside DNWELL) [np_1p8]
connect(diode_nd2ps_01v8_terminal_n, contact)
# diode_nd2ps_01v8_dn: Model for 1.8V N+/Psub diode (inside DNWELL) [np_1p8_dw]
connect(diode_nd2ps_01v8_dn_terminal_n, contact)
#=====================
# --- PN 1P8 DIODE ---
#=====================
# diode_pd2nw_01v8: Model for 1.8V P+/Nwell diode (outside DNWELL) [pn_1p8]
connect(diode_pd2nw_01v8_terminal_p, contact)
# diode_pd2nw_01v8_dn: Model for 1.8V P+/Nwell diode (inside DNWELL) [pn_1p8_dw]
connect(diode_pd2nw_01v8_dn_terminal_p, contact)
#=====================
# --- NP 6P0 DIODE ---
#=====================
# diode_nd2ps_06v0: Model for 6V N+/Pwell diode (outside DNWELL) [np_6p0]
connect(diode_nd2ps_06v0_terminal_n, contact)
# diode_nd2ps_06v0_dn: Model for 6V N+/Psub diode (inside DNWELL) [np_6p0_dw]
connect(diode_nd2ps_06v0_dn_terminal_n, contact)
#=====================
# --- PN 6P0 DIODE ---
#=====================
# diode_pd2nw_06v0: Model for 6V P+/Nwell diode (outside DNWELL) [pn_6p0]
connect(diode_pd2nw_06v0_terminal_p, contact)
# diode_pd2nw_06v0_dn: Model for 6V P+/Nwell diode (inside DNWELL) [pn_6p0_dw]
connect(diode_pd2nw_06v0_dn_terminal_p, contact)
#======================
# --- NWP 6P0 DIODE ---
#======================
# diode_nw2ps_06v0: Model for Nwell/Psub diode (applicable for both 1.8V/6V) [nwp_6p0]
connect(diode_nw2ps_06v0_terminal_p, contact)
connect(diode_nw2ps_06v0_terminal_n, nwell)
#====================
# --- DNWPW DIODE ---
#====================
# diode_pw2dw: Model for LVPWELL/DNWELL diode (applicable for both 1.8V/6V) [dnwpw]
connect(diode_pw2dw_terminal_p, contact)
#====================
# --- DNWPS DIODE ---
#====================
# diode_dw2ps: Model for DNWELL/Psub diode(1.8V/6V) [dnwps]
connect(diode_dw2ps_terminal_p, ptap)
#=================
# --- SC DIODE ---
#=================
# diode_sc: Model for schottky diode [sc_diode]
connect(diode_sc_terminal_n, contact)
connect(diode_sc_terminal_p, schottky_diode)