From a515d427579e0c5298a7086b400b1fd3a8950bed Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 26 Mar 2010 18:03:01 +0000 Subject: [PATCH] * ./kite: - Cleanup: In GCell, remove the DyKeyQueue support as it's been moved to Katabatic level. - Change: In NegociateWidow, increase the event stop thresold to 4M events to be able to process the eFPGA matrix 16x16 (150K gates). --- kite/src/GCell.cpp | 71 ------------------------------------ kite/src/NegociateWindow.cpp | 5 ++- kite/src/kite/GCell.h | 33 +++-------------- 3 files changed, 8 insertions(+), 101 deletions(-) diff --git a/kite/src/GCell.cpp b/kite/src/GCell.cpp index 74432cf8..89a85323 100644 --- a/kite/src/GCell.cpp +++ b/kite/src/GCell.cpp @@ -165,25 +165,6 @@ namespace Kite { } -// ------------------------------------------------------------------- -// Class : "Kite::GCell::CompareByKey". -// -// lhs < rhs --> true - - - bool GCell::CompareByKey::operator() ( GCell* lhs, GCell* rhs ) - { - //int difference = floatCompare ( lhs->base()->getDensity(), rhs->base()->getDensity() ); - //if ( abs(difference) > 1000 ) return difference > 0; - - float difference = roundfp ( lhs->base()->getDensity() - rhs->base()->getDensity() ); - if ( difference != 0.0 ) return (difference > 0.0); - - if ( lhs->getIndex() < rhs->getIndex() ) return true; - return false; - } - - // ------------------------------------------------------------------- // Class : "Kite::GCell::CompareByStiffness". // @@ -585,58 +566,6 @@ namespace Kite { Record* GCell::_getRecord () const { return _base->_getRecord(); } - - -// ------------------------------------------------------------------- -// Class : "Kite::DyKeyQueue". - - - DyKeyQueue::DyKeyQueue () - : _map () - , _requests() - { } - - - DyKeyQueue::~DyKeyQueue () - { - if ( (not _map.empty()) or (not _requests.empty()) ) { - cerr << Warning("~DyKeyQueue(): Still contains %d elements and %d requests." - ,_map.size(),_requests.size()) << endl; - } - } - - - void DyKeyQueue::invalidate ( GCell* gcell ) - { - std::set::iterator igcell = _map.find(gcell); - if ( igcell != _map.end() ) { - _map.erase ( igcell ); - } - push ( gcell ); - } - - - void DyKeyQueue::push ( GCell* gcell ) - { - _requests.insert ( gcell ); - } - - - void DyKeyQueue::revalidate () - { - std::set::iterator igcell = _requests.begin(); - for ( ; igcell != _requests.end() ; ++igcell ) - _map.insert ( *igcell ); - } - - - GCell* DyKeyQueue::pop () - { - if ( _map.empty() ) return NULL; - std::set::iterator igcell = _map.begin(); - GCell* gcell = *igcell; - _map.erase ( igcell ); - } diff --git a/kite/src/NegociateWindow.cpp b/kite/src/NegociateWindow.cpp index 363070a7..78aa02f7 100644 --- a/kite/src/NegociateWindow.cpp +++ b/kite/src/NegociateWindow.cpp @@ -374,7 +374,7 @@ namespace Kite { cmess2.flush(); } - if ( RoutingEvent::getProcesseds() >= /*10471*/ 1000000 ) setInterrupt ( true ); + if ( RoutingEvent::getProcesseds() >= /*10471*/ 4000000 ) setInterrupt ( true ); count++; #if ENABLE_STIFFNESS @@ -412,7 +412,8 @@ namespace Kite { event->process ( _eventQueue, _eventHistory ); if (tty::enabled()) { - cmess1 << " " << tty::cr; cmess1.flush (); } else { diff --git a/kite/src/kite/GCell.h b/kite/src/kite/GCell.h index a9f0b0c7..2ef39930 100644 --- a/kite/src/kite/GCell.h +++ b/kite/src/kite/GCell.h @@ -74,11 +74,6 @@ namespace Kite { public: bool operator() ( GCell* lhs, GCell* rhs ); }; - // Sub-Class: "CompareByKey()". - class CompareByKey { - public: - bool operator() ( GCell* lhs, GCell* rhs ); - }; // Sub-Class: "CompareByStiffness()". class CompareByStiffness { public: @@ -155,15 +150,15 @@ namespace Kite { protected: // Constructors & Destructors. - GCell ( GCellGrid*, Katabatic::GCell* ); - virtual ~GCell (); + GCell ( GCellGrid*, Katabatic::GCell* ); + virtual ~GCell (); private: - GCell ( const GCell& ); - GCell& operator= ( const GCell& ); + GCell ( const GCell& ); + GCell& operator= ( const GCell& ); }; -// Inline Functions. +// GCell Inline Functions. inline Katabatic::GCell* GCell::base () { return _base; } inline bool GCell::isInRoutingSet () const { return _isInRoutingSet; } inline bool GCell::isRouted () const { return _isRouted; } @@ -214,24 +209,6 @@ namespace Kite { typedef GenericFilter GCellFilter; -// ------------------------------------------------------------------- -// Class : "DyKeyQueue". - - - class DyKeyQueue { - public: - DyKeyQueue (); - ~DyKeyQueue (); - GCell* pop (); - void push ( GCell* ); - void invalidate ( GCell* ); - void revalidate (); - private: - std::set _map; - std::set _requests; - }; - - } // End of Kite namespace.