How do I check all layers on grid in DRC runset

edited November 15 in Layout

Dear Matthias
I knew how to operate ongrid DRC operator to check such layer is ongrid or not.
diff = input(1,0)
diff.ongrid(0.001).output("off grid", "Vertice is drawn off-grid.")
Could I check all layers in my layout in one statement?

Comments

  • Hello,

    You can use layers.each:

    report("on grid")
    
    design_grid = 0.1
    
    layers.each { |layer|  input(layer).ongrid(design_grid).output("#{layer.to_s}_on_grid", "#{layer.to_s} grid violations")}
    

    Cheers,

    Tomas

  • Yes! :)

    Thanks,

    Matthias

  • Thanks! It helps a lot!

Sign In or Register to comment.