take account of multi outputs cell as FullAdder to compute weight

This commit is contained in:
Roselyne Chotin 2012-08-09 16:34:55 +00:00
parent f2e151842e
commit 4e0140d9ff
1 changed files with 9 additions and 3 deletions

View File

@ -70,7 +70,7 @@ def GetRealModel ( model ) :
return myP._realCell[model], myP._inOut[model]
def GetWeightTime ( model ) :
def GetWeightTime ( model, value=None ) :
myP = WeightParser()
if 'STRATUS_MAPPING_NAME' in os.environ :
@ -78,8 +78,14 @@ def GetWeightTime ( model ) :
else :
err = "\n[Stratus ERROR] Virtual library : No file found in order to parse.\nCheck STRATUS_MAPPING_NAME.\n"
raise Exception ( err )
return myP._weightTime[model]
if value == None :
if type(myP._weightTime[model]) == dict:
return myP._weightTime[model]['time']
else :
return myP._weightTime[model]
else:
return myP._weightTime[model][value]
def GetWeightArea ( model ) :
myP = WeightParser()