From b4cab6ec572b8634168f0613cda08b3f298c8d4f Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 1 Dec 2020 15:20:24 -0800 Subject: [PATCH] Change mult to 1 always. --- compiler/pgates/ptx.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/pgates/ptx.py b/compiler/pgates/ptx.py index b697b9a3..05ec75c0 100644 --- a/compiler/pgates/ptx.py +++ b/compiler/pgates/ptx.py @@ -13,7 +13,6 @@ from sram_factory import factory import contact import logical_effort from globals import OPTS -from pgate import pgate from tech import cell_properties as cell_props @@ -151,14 +150,14 @@ class ptx(design.design): self.spice.append("\n* spice ptx " + self.spice_device) if cell_props.ptx.model_is_subckt and OPTS.lvs_exe and OPTS.lvs_exe[0] == "calibre": - # sky130 requires mult parameter too - # self.lvs_device = "X{{0}} {{1}} {0} m={1} w={2} l={3} mult={1}".format(spice[self.tx_type], + # sky130 requires mult parameter too. It is not the same as m, but I don't understand it. + # self.lvs_device = "X{{0}} {{1}} {0} m={1} w={2} l={3} mult=1".format(spice[self.tx_type], # self.mults, # self.tx_width, # drc("minwidth_poly")) # TEMP FIX: Use old device names if using Calibre. - self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2} l={3} mult={1}".format("nshort" if self.tx_type == "nmos" else "pshort", + self.lvs_device = "M{{0}} {{1}} {0} m={1} w={2} l={3} mult=1".format("nshort" if self.tx_type == "nmos" else "pshort", self.mults, self.tx_width, drc("minwidth_poly"))