Skip to content

Commit

Permalink
Updating rule deck tolerance value to be 1.dbu
Browse files Browse the repository at this point in the history
  • Loading branch information
FaragElsayed2 committed Apr 5, 2023
1 parent 70b2f2c commit ea42cf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions klayout/drc/rule_decks/pres.drc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if FEOL

# Rule PRES.3: Minimum space from Poly2 resistor to COMP is 0.6.um.
logger.info('Executing rule PRES.3')
pres3_l1 = pres_poly.separation(comp, 0.6.um, euclidian).polygons(0.001.um)
pres3_l1 = pres_poly.separation(comp, 0.6.um, euclidian).polygons(1.dbu)
pres3_l2 = comp.not_outside(pres_poly)
pres3_l = pres3_l1.or(pres3_l2)
pres3_l.output('PRES.3', 'PRES.3 : Minimum space from Poly2 resistor to COMP: 0.6.um')
Expand All @@ -54,7 +54,7 @@ if FEOL

# Rule PRES.5: Minimum Plus implant overlap of Poly2 resistor is 0.3µm.
logger.info('Executing rule PRES.5')
pres5_l1 = pres_poly.enclosed(pplus, 0.3.um, euclidian).polygons(0.001.um)
pres5_l1 = pres_poly.enclosed(pplus, 0.3.um, euclidian).polygons(1.dbu)
pres5_l2 = pres_poly.not_outside(pplus).not(pplus)
pres5_l = pres5_l1.or(pres5_l2)
pres5_l.output('PRES.5', 'PRES.5 : Minimum Plus implant overlap of Poly2 resistor: 0.3µm')
Expand All @@ -70,7 +70,7 @@ if FEOL

# Rule PRES.7: Minimum space from salicide block to contact on Poly2 resistor is 0.22.um.
logger.info('Executing rule PRES.7')
pres7_l1 = contact.and(pres_poly).separation(sab, 0.22.um).polygons(0.001.um)
pres7_l1 = contact.and(pres_poly).separation(sab, 0.22.um).polygons(1.dbu)
pres7_l2 = contact.and(pres_poly).interacting(sab)
pres7_l = pres7_l1.or(pres7_l2)
pres7_l.output('PRES.7', 'PRES.7 : Minimum space from salicide block to contact on Poly2 resistor: 0.22.um')
Expand All @@ -97,7 +97,7 @@ if FEOL
## and both side (X and Y) are greater than 80um.
## then the minimum spacing to adjacent RES_MK layer is 20µm.
logger.info('Executing rule PRES.9b')
pres9b = res_mk.with_area(15_000.001.um, nil).edges.with_length(80.001.um, nil)
pres9b = res_mk.with_area(15_000.um + 1.dbu, nil).edges.with_length(80.um + 1.dbu, nil)
pres9b_l1 = pres9b.separation(res_mk.edges, 20.um)
pres9b_l1.output('PRES.9b',
'PRES.9b : If the size of single RES_MK mark layer is greater than 15000um2
Expand Down

0 comments on commit ea42cf5

Please sign in to comment.