take account of multi outputs cell as FullAdder to compute weight
This commit is contained in:
parent
f2e151842e
commit
4e0140d9ff
|
@ -70,7 +70,7 @@ def GetRealModel ( model ) :
|
||||||
|
|
||||||
return myP._realCell[model], myP._inOut[model]
|
return myP._realCell[model], myP._inOut[model]
|
||||||
|
|
||||||
def GetWeightTime ( model ) :
|
def GetWeightTime ( model, value=None ) :
|
||||||
myP = WeightParser()
|
myP = WeightParser()
|
||||||
|
|
||||||
if 'STRATUS_MAPPING_NAME' in os.environ :
|
if 'STRATUS_MAPPING_NAME' in os.environ :
|
||||||
|
@ -79,7 +79,13 @@ def GetWeightTime ( model ) :
|
||||||
err = "\n[Stratus ERROR] Virtual library : No file found in order to parse.\nCheck STRATUS_MAPPING_NAME.\n"
|
err = "\n[Stratus ERROR] Virtual library : No file found in order to parse.\nCheck STRATUS_MAPPING_NAME.\n"
|
||||||
raise Exception ( err )
|
raise Exception ( err )
|
||||||
|
|
||||||
|
if value == None :
|
||||||
|
if type(myP._weightTime[model]) == dict:
|
||||||
|
return myP._weightTime[model]['time']
|
||||||
|
else :
|
||||||
return myP._weightTime[model]
|
return myP._weightTime[model]
|
||||||
|
else:
|
||||||
|
return myP._weightTime[model][value]
|
||||||
|
|
||||||
def GetWeightArea ( model ) :
|
def GetWeightArea ( model ) :
|
||||||
myP = WeightParser()
|
myP = WeightParser()
|
||||||
|
|
Loading…
Reference in New Issue