images/foss-asic-tools/addons/sak/klayout/erase.rb
# Locate a layer for input.
# The layer is specified by a RBA::LayerInfo object which identifies the layer by 
# a layer and datatype for example. If the layer does not exist, it is created.
# This method returns a layer index which can be used as input for other functions.
Locate a layer for input.
The layer is specified by a RBA::LayerInfo object which identifies the layer by
a layer and datatype for example. If the layer does not exist, it is created.
This method returns a layer index which can be used as input for other functions.
Locate a layer for input . The layer is specified by a RBA :: LayerInfo object which identifies the layer by a layer and datatype for example . If the layer does not exist it is created . This method returns a layer index which can be used as input for other functions .
def input(lp)
      layer_index = nil
      (0..(@layout.layers-1)).each do |i|
        if @layout.is_valid_layer?(i) && @layout.get_info(i).is_equivalent?(lp)
          layer_index = i
          break
        end
      end
      return layer_index || @layout.insert_layer(lp)
    end
def input ( lp ) layer_index = nil ( 0 .. ( @layout . layers - 1 ) ) . each do | i | if @layout . is_valid_layer? ( i ) && @layout . get_info ( i ) . is_equivalent? ( lp ) layer_index = i break end end return layer_index || @layout . insert_layer ( lp ) end
Locate a layer for input.
Locate a layer for input .
# locate the layer if it already exists # create a new layer if it does not exist
lp
<not_specific>