take account of multi outputs cell as FullAdder to compute weight

This commit is contained in:
Roselyne Chotin 2012-08-09 16:33:48 +00:00
parent a5bfc0e816
commit f2e151842e
1 changed files with 12 additions and 2 deletions

View File

@ -200,8 +200,18 @@ class WeightParser :
# print 'Warning: no weight done in the file, weight put to 1.'
temp = 1
self._weightTime[virtName] = temp
#self._weightTime[virtName][0] = temp
# multi output cells as halfadder and fulladder
if 'time2' in attrs :
self._weightTime[virtName] = {}
self._weightTime[virtName]['time'] = temp
temp = float(attrs['time2'])
self._weightTime[virtName]['time2'] = temp
else :
self._weightTime[virtName] = temp
if 'area' in attrs :
temp = float(attrs['area'])
else :