Add metal enclosure to base case of center via stack.

This commit is contained in:
mrg 2020-06-23 11:56:50 -07:00
parent 1a528f9739
commit 031862c749
1 changed files with 4 additions and 0 deletions

View File

@ -599,6 +599,10 @@ class layout():
"""
if from_layer == to_layer:
# In the case where we have no vias added, make sure that there is at least
# a metal enclosure. This helps with center-line path routing.
self.add_rect_center(layer=from_layer,
offset=offset)
return last_via
from_id = layer_indices[from_layer]