blob: fecd08249755826cd81a02874a55ae81bbf8054a [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.
################################################################################################
#================================
# ---- RESISTOR DERIVATIONS -----
#================================
logger.info('Starting RESISTOR DERIVATIONS')
res_exclude = esd.join(fusewindow_d).join(dni)
.join(pwhv).join(piscap).join(zener)
.join(v5_xtor).join(fhres).join(polyfuse)
.join(diode_mk).join(drc_bjt).join(nat)
.join(mos_cap_mk).join(esd_mk).join(lvs_source)
.join(efuse_mk).join(plfuse).join(mvsd)
.join(mvpsd).join(ldmos_xtor).join(schottky_diode)
.join(elmd_mk).join(elmd2_mk).join(lvs_rf)
.join(hvnddd).join(hvpddd).join(hvpolyrs)
# ==============
# ---- POLY ----
# ==============
# POLY
poly_exclude = comp.join(res_exclude).join(resistor)
# PPOLY
ppoly_exclude = poly_exclude.join(nplus)
ppolyf_res = pplus.and(poly2).and(res_mk).not(ppoly_exclude)
## PPOLYF_U
ppolyf_u_layer = ppolyf_res.and(sab).not(dnwell)
## PPOLYF_U_DW
ppolyf_u_dw_layer = ppolyf_res.and(sab).and(dnwell)
## PPOLYF_S
ppolyf_s_layer = ppolyf_res.not(dnwell).not_interacting(sab)
## PPOLYF_S_DW
ppolyf_s_dw_layer = ppolyf_res.and(dnwell).not_interacting(sab)