Remove unnecessary imports

This commit is contained in:
Eren Dogan 2022-11-27 13:11:10 -08:00
parent fccdc3c45b
commit 2e7206343e
2 changed files with 0 additions and 6 deletions

View File

@ -249,7 +249,6 @@ class instance(geometry):
""" Return an absolute pin that is offset and transformed based on """ Return an absolute pin that is offset and transformed based on
this instance location. Index will return one of several pins.""" this instance location. Index will return one of several pins."""
import copy
if index == -1: if index == -1:
pin = copy.deepcopy(self.mod.get_pin(name)) pin = copy.deepcopy(self.mod.get_pin(name))
pin.transform(self.offset, self.mirror, self.rotate) 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 """ Return an absolute pin that is offset and transformed based on
this instance location. """ this instance location. """
import copy
pin = copy.deepcopy(self.mod.get_pins(name)) pin = copy.deepcopy(self.mod.get_pins(name))
new_pins = [] new_pins = []

View File

@ -1253,7 +1253,6 @@ class layout():
def add_via(self, layers, offset, size=[1, 1], directions=None, implant_type=None, well_type=None): def add_via(self, layers, offset, size=[1, 1], directions=None, implant_type=None, well_type=None):
""" Add a three layer via structure. """ """ Add a three layer via structure. """
from openram.sram_factory import factory
via = factory.create(module_type="contact", via = factory.create(module_type="contact",
layer_stack=layers, layer_stack=layers,
dimensions=size, dimensions=size,
@ -1272,7 +1271,6 @@ class layout():
Add a three layer via structure by the center coordinate Add a three layer via structure by the center coordinate
accounting for mirroring and rotation. accounting for mirroring and rotation.
""" """
from openram.sram_factory import factory
via = factory.create(module_type="contact", via = factory.create(module_type="contact",
layer_stack=layers, layer_stack=layers,
dimensions=size, dimensions=size,
@ -2176,7 +2174,6 @@ class layout():
# Find the number of vias for this pitch # Find the number of vias for this pitch
supply_vias = 1 supply_vias = 1
from openram.sram_factory import factory
while True: while True:
c = factory.create(module_type="contact", c = factory.create(module_type="contact",
layer_stack=self.m1_stack, layer_stack=self.m1_stack,
@ -2289,7 +2286,6 @@ class layout():
# Find the number of vias for this pitch # Find the number of vias for this pitch
self.supply_vias = 1 self.supply_vias = 1
from openram.sram_factory import factory
while True: while True:
c = factory.create(module_type="contact", c = factory.create(module_type="contact",
layer_stack=self.m1_stack, layer_stack=self.m1_stack,