blob: a0d119c2cefa7d608e7835288d338f29ecc03941 [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.
################################################################################################
#================================================
#------------ DEVICES CONNECTIVITY --------------
#================================================
logger.info('Starting GF180 LVS connectivity setup')
#================================
# ----- GENERAL CONNECTIONS -----
#================================
logger.info('Starting GF180 LVS connectivity setup (Inter-layer)')
# Inter-layer
connect(sub, ptap)
connect(lvpwell_con, ptap)
connect(lvpwell_con, ptap_dw)
connect(dnwell, ntap_dw)
connect(nwell_con, ntap)
connect(ptap, contact)
connect(ptap_dw, contact)
connect(ntap, contact)
connect(ntap_dw, contact)
connect(psd, contact)
connect(psd_dw, contact)
connect(nsd, contact)
connect(poly2_con, contact)
connect(contact, metal1)
connect(metal1, via1)
connect(via1, metal2_ncap)
if METAL_LEVEL != '2LM'
connect(metal2_ncap, via2)
connect(via2, metal3_ncap)
if METAL_LEVEL != '3LM'
connect(metal3_ncap, via3)
connect(via3, metal4_ncap)
if METAL_LEVEL != '4LM'
connect(metal4_ncap, via4)
connect(via4, metal5_ncap)
if METAL_LEVEL != '5LM'
connect(metal5_ncap, via5)
connect(via5, metaltop)
end
end
end
end
logger.info('Starting GF180 LVS connectivity setup (Attaching labels)')
# Attaching labels
connect(metal1, metal1_label)
connect(metal2_ncap, metal2_label)
if METAL_LEVEL != '2LM'
connect(metal3_ncap, metal3_label)
if METAL_LEVEL != '3LM'
connect(metal4_ncap, metal4_label)
if METAL_LEVEL != '4LM'
connect(metal5_ncap, metal5_label)
connect(metaltop, metaltop_label) if METAL_LEVEL != '5LM'
end
end
end
logger.info('Starting GF180 LVS connectivity setup (Global)')
# Global
connect_global(sub, substrate_name)
logger.info('Starting GF180 LVS connectivity setup (Multifinger Devices)')
# Multifinger Devices
connect_implicit('*')
#================================
# ----- MOSFET CONNECTIONS ------
#================================
logger.info('Starting LVS MOSFET CONNECTIONS')
connect(psd_dw, contact)
#================================
# ------ BJT CONNECTIONS --------
#================================
logger.info('Starting LVS BJT CONNECTIONS')
# ========================================
# ---- VNPN (isolated collector) (5V) ----
# ========================================
# vnpn_5x5 nodes connections
connect(npn_05p00x05p00_e, contact)
connect(npn_05p00x05p00_b, contact)
connect(npn_05p00x05p00_c, contact)
# vnpn_0p54x16 nodes connections
connect(npn_00p54x16p00_e, contact)
connect(npn_00p54x16p00_b, contact)
connect(npn_00p54x16p00_c, contact)
# vnpn_0p54x8 nodes connections
connect(npn_00p54x08p00_e, contact)
connect(npn_00p54x08p00_b, contact)
connect(npn_00p54x08p00_c, contact)
# vnpn_0p54x2 nodes connections
connect(npn_00p54x02p00_e, contact)
connect(npn_00p54x02p00_b, contact)
connect(npn_00p54x02p00_c, contact)
# ===========================================
# ---- VNPN (isolated collector) (3.3V) ----
# ===========================================
# vnpn_5x5_3p3 nodes connections
connect(npn_05p00x05p00_e_3p3, contact)
connect(npn_05p00x05p00_b_3p3, contact)
connect(npn_05p00x05p00_c_3p3, contact)
# vnpn_0p54x16_3p3 nodes connections
connect(npn_00p54x16p00_e_3p3, contact)
connect(npn_00p54x16p00_b_3p3, contact)
connect(npn_00p54x16p00_c_3p3, contact)
# vnpn_0p54x8_3p3 nodes connections
connect(npn_00p54x08p00_e_3p3, contact)
connect(npn_00p54x08p00_b_3p3, contact)
connect(npn_00p54x08p00_c_3p3, contact)
# vnpn_0p54x2_3p3 nodes connections
connect(npn_00p54x02p00_e_3p3, contact)
connect(npn_00p54x02p00_b_3p3, contact)
connect(npn_00p54x02p00_c_3p3, contact)
# ========================================
# ---- VPNP (Psub as collector) (6V) ----
# ========================================
# vpnp_6p0_10x10 nodes connections
connect(pnp_10p00x10p00_e, contact)
connect(pnp_10p00x10p00_b, contact)
connect(pnp_10p00x10p00_c, contact)
# vpnp_6p0_5x5 nodes connections
connect(pnp_05p00x05p00_e, contact)
connect(pnp_05p00x05p00_b, contact)
connect(pnp_05p00x05p00_c, contact)
# vpnp_6p0_0p42x20 nodes connections
connect(pnp_00p42x20p00_e, contact)
connect(pnp_00p42x20p00_b, contact)
connect(pnp_00p42x20p00_c, contact)
# vpnp_6p0_0p42x10 nodes connections
connect(pnp_00p42x10p00_e, contact)
connect(pnp_00p42x10p00_b, contact)
connect(pnp_00p42x10p00_c, contact)
# vpnp_6p0_0p42x5 nodes connections
connect(pnp_00p42x05p00_e, contact)
connect(pnp_00p42x05p00_b, contact)
connect(pnp_00p42x05p00_c, contact)
#================================
# ----- DIODE CONNECTIONS -------
#================================
logger.info('Starting LVS DIODE CONNECTIONS')
#================================
# ---- LV DIODE DERIVATIONS ----
#================================
# diode_np_1p8
connect(diode_np_1p8_terminal_n, contact)
# diode_np_1p8_dw
connect(diode_np_1p8_dw_terminal_n, contact)
# diode_pn_1p8
connect(diode_pn_1p8_terminal_p, contact)
# diode_pn_1p8_dw
connect(diode_pn_1p8_dw_terminal_p, contact)
#================================
# ---- MV DIODE DERIVATIONS ----
#================================
# diode_np_3p3
connect(diode_np_3p3_terminal_n, contact)
# diode_pn_3p3
connect(diode_pn_3p3_terminal_p, contact)
# diode_np_3p3_dw
connect(diode_np_3p3_dw_terminal_n, contact)
# diode_pn_3p3_dw
connect(diode_pn_3p3_dw_terminal_p, contact)
# diode_np_6p0
connect(diode_np_6p0_terminal_n, contact)
# diode_pn_6p0
connect(diode_pn_6p0_terminal_p, contact)
# diode_np_6p0_dw
connect(diode_np_6p0_dw_terminal_n, contact)
# diode_pn_6p0_dw
connect(diode_pn_6p0_dw_terminal_p, contact)
# diode_nwp_6p0
connect(diode_nwp_6p0_terminal_n, nwell)
connect(diode_nwp_6p0_terminal_p, contact)
# diode_dnwpw
connect(diode_dnwpw_terminal_p, contact)
# diode_dnwps
connect(diode_dnwps_terminal_p, contact)
#================================
# ---- RESISTOR CONNECTIONS -----
#================================
logger.info('Starting LVS RESISTOR CONNECTIONS')
connect(nplus_cont, contact)
connect(pplus_cont, contact)
connect(pplus_dw_cont, contact)
#================================
# ---- Varactor CONNECTIONS -----
#================================
connect(pn_varactor_1p8_tp ,contact)
connect(pn_varactor_1p8_dw_tp ,contact)
connect(pn_varactor_6p0_tp ,contact)
connect(pn_varactor_6p0_dw_tp ,contact)