From 031862c7495c20518a717fd55005ca98a5eeb226 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 23 Jun 2020 11:56:50 -0700 Subject: [PATCH] Add metal enclosure to base case of center via stack. --- compiler/base/hierarchy_layout.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index c9b6a7a8..9331f31d 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -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]