From 90cf382a4398c71932c95a3aa5ecf6eda4fd4699 Mon Sep 17 00:00:00 2001 From: Jacob Walker Date: Wed, 1 Mar 2023 14:21:29 -0800 Subject: [PATCH] removed hardcoded DRC rule --- compiler/modules/rom_poly_tap.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/compiler/modules/rom_poly_tap.py b/compiler/modules/rom_poly_tap.py index d7a1b3b2..7176b9e9 100644 --- a/compiler/modules/rom_poly_tap.py +++ b/compiler/modules/rom_poly_tap.py @@ -52,20 +52,15 @@ class rom_poly_tap(design): # DRC rule here is hard coded since licon.9 isnt included in skywater130 tech file # poly contact spacing to P-diffusion < 0.235um (licon.9 + psdm.5a) - if OPTS.tech_name == "sky130": - self.contact_x_offset = 0.235 - (contact_width - self.pmos.contact_width) * 0.5 - self.poly_extend_active - else: - assert(False) + # if OPTS.tech_name == "sky130": + # self.contact_x_offset = 0.235 - (contact_width - self.pmos.contact_width) * 0.5 - self.poly_extend_active + # else: + # assert(False) contact_y = self.dummy.cell_inst.width * 0.5 - 0.5 * self.contact_width - self.active_enclose_contact - if self.tx_type == "nmos": + self.contact_x_offset = 0 - # contact_y = self.dummy.cell_inst.width * 0.5 - 0.5 * self.contact_width - self.active_enclose_contact - # contact_y = self.dummy.poly.offset.x + (self.poly_width * 0.5) - self.contact_x_offset = 0 - # else: - # contact_y = self.pmos.poly_positions[0].x - self.pmos.active_offset.x contact_x = contact_width * 0.5 + self.contact_x_offset self.contact_offset = vector(contact_x, contact_y)