Add area parameter to createBL() helper function.
This parameter allows to specify the minimum area for a layer.
This commit is contained in:
parent
13726d648b
commit
775a169e82
|
@ -43,7 +43,7 @@ def safeGetLibrary ( frameworkName, libName ):
|
||||||
return lib
|
return lib
|
||||||
|
|
||||||
|
|
||||||
def createBL ( tech, layerName, material, size=None, spacing=None, gds2Layer=None, gds2DataType=0 ):
|
def createBL ( tech, layerName, material, size=None, spacing=None, gds2Layer=None, gds2DataType=0, area=None ):
|
||||||
"""
|
"""
|
||||||
Create a new BasicLayer. Parameters ``tech``, ``layerName`` and ``material``
|
Create a new BasicLayer. Parameters ``tech``, ``layerName`` and ``material``
|
||||||
are mandatory.
|
are mandatory.
|
||||||
|
@ -55,6 +55,7 @@ def createBL ( tech, layerName, material, size=None, spacing=None, gds2Layer=Non
|
||||||
:param spacing: The minimal distance, edge to edge between two wires.
|
:param spacing: The minimal distance, edge to edge between two wires.
|
||||||
:param gds2layer: The GDSII layer number (for the GDSII driver).
|
:param gds2layer: The GDSII layer number (for the GDSII driver).
|
||||||
:param gds2DataType: The GDSII DataType (i.e purpose).
|
:param gds2DataType: The GDSII DataType (i.e purpose).
|
||||||
|
:param area: The minimum area (in um2)
|
||||||
"""
|
"""
|
||||||
layer = BasicLayer.create( tech, layerName, BasicLayer.Material(material) )
|
layer = BasicLayer.create( tech, layerName, BasicLayer.Material(material) )
|
||||||
if size is not None:
|
if size is not None:
|
||||||
|
@ -64,6 +65,8 @@ def createBL ( tech, layerName, material, size=None, spacing=None, gds2Layer=Non
|
||||||
if gds2Layer is not None:
|
if gds2Layer is not None:
|
||||||
layer.setGds2Layer ( gds2Layer )
|
layer.setGds2Layer ( gds2Layer )
|
||||||
layer.setGds2Datatype( gds2DataType )
|
layer.setGds2Datatype( gds2DataType )
|
||||||
|
if area is not None:
|
||||||
|
layer.setMinimalArea( area )
|
||||||
return layer
|
return layer
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue