You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.8KB

  1. import pya
  2. import os
  3. base_dir = os.path.dirname(os.path.abspath(__file__))
  4. layout = pya.Layout()
  5. layout.read(os.path.join(base_dir, "..", "gds", "image_with_alignment_marks_overlapped.gds"))
  6. layout.delete_layer(1)
  7. layer3_index = layout.insert_layer(pya.LayerInfo.new(3, 0))
  8. layout.top_cell().shapes(0).insert(pya.Box(-7500000, 6850000 - 1850000 + 30000, 7500000, 6850000 - 1850000 + 30000 + 5000))
  9. layout.top_cell().shapes(layer3_index).insert(pya.Box(-7500000, -7500000, 7500000, 7500000))
  10. #layout.transform(pya.Trans(2, False, 0, 0))
  11. layout.write(os.path.join(base_dir, "..", "gds", "wafer_1.gds"))
  12. layout = pya.Layout()
  13. layout.read(os.path.join(base_dir, "..", "gds", "image_with_alignment_marks_overlapped.gds"))
  14. layout.delete_layer(0)
  15. layer3_index = layout.insert_layer(pya.LayerInfo.new(3, 0))
  16. #layout.transform(pya.Trans(2, True, 0, 0))
  17. layout.transform(pya.Trans(0, True, 0, 0))
  18. layout.top_cell().shapes(1).insert(pya.Box(-7500000, 6850000 - 1850000 + 30000, 7500000, 6850000 - 1850000 + 30000 + 5000))
  19. layout.top_cell().shapes(layer3_index).insert(pya.Box(-7500000, -7500000, 7500000, 7500000))
  20. layout.write(os.path.join(base_dir, "..", "gds", "wafer_2.gds"))
  21. layout = pya.Layout()
  22. layout.read(os.path.join(base_dir, "..", "gds", "inverted_tonality", "image_with_alignment_marks_overlapped_inverse.gds"))
  23. layout.delete_layer(1)
  24. #layout.transform(pya.Trans(2, False, 0, 0))
  25. layout.write(os.path.join(base_dir, "..", "gds", "inverted_tonality", "wafer_1_inverse.gds"))
  26. layout = pya.Layout()
  27. layout.read(os.path.join(base_dir, "..", "gds", "inverted_tonality", "image_with_alignment_marks_overlapped_inverse.gds"))
  28. layout.delete_layer(0)
  29. #layout.transform(pya.Trans(2, True, 0, 0))
  30. layout.transform(pya.Trans(0, True, 0, 0))
  31. layout.write(os.path.join(base_dir, "..", "gds", "inverted_tonality", "wafer_2_inverse.gds"))