mirror of https://github.com/VLSIDA/OpenRAM.git
Save LVS model with no u too for Calibre
This commit is contained in:
parent
dff28a9997
commit
f973dd6a5c
|
|
@ -127,12 +127,12 @@ class ptx(design.design):
|
||||||
area_sd = 2.5 * self.poly_width * self.tx_width
|
area_sd = 2.5 * self.poly_width * self.tx_width
|
||||||
perimeter_sd = 2 * self.poly_width + 2 * self.tx_width
|
perimeter_sd = 2 * self.poly_width + 2 * self.tx_width
|
||||||
if OPTS.tech_name == "s8":
|
if OPTS.tech_name == "s8":
|
||||||
# s8 technology is in microns
|
# s8 technology is in microns, also needs mult parameter
|
||||||
(self.tx_width, self.mults) = pgate.bin_width(self.tx_type, self.tx_width)
|
(self.tx_width, self.mults) = pgate.bin_width(self.tx_type, self.tx_width)
|
||||||
main_str = "M{{0}} {{1}} {0} m={1} w={2} l={3} ".format(spice[self.tx_type],
|
main_str = "M{{0}} {{1}} {0} m={1} w={2} l={3}".format(spice[self.tx_type],
|
||||||
self.mults,
|
self.mults,
|
||||||
self.tx_width,
|
self.tx_width,
|
||||||
drc("minwidth_poly"))
|
drc("minwidth_poly"))
|
||||||
# Perimeters are in microns
|
# Perimeters are in microns
|
||||||
# Area is in u since it is microns square
|
# Area is in u since it is microns square
|
||||||
area_str = "pd={0:.2f} ps={0:.2f} as={1:.2f}u ad={1:.2f}u".format(perimeter_sd,
|
area_str = "pd={0:.2f} ps={0:.2f} as={1:.2f}u ad={1:.2f}u".format(perimeter_sd,
|
||||||
|
|
@ -149,11 +149,17 @@ class ptx(design.design):
|
||||||
|
|
||||||
# LVS lib is always in SI units
|
# LVS lib is always in SI units
|
||||||
if os.path.exists(OPTS.openram_tech + "lvs_lib"):
|
if os.path.exists(OPTS.openram_tech + "lvs_lib"):
|
||||||
self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2}u l={3}u ".format(spice[self.tx_type],
|
if OPTS.tech_name == "s8":
|
||||||
self.mults,
|
# s8 requires mult parameter too
|
||||||
self.tx_width,
|
self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2} l={3} mult={1}".format(spice[self.tx_type],
|
||||||
drc("minwidth_poly"))
|
self.mults,
|
||||||
|
self.tx_width,
|
||||||
|
drc("minwidth_poly"))
|
||||||
|
else:
|
||||||
|
self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2}u l={3}u ".format(spice[self.tx_type],
|
||||||
|
self.mults,
|
||||||
|
self.tx_width,
|
||||||
|
drc("minwidth_poly"))
|
||||||
|
|
||||||
def setup_layout_constants(self):
|
def setup_layout_constants(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue