From 2e7206343eed18f6dc17f0db005c539b2cd680d1 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sun, 27 Nov 2022 13:11:10 -0800 Subject: [PATCH] Remove unnecessary imports --- compiler/base/geometry.py | 2 -- compiler/base/hierarchy_layout.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/compiler/base/geometry.py b/compiler/base/geometry.py index 7114d5ae..7be1bf8c 100644 --- a/compiler/base/geometry.py +++ b/compiler/base/geometry.py @@ -249,7 +249,6 @@ class instance(geometry): """ Return an absolute pin that is offset and transformed based on this instance location. Index will return one of several pins.""" - import copy if index == -1: pin = copy.deepcopy(self.mod.get_pin(name)) pin.transform(self.offset, self.mirror, self.rotate) @@ -267,7 +266,6 @@ class instance(geometry): """ Return an absolute pin that is offset and transformed based on this instance location. """ - import copy pin = copy.deepcopy(self.mod.get_pins(name)) new_pins = [] diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index 0ec24657..94576986 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -1253,7 +1253,6 @@ class layout(): def add_via(self, layers, offset, size=[1, 1], directions=None, implant_type=None, well_type=None): """ Add a three layer via structure. """ - from openram.sram_factory import factory via = factory.create(module_type="contact", layer_stack=layers, dimensions=size, @@ -1272,7 +1271,6 @@ class layout(): Add a three layer via structure by the center coordinate accounting for mirroring and rotation. """ - from openram.sram_factory import factory via = factory.create(module_type="contact", layer_stack=layers, dimensions=size, @@ -2176,7 +2174,6 @@ class layout(): # Find the number of vias for this pitch supply_vias = 1 - from openram.sram_factory import factory while True: c = factory.create(module_type="contact", layer_stack=self.m1_stack, @@ -2289,7 +2286,6 @@ class layout(): # Find the number of vias for this pitch self.supply_vias = 1 - from openram.sram_factory import factory while True: c = factory.create(module_type="contact", layer_stack=self.m1_stack,