Skip to content

Commit

Permalink
Update EBeam_merge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Nov 2, 2024
1 parent 4dd63d4 commit 156f3fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions merge/EBeam_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ def next_position(x, y, cell_Gap_Height, cell_Gap_Width, chip_Height, cell_Heigh
else:
y += subcell.bbox().height() + cell_Gap_Height
# move right and bottom when we reach the top of the chip
if y + cell_Height > chip_Height2:
y = cell_Height + cell_Gap_Height
x += cell_Width + cell_Gap_Width
'''
if y + cell_Height > chip_Height1 and x == 0:
y = cell_Height + cell_Gap_Height
x += cell_Width + cell_Gap_Width
Expand All @@ -409,6 +413,7 @@ def next_position(x, y, cell_Gap_Height, cell_Gap_Width, chip_Height, cell_Heigh
# Check bottom right cutout #2 for PCM
if x + cell_Width > br_cutout2_x and y < br_cutout2_y:
y = br_cutout2_y
'''
else:
log(" - WARNING: Top cell not merged (%s)" % cell.name)

Expand Down

0 comments on commit 156f3fd

Please sign in to comment.