From 586d80623e2b371adb5cf4aa35a4151f42a9072c Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Mon, 29 Jan 2018 15:25:00 -0800 Subject: [PATCH] Remove level of indirection to ptx devices to allow LVS symmetries. --- compiler/ptx.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/compiler/ptx.py b/compiler/ptx.py index 7cb89474..0e69ce67 100644 --- a/compiler/ptx.py +++ b/compiler/ptx.py @@ -61,15 +61,14 @@ class ptx(design.design): def create_spice(self): self.add_pin_list(["D", "G", "S", "B"]) - self.spice.append("\n.SUBCKT {0} {1}".format(self.name, - " ".join(self.pins))) - self.spice.append("M{0} {1} {2} m={3} w={4}u l={5}u".format(self.tx_type, - " ".join(self.pins), - spice[self.tx_type], - self.mults, - self.tx_width, - drc["minwidth_poly"])) - self.spice.append(".ENDS {0}".format(self.name)) + # self.spice.append("\n.SUBCKT {0} {1}".format(self.name, + # " ".join(self.pins))) + self.spice_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"]) + self.spice.append("\n* ptx " + self.spice_device) + # self.spice.append(".ENDS {0}".format(self.name)) def setup_layout_constants(self): """