From 35110a4453dd7b9f03959c326f3a6141c229b12e Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 25 Feb 2020 00:34:28 +0000 Subject: [PATCH] Improve debug of non-manhattan error --- compiler/base/hierarchy_layout.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index 451d1356..2e0bf755 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -322,9 +322,10 @@ class layout(): """ Creates a path like pin with center-line convention """ - - debug.check(start.x == end.x or start.y == end.y, - "Cannot have a non-manhatten layout pin.") + if start.x != end.x and start.y != end.y: + file_name = "non_rectilinear.gds" + self.gds_write(file_name) + debug.error("Cannot have a non-manhatten layout pin: {}".format(file_name), -1) minwidth_layer = drc["minwidth_{}".format(layer)]