* ./nimbus,

./metis,
    ./mauka,
    ./katabatic,
    ./kite :
    - Change: switch toward the XML configuration system. Suppress the need
        of a default static configuration (now built on demand from the XML
        database).
          In Mauka and Kite, suppress the ConfigurationWidget, wich are
        obsoleted by the generic XML configuration widget.
This commit is contained in:
Jean-Paul Chaput 2010-06-18 14:03:16 +00:00
parent 97437a6390
commit 4b39e1ed6a
5 changed files with 15 additions and 25 deletions

View File

@ -45,6 +45,7 @@ IF(BUILD_DOC)
FIND_PACKAGE(Doxygen) FIND_PACKAGE(Doxygen)
ENDIF(BUILD_DOC) ENDIF(BUILD_DOC)
FIND_PACKAGE(Qt4 REQUIRED) # find and setup Qt4 for this project FIND_PACKAGE(Qt4 REQUIRED) # find and setup Qt4 for this project
FIND_PACKAGE(VLSISAPD REQUIRED)
FIND_PACKAGE(HURRICANE REQUIRED) FIND_PACKAGE(HURRICANE REQUIRED)
FIND_PACKAGE(CORIOLIS REQUIRED) FIND_PACKAGE(CORIOLIS REQUIRED)
FIND_PACKAGE(KNIK REQUIRED) FIND_PACKAGE(KNIK REQUIRED)

View File

@ -6,8 +6,9 @@ endif ( CHECK_DETERMINISM )
include ( ${QT_USE_FILE} ) include ( ${QT_USE_FILE} )
include_directories ( ${KATABATIC_SOURCE_DIR}/src include_directories ( ${KATABATIC_SOURCE_DIR}/src
${HURRICANE_INCLUDE_DIR}
${CORIOLIS_INCLUDE_DIR} ${CORIOLIS_INCLUDE_DIR}
${HURRICANE_INCLUDE_DIR}
${CONFIGURATION_INCLUDE_DIR}
) )
set ( includes katabatic/Configuration.h set ( includes katabatic/Configuration.h
katabatic/AutoContact.h katabatic/AutoContacts.h katabatic/AutoContact.h katabatic/AutoContacts.h

View File

@ -26,6 +26,7 @@
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include "vlsisapd/configuration/Configuration.h"
#include "hurricane/Technology.h" #include "hurricane/Technology.h"
#include "hurricane/DataBase.h" #include "hurricane/DataBase.h"
#include "hurricane/Cell.h" #include "hurricane/Cell.h"
@ -54,18 +55,6 @@ namespace Katabatic {
// Class : "Katabatic::Configuration". // Class : "Katabatic::Configuration".
Configuration* Configuration::_default = NULL;
Configuration* Configuration::getDefault ()
{
if ( _default == NULL ) {
_default = new ConfigurationConcrete ( AllianceFramework::get()->getRoutingGauge() );
}
return _default;
}
Configuration::Configuration () { } Configuration::Configuration () { }
Configuration::~Configuration () { } Configuration::~Configuration () { }
@ -78,14 +67,14 @@ namespace Katabatic {
: Configuration() : Configuration()
, _rg (NULL) , _rg (NULL)
, _extensionCap (DbU::lambda(1.5)) , _extensionCap (DbU::lambda(1.5))
, _saturateRatio (0.80) , _saturateRatio (Cfg::getParamPercentage("katabatic.saturateRatio",80.0)->asDouble())
, _globalThreshold (29*DbU::lambda(50.0)) // Ugly: direct uses of SxLib gauge. , _globalThreshold (DbU::lambda(Cfg::getParamDouble("katabatic.globalLengthThreshold",29*50.0)->asDouble())) // Ugly: direct uses of SxLib gauge.
, _allowedDepth (0) , _allowedDepth (0)
{ {
if ( rg ) { if ( rg == NULL ) rg = AllianceFramework::get()->getRoutingGauge();
_rg = rg->getClone(); _rg = rg->getClone();
_allowedDepth = rg->getDepth(); _allowedDepth = rg->getDepth();
}
_gmetalh = DataBase::getDB()->getTechnology()->getLayer("gmetalh"); _gmetalh = DataBase::getDB()->getTechnology()->getLayer("gmetalh");
_gmetalv = DataBase::getDB()->getTechnology()->getLayer("gmetalv"); _gmetalv = DataBase::getDB()->getTechnology()->getLayer("gmetalv");

View File

@ -219,10 +219,12 @@ namespace Katabatic {
, _destroyBaseSegment(false) , _destroyBaseSegment(false)
, _demoMode (false) , _demoMode (false)
, _warnGCellOverload (false) , _warnGCellOverload (false)
, _configuration (Configuration::getDefault()->clone()) , _configuration (new ConfigurationConcrete())
, _gcellGrid (NULL) , _gcellGrid (NULL)
, _routingNets () , _routingNets ()
{ {
cerr << "KatabaticEngine::_configuration: " << (void*)_configuration << endl;
addMeasure<size_t> ( cell, "Gates" addMeasure<size_t> ( cell, "Gates"
, AllianceFramework::getInstancesCount(cell,AllianceFramework::IgnoreFeeds , AllianceFramework::getInstancesCount(cell,AllianceFramework::IgnoreFeeds
|AllianceFramework::Recursive) ); |AllianceFramework::Recursive) );

View File

@ -57,8 +57,6 @@ namespace Katabatic {
class Configuration { class Configuration {
public:
static Configuration* getDefault ();
public: public:
// Constructor & Destructor. // Constructor & Destructor.
virtual ~Configuration (); virtual ~Configuration ();
@ -100,8 +98,9 @@ namespace Katabatic {
friend class Configuration; friend class Configuration;
public: public:
// Constructor & Destructor. // Constructor & Destructor.
virtual ConfigurationConcrete* clone () const; ConfigurationConcrete ( const RoutingGauge* rg=NULL );
virtual ~ConfigurationConcrete (); virtual ~ConfigurationConcrete ();
virtual ConfigurationConcrete* clone () const;
// Methods. // Methods.
virtual bool isGMetal ( const Layer* ) const; virtual bool isGMetal ( const Layer* ) const;
virtual size_t getDepth () const; virtual size_t getDepth () const;
@ -121,8 +120,6 @@ namespace Katabatic {
virtual Record* _getRecord () const; virtual Record* _getRecord () const;
virtual string _getString () const; virtual string _getString () const;
virtual string _getTypeName () const; virtual string _getTypeName () const;
protected:
ConfigurationConcrete ( const RoutingGauge* );
protected: protected:
// Attributes. // Attributes.
const Layer* _gmetalh; const Layer* _gmetalh;