Add management of unused layers in cumulus/plugins.block.configuration.

This commit is contained in:
Jean-Paul Chaput 2023-01-07 12:57:23 +01:00
parent d9ebeb4b96
commit 30afe6036b
4 changed files with 7 additions and 4 deletions

View File

@ -318,7 +318,6 @@ def setNdaTopDir ( ndaTopDirArg ):
ndaTopDir = ndaTopDirArg
sys.path.append( os.path.join(ndaTopDir,'etc/coriolis2') )
sys.path.append( ndaTopDir )
return

View File

@ -250,13 +250,14 @@ def staticInitialization ():
if helpers.ndaTopDir:
vprint( 1, ' o Preload NDA protected plugins.' )
pythonDir =os.path.join( helpers.ndaTopDir, 'python{}.{}'.format( sys.version_info.major
pythonDir = os.path.join( helpers.ndaTopDir, 'python{}.{}'.format( sys.version_info.major
, sys.version_info.minor ))
if os.path.isdir(pythonDir):
pluginsDir = os.path.join( pythonDir, 'site-packages/cumulus/plugins' )
loadPlugins( pluginsDir )
else:
vprint( 1, ' - No NDA protected plugins directory.' )
vprint( 1, ' ({}).'.format( pythonDir ))
else:
vprint( 1, ' - No NDA protected plugins.' )
except Exception as e:

View File

@ -166,8 +166,12 @@ class GaugeConf ( object ):
for depth in range(0,self.topLayerDepth+1):
trace( 550, '\tdepth:{} {}\n'.format(depth,self._routingGauge.getLayerGauge(depth) ))
if self._routingGauge.getLayerGauge(depth).getType() == RoutingLayerGauge.Unusable:
continue
if self._routingGauge.getLayerGauge(depth).getType() == RoutingLayerGauge.PinOnly:
continue
if self._routingGauge.getLayerGauge(depth).getType() == RoutingLayerGauge.BottomPowerSupply:
continue
if self._routingGauge.getLayerGauge(depth).getType() == RoutingLayerGauge.PowerSupply:
continue
if self._routingGauge.getLayerGauge(depth).getDirection() == RoutingLayerGauge.Horizontal:

View File

@ -492,7 +492,7 @@ class CoreToChip ( object ):
:param instance: The instance to work on.
:param netO: The signal to connect to, could be either the net *name*
or the net object itself.
:param masterNetO: The master net (interal net) of the plug. Could be either
:param masterNetO: The master net (internal net) of the plug. Could be either
the net *name* or the net object. If not supplied,
``_connect()`` will look for a master net of the same
name as ``netO``
@ -503,7 +503,6 @@ class CoreToChip ( object ):
if not masterNetO: masterNet = instance.getMasterCell().getNet( chipNet.getName() )
elif isinstance(masterNetO,Net): masterNet = masterNetO
else: masterNet = instance.getMasterCell().getNet( masterNetO )
instance.getPlug( masterNet ).setNet( chipNet )
return