Glade Reference
The db_Techfile class contains technology related parameters, in particular the layers used in a design. A db_Techfile object does not normally need to be created as creating a library will initialise a techfile associated with that library. For example:
lib = library("myLib")
tech = lib.tech()
Loads a techfile specified by fileName.
Saves a techfile to fileName.
Layers are signed 16 bit integers and map to layer-purpose pairs. A layer number of -1 signifies an invalid layer.
Returns True if layer is selectable, else returns False.
Sets a layer selectable is sel is nonzero.
Returns True if layer is visible, else returns False.
Sets a layer visible is vis is nonzero.
Returns True if layer is used, else returns False.
Sets a layer used if used is nonzero.
Returns a 32 bit int of the layer color in rgba format.
Sets a layer color. color is a 32 bit integer in rgba format.
Sets a layer's name.
Gets the layer's name.
Sets a layer's purpose.
Gets the layer's purpose.
Gets the layer's layer-purpose pair name e.g. "metal1 drawing".
Sets a layer's GDS number to gdsNum.
Gets a layer's GDS number.
Sets a layer's GDS datatype to gdsNum.
Gets a layer's GDS datatype.
Gets a layer number if one exists with the specified name and purpose. If it does not exist a warning is given unless warn is set to False.
Creates a layer in the techfile with the specified name and purpose. Returns the layer number or -1 if the layer cannot be created.
Sets the layer type. type can be one of T_CUT, T_ROUTING, T_BLOCKAGE, T_PIN, T_OVERLAP, T_MASTERSLICE or T_NONE.
Gets the layer type.
Sets the layer minWidth.
Gets the layer minWidth.
Sets the layer minSpace.
Gets the layer minSpacing.
Sets the layer pitch.
Gets the layer pitch.
Sets the layer routing direction. The routing direction can be LAYER_HORIZONTAL or LAYER_VERTICAL.
Gets the layer routing direction.
Gets the layer routing direction as a string.
Sets the layer resistance.
Gets the layer resistance.
Sets the layer area capacitance.
Gets the layer area capacitance.
Sets the layer edge capacitance.
Gets the layer edge capacitance.
Sets the layer order
Gets the layer order.
Sets the layer linestyle
Gets the layer linestyle.
Sets the layer linewidth
Gets the layer linewidth.
Sets the layer fill pattern. The bit array is 128 bytes when using OpenGL, 32 bytes when not using OpenGL.
Gets the layer fill pattern as an array of bytes; 128 bytes when using OpenGL else 32 bytes.
Gets a fill pattern name for the layer.
Gets the layer fill type. Can be one of F_HOLLOW, F_SOLID, F_CROSSED, F_STIPPLE.
Gets the layer fill type. Can be one of F_HOLLOW, F_SOLID, F_CROSSED, F_STIPPLE.
Gets the current layer as set by the LSW.
Copyright © Peardrop Design 2020.