Skip to content

Commit

Permalink
check for max size of 605x410 µm
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc authored Jan 29, 2024
1 parent a40cce4 commit af8ad11
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions run_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Script to load .gds file passed in through commmand line and run verification using layout_check().
Ouput lyrdb file is saved to path specified by 'file_lyrdb' variable in the script.
Jasmina Brar 12/08/23
Jasmina Brar 12/08/23, and Lukas Chrostowski
"""

Expand All @@ -25,14 +25,12 @@
# get top cell from layout
top_cell = layout.top_cell()


# set layout technology because the technology seems to be empty, and we cannot load the technology using TECHNOLOGY = get_technology() because this isn't GUI mode
# refer to line 103 in layout_check()
# tech = layout.technology()
# print("Tech:", tech.name)
layout.TECHNOLOGY = get_technology_by_name('EBeam')


# run verification
zoom_out(top_cell)

Expand All @@ -44,6 +42,14 @@
# run verification
num_errors = layout_check(cell = top_cell, verbose=True, GUI=True, file_rdb=file_lyrdb)

# Make sure layout extent fits within the allocated area.
cell_Width = 605000
cell_Height = 410000
bbox = top_cell.bbox()
if bbox.width() > cell_Width or bbox.height() > cell_Height:
print('Error: Cell bounding box / extent is larger than the maximum size of 605 X 410 microns')
num_errors += 1

# Print the result value to standard output
print(num_errors)

0 comments on commit af8ad11

Please sign in to comment.