From 5e34233479ef7facbd83d18933353421ce7e60a8 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Tue, 11 Sep 2018 13:43:47 -0700 Subject: [PATCH] Finish new VCG testing. Reversed VCG graph edge directions. Channel tracks get added left to right or top down like normal left edge algorithm examples. --- compiler/base/hierarchy_layout.py | 52 +++++++++++----------------- compiler/tests/20_sram_1bank_test.py | 4 +-- 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/compiler/base/hierarchy_layout.py b/compiler/base/hierarchy_layout.py index 331e1195..191fa492 100644 --- a/compiler/base/hierarchy_layout.py +++ b/compiler/base/hierarchy_layout.py @@ -721,8 +721,6 @@ class layout(lef.lef): try to minimize the number of tracks -- instead, it picks an order to avoid the vertical conflicts between pins. """ - local_debug = True - def remove_net_from_graph(pin, g): # Remove the pin from the keys g.pop(pin,None) @@ -747,11 +745,11 @@ class layout(lef.lef): def vcg_pin_overlap(pin1, pin2, vertical): # Check for vertical overlap of the two pins - # Pin 1 must be in the "LEFT" set and overlap the right - x_overlap = pin1.lx() < pin2.lx() and abs(pin1.center().x-pin2.center().x) pin2.by() and abs(pin1.center().x-pin2.center().x) pin2.by() and abs(pin1.center().y-pin2.center().y)