From f29ec72d80ce7f320e67d3a4114229c47bf82661 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 27 May 2010 16:12:44 +0000 Subject: [PATCH] * ./kite: - New: Adds support to restrict the number of routing layers. Not enabled yet because the router needs some more tweak if using only two routing layers. --- kite/src/Configuration.cpp | 8 ++++++++ kite/src/KiteEngine.cpp | 1 + kite/src/kite/Configuration.h | 2 ++ 3 files changed, 11 insertions(+) diff --git a/kite/src/Configuration.cpp b/kite/src/Configuration.cpp index 9804f05a..3c600ad8 100644 --- a/kite/src/Configuration.cpp +++ b/kite/src/Configuration.cpp @@ -119,6 +119,10 @@ namespace Kite { { return _base->getDepth(); } + size_t Configuration::getAllowedDepth () const + { return _base->getAllowedDepth(); } + + size_t Configuration::getLayerDepth ( const Layer* layer ) const { return _base->getLayerDepth(layer); } @@ -151,6 +155,10 @@ namespace Kite { { return _base->getGlobalThreshold(); } + void Configuration::setAllowedDepth ( size_t allowedDepth ) + { _base->setAllowedDepth(allowedDepth); } + + void Configuration::setSaturateRatio ( float ratio ) { _base->setSaturateRatio(ratio); } diff --git a/kite/src/KiteEngine.cpp b/kite/src/KiteEngine.cpp index 984943f2..17920f0d 100644 --- a/kite/src/KiteEngine.cpp +++ b/kite/src/KiteEngine.cpp @@ -113,6 +113,7 @@ namespace Kite { , _minimumWL (0.0) , _toolSuccess (false) { + //_configuration->setAllowedDepth ( 3 ); } diff --git a/kite/src/kite/Configuration.h b/kite/src/kite/Configuration.h index 3eb8dc1e..fdc43985 100644 --- a/kite/src/kite/Configuration.h +++ b/kite/src/kite/Configuration.h @@ -69,6 +69,7 @@ namespace Kite { // Decorateds. virtual bool isGMetal ( const Layer* ) const; virtual size_t getDepth () const; + virtual size_t getAllowedDepth () const; virtual size_t getLayerDepth ( const Layer* ) const; virtual RoutingGauge* getRoutingGauge () const; virtual RoutingLayerGauge* getLayerGauge ( size_t depth ) const; @@ -77,6 +78,7 @@ namespace Kite { virtual DbU::Unit getExtensionCap () const; virtual float getSaturateRatio () const; virtual DbU::Unit getGlobalThreshold () const; + virtual void setAllowedDepth ( size_t ); virtual void setSaturateRatio ( float ); virtual void setGlobalThreshold ( DbU::Unit ); virtual void print ( Cell* ) const;