DRC for older GDS file format

edited September 2016 in File Formats
Hello,

I wonder if it is possible to script a DRC, which checks a layout for a maximum number of polygons/path vertices. In version 3 of the GDS II file format, these are limited to 200.
I need this DRC for an older software tool, which uses this file format.

I could manage to check by Ruby, but got stuck at the output to the DRC report database.

Thanks,
Oliver

Comments

  • edited November -1

    Hi Oliver

    there is no such DRC rule yet, but you can add one:

    # Include this in your DRC script to add a new check "polygons_with_more_points".
    # This check will create a new layer with all polygons with more than n points.
    class DRC::DRCLayer
      def polygons_with_more_points(n)
        res = []
        self.data.each do |p|
          p.num_points > n && (res << p)
        end
        return DRC::DRCLayer::new(@engine, RBA::Region::new(res))
      end
    end
    
    input(1).polygons_with_more_points(5).output(100, 0)
    

    But beware: this check is slow since it is implemented in Ruby and it iterates over the flat data.

    Matthias

Sign In or Register to comment.