Add exception for sky130 klayout LVS device output

This commit is contained in:
mrg 2021-12-17 10:28:12 -08:00
parent d555e67fb1
commit 82a1a8d87f
1 changed files with 12 additions and 7 deletions

View File

@ -161,8 +161,13 @@ class ptx(design.design):
self.mults, self.mults,
self.tx_width, self.tx_width,
drc("minwidth_poly")) drc("minwidth_poly"))
elif OPTS.lvs_exe and OPTS.lvs_exe[0] == "klayout":
self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2} l={3}".format(spice[self.tx_type],
self.mults,
self.tx_width,
drc("minwidth_poly"))
elif cell_props.ptx.model_is_subckt: elif cell_props.ptx.model_is_subckt:
# sky130 requires mult parameter too
self.lvs_device = "X{{0}} {{1}} {0} m={1} w={2}u l={3}u".format(spice[self.tx_type], self.lvs_device = "X{{0}} {{1}} {0} m={1} w={2}u l={3}u".format(spice[self.tx_type],
self.mults, self.mults,
self.tx_width, self.tx_width,