From ccc376f1323f46cefa30575e57a78de4a863f93e Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 16 Oct 2020 11:26:58 +0200 Subject: [PATCH] In cumulus/block/timings.py, filter non-available cells. --- cumulus/src/plugins/alpha/block/timing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cumulus/src/plugins/alpha/block/timing.py b/cumulus/src/plugins/alpha/block/timing.py index e7365dc9..2fe35933 100644 --- a/cumulus/src/plugins/alpha/block/timing.py +++ b/cumulus/src/plugins/alpha/block/timing.py @@ -119,7 +119,6 @@ class TechTimings ( object ): # Module static initialization tech = None - cellsTimingsDatas = ( ('inv_x1', 1.0) , ('inv_x2', 1.6) , ('inv_x4', 3.6) @@ -138,7 +137,6 @@ def staticInit (): Capacitance unit is fF (femto Farad). """ global tech - if tech is not None: return af = CRL.AllianceFramework.get() @@ -148,6 +146,10 @@ def staticInit (): tech.capaPerLambda = 0.3 for cellName, drive in cellsTimingsDatas: cell = af.getCell( cellName, CRL.Catalog.State.Views ) + if not cell: + print( WarningMessage('timing.staticInit(): Library do not provides "{}", skipped.' \ + .format(cellName)) ) + continue cellTiming = CellTimings( cell ) cellTiming.drive = drive*tech.capaBaseDrive tech.addCell( cellTiming )