Is there a way to limit the number of results produced by DRC?

edited November 2014 in General
Hi,
I'm looking for a way to limit the number of DRC results, either in a "target" or in "report" concept. The idea is I do not need to see all my violations, I just need to check the existance of certain violations (for further post-processing), and I'm tryingnot to use too much disk space...
I'm running the DRC in bathch mode.

Thanks,
Yulia

Comments

  • edited November -1

    Hi Yulia,

    there is no immediate way, but you can script something:

    report("My DRC")
    
    # inject a new method into the layer class:
    # layer.limit(n) will reduce the number of elements
    # in the data to a maximum of n
    class DRC::DRCLayer
      def limit(n)
        d = @data
        @data = d.class.new
        d.each do |x|
          if n <= 0
            break
          end
          n -= 1
          @data.insert(x)
        end
      end
    end
    
    # A sample runset using that feature
    via = input(13)
    
    spc = via.space(0.3)
    spc.limit(10)
    spc.output("via spacing")
    

    The lines between class .. end basically extend the DRC layer object with a new function that reduces the data to the given number of elements.

    However, the full data will always be computed - so you save disk space, but not processing time.

    Matthias

  • Then, is there a way to stop the DRC when a certain number of violations is reached ?

    Laurent

Sign In or Register to comment.