OpenASIP 2.2
|
Private Member Functions | |
PLUGIN_DESCRIPTION ("Explorer plugin that adds machine components to a " "given machine.") | |
ComponentAdder () | |
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 | addComponents (TTAMachine::Machine *mach) |
void | addRegisterFiles (TTAMachine::Machine *mach) |
Private Attributes | |
ComponentImplementationSelector | selector_ |
Selector used by the plugin. | |
std::string | RFName_ |
int | RFCount_ |
int | RFSize_ |
int | RFReadPorts_ |
int | RFWritePorts_ |
std::string | adf_ |
name of the adf file if wanted to use idf generation | |
bool | buildIdf_ |
do we build idf | |
Static Private Attributes | |
static const std::string | RFNamePN_ |
static const std::string | RFCountPN_ |
static const std::string | RFSizePN_ |
static const std::string | RFReadPortsPN_ |
static const std::string | RFWritePortsPN_ |
static const std::string | adfPN_ |
static const std::string | buildIdfPN_ |
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 adds machine components to a given machine.
Supported parameters:
Definition at line 63 of file ComponentAdder.cc.
|
inlineprivate |
Definition at line 67 of file ComponentAdder.cc.
References DesignSpaceExplorerPlugin::addParameter(), adf_, adfPN_, BOOL, buildIdf_, buildIdfPN_, RFCount_, RFCountPN_, RFName_, RFNamePN_, RFReadPorts_, RFReadPortsPN_, RFSize_, RFSizePN_, RFWritePorts_, RFWritePortsPN_, STRING, Conversion::toString(), and UINT.
|
inlineprivate |
Builds the machine in basis of the analyzed data from the applications.
Definition at line 204 of file ComponentAdder.cc.
References addRegisterFiles().
Referenced by explore().
|
inlineprivate |
Adds register file(s) to the machine
TODO: add type and guard latency setting
Definition at line 217 of file ComponentAdder.cc.
References TTAMachine::Machine::addRegisterFile(), TTAMachine::Machine::Navigator< ComponentType >::count(), Application::exitProgram(), TTAMachine::Machine::Navigator< ComponentType >::hasItem(), TTAMachine::RegisterFile::NORMAL, TTAMachine::Machine::registerFileNavigator(), RFCount_, RFName_, RFReadPorts_, RFSize_, RFWritePorts_, Conversion::toString(), and verboseLog.
Referenced by addComponents().
|
inlineprivatevirtual |
Explorer plugin that adds machine components to a given machine with adf parameter or with configuration id in dsdb.
Reimplemented from DesignSpaceExplorerPlugin.
Definition at line 100 of file ComponentAdder.cc.
References DSDBManager::addArchitecture(), addComponents(), DSDBManager::addConfiguration(), adf_, DSDBManager::architecture(), DSDBManager::MachineConfiguration::architectureID, assert, buildIdf_, DSDBManager::configuration(), DesignSpaceExplorer::db(), Exception::errorMessage(), Exception::fileName(), DSDBManager::MachineConfiguration::hasImplementation, Exception::lineNum(), TTAMachine::Machine::loadFromADF(), readParameters(), ComponentImplementationSelector::selectComponentsToConf(), selector_, and verboseLog.
|
private |
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 90 of file ComponentAdder.cc.
|
inlineprivate |
Reads the parameters given to the plugin.
Definition at line 188 of file ComponentAdder.cc.
References adf_, adfPN_, buildIdf_, buildIdfPN_, DesignSpaceExplorerPlugin::readOptionalParameter(), RFCount_, RFCountPN_, RFName_, RFNamePN_, RFReadPorts_, RFReadPortsPN_, RFSize_, RFSizePN_, RFWritePorts_, and RFWritePortsPN_.
Referenced by explore().
|
inlineprivatevirtual |
Reimplemented from DesignSpaceExplorerPlugin.
Definition at line 93 of file ComponentAdder.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 91 of file ComponentAdder.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 92 of file ComponentAdder.cc.
|
inlineprivatevirtual |
Implements DesignSpaceExplorerPlugin.
Definition at line 89 of file ComponentAdder.cc.
|
private |
name of the adf file if wanted to use idf generation
Definition at line 181 of file ComponentAdder.cc.
Referenced by ComponentAdder(), explore(), and readParameters().
|
staticprivate |
Definition at line 171 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
do we build idf
Definition at line 183 of file ComponentAdder.cc.
Referenced by ComponentAdder(), explore(), and readParameters().
|
staticprivate |
Definition at line 172 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Definition at line 176 of file ComponentAdder.cc.
Referenced by addRegisterFiles(), ComponentAdder(), and readParameters().
|
staticprivate |
Definition at line 167 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Definition at line 175 of file ComponentAdder.cc.
Referenced by addRegisterFiles(), ComponentAdder(), and readParameters().
|
staticprivate |
Definition at line 166 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Definition at line 178 of file ComponentAdder.cc.
Referenced by addRegisterFiles(), ComponentAdder(), and readParameters().
|
staticprivate |
Definition at line 169 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Definition at line 177 of file ComponentAdder.cc.
Referenced by addRegisterFiles(), ComponentAdder(), and readParameters().
|
staticprivate |
Definition at line 168 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Definition at line 179 of file ComponentAdder.cc.
Referenced by addRegisterFiles(), ComponentAdder(), and readParameters().
|
staticprivate |
Definition at line 170 of file ComponentAdder.cc.
Referenced by ComponentAdder(), and readParameters().
|
private |
Selector used by the plugin.
Definition at line 164 of file ComponentAdder.cc.
Referenced by explore().