Replace periods in unique ptx names with an underscore. Fixes user bug with certain spice simulators.

This commit is contained in:
Matt Guthaus 2017-08-04 14:24:55 -07:00
parent 7c34a6404a
commit 92df3ecf33
1 changed files with 3 additions and 0 deletions

View File

@ -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))