Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs.tech: Fix klayout extraction of diodes #225

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ antenna_d_exc = pwell_block.join(salblock_drw)
antenna_d_mk = recog_diode.not(antenna_d_exc)

# ==== dantenna diode ====
dantenna_n = activ.and(antenna_d_mk).not(psd_drw).not(nwell_drw)
dantenna_p = pwell.and(antenna_d_mk).covering(dantenna_n)
dantenna_n = antenna_d_mk.and(activ).not(psd_drw).not(nwell_drw)
dantenna_p = antenna_d_mk.and(pwell).covering(dantenna_n)

# ==== dpantenna diode ====
dpantenna_p = pactiv.and(antenna_d_mk)
dpantenna_n = nwell_drw.covering(dpantenna_p)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergeiandreyev @smunaut I don't agree with that change.

dpantenna_p = antenna_d_mk.and(pactiv)
dpantenna_n = dpantenna_p.inside(nwell_drw)

# ==== schottky_nbl1 diode ====
schottky_mk = recog_diode.and(thickgateox_drw).not(diode_exclude)
Expand Down
8 changes: 4 additions & 4 deletions ihp-sg13g2/libs.tech/klayout/tech/lvs/sg13g2_full.lylvs
Original file line number Diff line number Diff line change
Expand Up @@ -3531,12 +3531,12 @@ antenna_d_exc = pwell_block.join(salblock_drw)
antenna_d_mk = recog_diode.not(antenna_d_exc)

# ==== dantenna diode ====
dantenna_n = activ.and(antenna_d_mk).not(psd_drw).not(nwell_drw)
dantenna_p = pwell.and(antenna_d_mk).covering(dantenna_n)
dantenna_n = antenna_d_mk.and(activ).not(psd_drw).not(nwell_drw)
dantenna_p = antenna_d_mk.and(pwell).covering(dantenna_n)

# ==== dpantenna diode ====
dpantenna_p = pactiv.and(antenna_d_mk)
dpantenna_n = nwell_drw.covering(dpantenna_p)
dpantenna_p = antenna_d_mk.and(pactiv)
dpantenna_n = dpantenna_p.inside(nwell_drw)

# ==== schottky_nbl1 diode ====
schottky_mk = recog_diode.and(thickgateox_drw).not(diode_exclude)
Expand Down
Loading