blob: ee1aa1f02ea676f95afa4db057d97ac484881b09 [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.
################################################################################################
#================================
# ----- 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)
if METAL_LEVEL != '2LM'
connect(metal2, via2_ncap)
connect(via2_ncap, metal3)
connect(via2_cap, fusetop)
if METAL_LEVEL != '3LM'
connect(metal3, via3_ncap)
connect(via3_ncap, metal4)
connect(via3_cap, fusetop)
if METAL_LEVEL != '4LM'
connect(metal4, via4_ncap)
connect(via4_ncap, metal5)
connect(via4_cap, fusetop)
if METAL_LEVEL != '5LM'
connect(metal5, via5_ncap)
connect(via5_ncap, metaltop)
connect(via5_cap, fusetop)
end
end
end
end
logger.info('Starting GF180 LVS connectivity setup (Attaching labels)')
# Attaching labels
connect(metal1, metal1_label)
connect(metal2, metal2_label)
if METAL_LEVEL != '2LM'
connect(metal3, metal3_label)
if METAL_LEVEL != '3LM'
connect(metal4, metal4_label)
if METAL_LEVEL != '4LM'
connect(metal5, 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('*')