images/foss-asic-tools/addons/sak/klayout/erase.rb
# Assign a layer as output.
# Change the layer given by the layer index to the output layer specified
# by a RBA::LayerInfo object. If the layer already exists, it is deleted.
Assign a layer as output.
Change the layer given by the layer index to the output layer specified
by a RBA::LayerInfo object. If the layer already exists, it is deleted.
Assign a layer as output . Change the layer given by the layer index to the output layer specified by a RBA :: LayerInfo object . If the layer already exists it is deleted .
def output(lp, layer_index)
      li = nil
      (0..(@layout.layers-1)).each do |i|
        if @layout.is_valid_layer?(i) && @layout.get_info(i).is_equivalent?(lp)
          li = i
          break
        end
      end
      if li != layer_index
        if li
          @layout.delete_layer(li)
        end
        @layout.set_info(layer_index, lp)
      end
      new_temp = []
      @temp_layers.each do |i|
        if i != layer_index
          new_temp.push(i)
        end
      end
      @temp_layers = new_temp
    end
def output ( lp , layer_index ) li = nil ( 0 .. ( @layout . layers - 1 ) ) . each do | i | if @layout . is_valid_layer? ( i ) && @layout . get_info ( i ) . is_equivalent? ( lp ) li = i break end end if li != layer_index if li @layout . delete_layer ( li ) end @layout . set_info ( layer_index , lp ) end new_temp = [ ] @temp_layers . each do | i | if i != layer_index new_temp . push ( i ) end end @temp_layers = new_temp end
Assign a layer as output.
Assign a layer as output .
# locate the layer if it already exists # clear the layer if it already exists # remove the layer from the list of temporary layers
lp
<not_specific>
layer_index
<not_specific>