In stratus.py, buildModel was always saving logical & physical.
This commit is contained in:
parent
9872896538
commit
0498ade143
|
@ -69,7 +69,8 @@ except Exception, e:
|
||||||
|
|
||||||
DoNetlist = 0x0001
|
DoNetlist = 0x0001
|
||||||
DoLayout = 0x0002
|
DoLayout = 0x0002
|
||||||
DoStop = 0x0004
|
DoPattern = 0x0004
|
||||||
|
DoStop = 0x0008
|
||||||
|
|
||||||
|
|
||||||
def buildModel ( moduleName, flags, className=None, modelName=None, parameters={} ):
|
def buildModel ( moduleName, flags, className=None, modelName=None, parameters={} ):
|
||||||
|
@ -88,13 +89,15 @@ def buildModel ( moduleName, flags, className=None, modelName=None, parameters={
|
||||||
model = module.__dict__[className](modelName,parameters)
|
model = module.__dict__[className](modelName,parameters)
|
||||||
model.Interface()
|
model.Interface()
|
||||||
|
|
||||||
if flags & DoNetlist: model.Netlist()
|
saveFlags = 0
|
||||||
if flags & DoLayout: model.Layout ()
|
if flags & DoNetlist: model.Netlist(); saveFlags |= LOGICAL
|
||||||
|
if flags & DoLayout: model.Layout (); saveFlags |= PHYSICAL
|
||||||
|
if flags & DoPattern: model.Pattern()
|
||||||
|
|
||||||
stopLevel=0
|
stopLevel=0
|
||||||
if flags & DoStop: stopLevel = 1
|
if flags & DoStop: stopLevel = 1
|
||||||
model.View(stopLevel, 'Model %s' % modelName)
|
model.View(stopLevel, 'Model %s' % modelName)
|
||||||
model.Save(LOGICAL|PHYSICAL)
|
model.Save(saveFlags)
|
||||||
UpdateSession.close()
|
UpdateSession.close()
|
||||||
|
|
||||||
except ImportError, e:
|
except ImportError, e:
|
||||||
|
|
Loading…
Reference in New Issue