OpenASIP 2.2
|
Private Member Functions | |
PLUGIN_DESCRIPTION ("Creates implementation for the given machine.") | |
ImplementationSelector () | |
virtual bool | requiresStartingPointArchitecture () const |
virtual bool | producesArchitecture () const |
virtual bool | requiresHDB () const |
virtual bool | requiresSimulationData () const |
virtual bool | requiresApplication () const |
virtual std::vector< RowID > | explore (const RowID &configurationID, const unsigned int &) |
void | readParameters () |
void | setupSelector () |
Private Attributes | |
ComponentImplementationSelector | selector_ |
Selector used by the plugin. | |
std::string | icDec_ |
name of the ic decoder plugin for idf | |
std::string | icDecHDB_ |
name of the hdb used by ic decoder | |
std::string | adf_ |
name of the adf file if wanted to use idf generation | |
Static Private Attributes | |
static const std::string | icDecPN_ |
static const std::string | icDecHDBPN_ |
static const std::string | adfPN_ |
Additional Inherited Members | |
![]() | |
typedef std::pair< std::string, ExplorerPluginParameter > | Parameter |
typedef std::map< std::string, ExplorerPluginParameter > | ParameterMap |
typedef std::map< std::string, ExplorerPluginParameter >::iterator | PMIt |
typedef std::map< std::string, ExplorerPluginParameter >::const_iterator | PMCIt |
![]() | |
virtual std::string | description () const |
void | addParameter (TCEString name, ExplorerPluginParameterType type, bool compulsory=true, TCEString defaultValue="", TCEString description="") |
template<typename T > | |
void | readCompulsoryParameter (const std::string paramName, T ¶m) const |
template<typename T > | |
void | readOptionalParameter (const std::string paramName, T ¶m) const |
template<typename RT > | |
RT | parameterValue (const std::string ¶mName) const |
virtual | ~DesignSpaceExplorerPlugin () |
virtual void | giveParameter (const std::string &name, const std::string &value) |
virtual std::string | name () const |
virtual void | setPluginName (const std::string &pluginName) |
virtual bool | hasParameter (const std::string ¶mName) const |
ParameterMap | parameters () const |
virtual bool | booleanValue (const std::string ¶meter) const |
![]() | |
DesignSpaceExplorer () | |
virtual | ~DesignSpaceExplorer () |
virtual void | setDSDB (DSDBManager &dsdb) |
virtual bool | evaluate (const DSDBManager::MachineConfiguration &configuration, CostEstimates &results=dummyEstimate_, bool estimate=false) |
virtual DSDBManager & | db () |
std::vector< DesignSpaceExplorerPlugin * > | getPlugins () |
RowID | createImplementationAndStore (const DSDBManager::MachineConfiguration &conf, const double &frequency=0.0, const double &maxArea=0.0, const bool &createEstimates=true, const std::string &icDec="DefaultICDecoder", const std::string &icDecHDB="asic_130nm_1.5V.hdb") |
bool | createImplementation (const DSDBManager::MachineConfiguration &conf, DSDBManager::MachineConfiguration &newConf, const double &frequency=0.0, const double &maxArea=0.0, const bool &createEstimates=true, const std::string &icDec="DefaultICDecoder", const std::string &icDecHDB="asic_130nm_1.5V.hdb") |
IDF::MachineImplementation * | selectComponents (const TTAMachine::Machine &mach, const double &frequency=0.0, const double &maxArea=0.0, const std::string &icDec="DefaultICDecoder", const std::string &icDecHDB="asic_130nm_1.5V.hdb") const |
void | createEstimateData (const TTAMachine::Machine &mach, const IDF::MachineImplementation &idf, CostEstimator::AreaInGates &area, CostEstimator::DelayInNanoSeconds &longestPathDelay) |
RowID | addConfToDSDB (const DSDBManager::MachineConfiguration &conf) |
![]() | |
static DesignSpaceExplorerPlugin * | loadExplorerPlugin (const std::string &pluginName, DSDBManager *dsdb=NULL) |
![]() | |
DesignSpaceExplorerPlugin () | |
void | checkParameters () const |
![]() | |
TTAProgram::Program * | schedule (const std::string applicationFile, TTAMachine::Machine &machine, TCEString paramOptions="-O3") |
const ExecutionTrace * | simulate (const TTAProgram::Program &program, const TTAMachine::Machine &machine, const TestApplication &testApplication, const ClockCycleCount &maxCycles, ClockCycleCount &runnedCycles, const bool tracing, const bool useCompiledSimulation=false, std::vector< ClockCycleCount > *executionCounts=NULL) |
![]() | |
std::string | pluginName_ |
the name of the explorer plugin | |
ParameterMap | parameters_ |
Parameters for the plugin. | |
Explorer plugin that selects implementations for units in a given adf. Creates a new config with a idf.
Supported parameters:
Definition at line 78 of file ImplementationSelector.cc.
|
inlineprivate |
Definition at line 81 of file ImplementationSelector.cc.
References DesignSpaceExplorerPlugin::addParameter(), adf_, adfPN_, icDec_, icDecHDB_, icDecHDBPN_, icDecPN_, and STRING.
|
inlineprivatevirtual |
Explores the design space from the starting point machine and returns best exploring results as configuration IDs.
Exploring creates new machine configurations (architecture, implementation) that are ordered so that the best results are first in the result vector.
startPoint | Starting point machine configuration for the plugin. |
maxIter | Maximum number of design space points the plugin is allowed to explore. Default value for maxIter is zero when the iteration number is not taken into account. In that case the exploration runs indefinetly or stops at a point defined by the algorithm. |
Reimplemented from DesignSpaceExplorerPlugin.
Definition at line 104 of file ImplementationSelector.cc.
References DSDBManager::addArchitecture(), DSDBManager::addConfiguration(), DSDBManager::addImplementation(), adf_, DSDBManager::architecture(), DSDBManager::MachineConfiguration::architectureID, DSDBManager::configuration(), DesignSpaceExplorer::db(), Exception::errorMessage(), Exception::fileName(), DSDBManager::MachineConfiguration::hasImplementation, icDec_, icDecHDB_, DSDBManager::MachineConfiguration::implementationID, Exception::lineNum(), TTAMachine::Machine::loadFromADF(), readParameters(), ComponentImplementationSelector::selectComponents(), selector_, setupSelector(), and verboseLog.
|
private |
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 96 of file ImplementationSelector.cc.
|
inlineprivate |
Reads the parameters given to the plugin.
Definition at line 193 of file ImplementationSelector.cc.
References adf_, adfPN_, icDec_, icDecHDB_, icDecHDBPN_, icDecPN_, and DesignSpaceExplorerPlugin::readOptionalParameter().
Referenced by explore().
|
inlineprivatevirtual |
Reimplemented from DesignSpaceExplorerPlugin.
Definition at line 99 of file ImplementationSelector.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 97 of file ImplementationSelector.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 98 of file ImplementationSelector.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 95 of file ImplementationSelector.cc.
|
inlineprivate |
Sets up the component implementation selector by adding the HDBs.
Definition at line 203 of file ImplementationSelector.cc.
References ComponentImplementationSelector::addHDB(), HDB::HDBRegistry::hdb(), HDB::HDBRegistry::hdbCount(), HDB::HDBRegistry::instance(), HDB::HDBRegistry::loadFromSearchPaths(), and selector_.
Referenced by explore().
|
private |
name of the adf file if wanted to use idf generation
Definition at line 187 of file ImplementationSelector.cc.
Referenced by explore(), ImplementationSelector(), and readParameters().
|
staticprivate |
Definition at line 179 of file ImplementationSelector.cc.
Referenced by ImplementationSelector(), and readParameters().
|
private |
name of the ic decoder plugin for idf
Definition at line 183 of file ImplementationSelector.cc.
Referenced by explore(), ImplementationSelector(), and readParameters().
|
private |
name of the hdb used by ic decoder
Definition at line 185 of file ImplementationSelector.cc.
Referenced by explore(), ImplementationSelector(), and readParameters().
|
staticprivate |
Definition at line 178 of file ImplementationSelector.cc.
Referenced by ImplementationSelector(), and readParameters().
|
staticprivate |
Definition at line 177 of file ImplementationSelector.cc.
Referenced by ImplementationSelector(), and readParameters().
|
private |
Selector used by the plugin.
Definition at line 174 of file ImplementationSelector.cc.
Referenced by explore(), and setupSelector().