From 92df3ecf338f92506e4d807fe668f3dc3cba5f8b Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 4 Aug 2017 14:24:55 -0700 Subject: [PATCH] Replace periods in unique ptx names with an underscore. Fixes user bug with certain spice simulators. --- compiler/ptx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/ptx.py b/compiler/ptx.py index 95609bb3..6cf294ae 100644 --- a/compiler/ptx.py +++ b/compiler/ptx.py @@ -3,6 +3,7 @@ import debug from tech import drc, info, spice from vector import vector from contact import contact +import re class ptx(design.design): """ @@ -11,6 +12,8 @@ class ptx(design.design): """ def __init__(self, width=1, mults=1, tx_type="nmos"): name = "{0}_m{1}_w{2}".format(tx_type, mults, width) + # remove periods for newer spice compatibility + name=re.sub('\.','_',name) design.design.__init__(self, name) debug.info(3, "create ptx structure {0}".format(name))