OpenASIP
2.0
|
#include <ProGeCmdLineOptions.hh>
Public Member Functions | |
ProGeCmdLineOptions () | |
virtual | ~ProGeCmdLineOptions () |
std::string | processorToGenerate () const |
std::string | bemFile () const |
std::string | idfFile () const |
std::string | hdl () const |
std::string | outputDirectory () const |
std::string | sharedOutputDirectory () const |
std::string | pluginParametersQuery () const |
bool | generateTestbench () const |
std::string | mode () const |
std::string | integratorName () const |
std::string | imemType () const |
std::string | dmemType () const |
int | clockFrequency () const |
std::string | tpefName () const |
std::string | entityName () const |
bool | useAbsolutePaths () const |
bool | listAvailableIntegrators () const |
std::string | deviceFamilyName () const |
std::string | deviceName () const |
std::string | simulationRuntime () const |
bool | forceOutputDirectory () const |
bool | asyncReset () const |
bool | syncReset () const |
std::vector< std::string > | commaSeparatedList (const std::string argumentName) const |
std::vector< std::string > | hdbList () const |
std::vector< std::string > | rfIcGateList () const |
std::vector< std::string > | fuIcGateList () const |
std::vector< std::pair< std::string, std::string > > | icdArgList () const |
bool | preferHDLGeneration () const |
bool | resetAllRegisters () const |
std::vector< std::string > | fuBackRegistered () const |
std::vector< std::string > | fuFrontRegistered () const |
std::vector< std::string > | fuMiddleRegistered () const |
virtual void | printVersion () const |
virtual void | printHelp () const |
Public Member Functions inherited from CmdLineOptions | |
CmdLineOptions (std::string description, std::string version="") | |
virtual | ~CmdLineOptions () |
void | parse (char *argv[], int argc) |
void | parse (std::string argv[], int argc) |
void | parse (std::vector< std::string > argv) |
virtual bool | isVerboseSwitchDefined () const |
virtual bool | isVerboseSpamSwitchDefined () const |
Public Member Functions inherited from CmdLineParser | |
CmdLineParser (std::string description) | |
virtual | ~CmdLineParser () |
virtual void | storeOptions (Options &options) |
virtual int | numberOfArguments () const |
virtual std::string | argument (int index) const |
Additional Inherited Members | |
Protected Member Functions inherited from CmdLineOptions | |
bool | optionGiven (std::string key) const |
Protected Member Functions inherited from CmdLineParser | |
void | addOption (CmdLineOptionParser *opt) |
CmdLineOptionParser * | findOption (std::string name) const |
bool | parseOption (std::string option, std::string &name, std::string &arguments, std::string &prefix, bool &hasArgument) const |
bool | readPrefix (std::string &option, std::string &prefix, bool &longOption) const |
bool | isPrefix (std::string name) const |
Protected Attributes inherited from CmdLineParser | |
std::map< std::string, CmdLineOptionParser * > | optionLongNames_ |
Database for holding options with their long names as a key. More... | |
std::map< std::string, CmdLineOptionParser * > | optionShortNames_ |
Database for holding options with their short names as a key. More... | |
std::vector< std::string > | commandLine_ |
Command line is stored here. More... | |
std::vector< std::string > | arguments_ |
Command line arguments are stored here. More... | |
std::vector< std::string > | prefixes_ |
Legal prefixes are stored here. More... | |
Command line options for the command line interface of ProGe (generateprocessor).
Definition at line 43 of file ProGeCmdLineOptions.hh.
ProGeCmdLineOptions::ProGeCmdLineOptions | ( | ) |
The constructor.
Definition at line 77 of file ProGeCmdLineOptions.cc.
References CmdLineParser::addOption(), BEM_PARAM_NAME, bemFile(), CLK_FREQUENCY, DEVICE_FAMILY, DEVICE_NAME, deviceFamilyName(), deviceName(), DMEM_TYPE, dmemType(), DONT_RESET_ALL, ENTITY_NAME, entityName(), FORCE_OUTPUT, FU_BACKREGISTER_LIST, FU_FRONTREGISTER_LIST, FU_ICGATE_LIST, FU_MIDDLEREGISTER_LIST, fuIcGateList(), GENERATE_TESTBENCH, generateTestbench(), HDB_LIST, hdbList(), HDL_PARAM_NAME, ICD_ARG_LIST, icdArgList(), IDF_PARAM_NAME, idfFile(), IMEM_TYPE, imemType(), INTEGRATOR_NAME, integratorName(), LIST_INTEGRATORS, OUTPUTDIR_PARAM_NAME, outputDirectory(), PLUGIN_PARAMETERS_PARAM_NAME, PREFER_GEN, RF_ICGATE_LIST, rfIcGateList(), SHARED_OUTPUTDIR_PARAM_NAME, sharedOutputDirectory(), SIMULATION_RUNTIME, SYNC_RESET, syncReset(), TPEF_NAME, USE_ABSOLUTE_PATHS, and useAbsolutePaths().
|
virtual |
bool ProGeCmdLineOptions::asyncReset | ( | ) | const |
Returns true if asynchronous reset.
Definition at line 436 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and SYNC_RESET.
std::string ProGeCmdLineOptions::bemFile | ( | ) | const |
Returns the given BEM file.
Definition at line 267 of file ProGeCmdLineOptions.cc.
References BEM_PARAM_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
int ProGeCmdLineOptions::clockFrequency | ( | ) | const |
Definition at line 345 of file ProGeCmdLineOptions.cc.
References CLK_FREQUENCY, CmdLineParser::findOption(), and CmdLineOptionParser::integer().
std::vector< std::string > ProGeCmdLineOptions::commaSeparatedList | ( | const std::string | argumentName | ) | const |
Helper for arguments with comma-separated arguments
Definition at line 444 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::String(), and sub.
Referenced by fuBackRegistered(), fuFrontRegistered(), fuIcGateList(), fuMiddleRegistered(), hdbList(), icdArgList(), and rfIcGateList().
std::string ProGeCmdLineOptions::deviceFamilyName | ( | ) | const |
Definition at line 382 of file ProGeCmdLineOptions.cc.
References DEVICE_FAMILY, CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::deviceName | ( | ) | const |
Definition at line 391 of file ProGeCmdLineOptions.cc.
References DEVICE_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::dmemType | ( | ) | const |
Definition at line 339 of file ProGeCmdLineOptions.cc.
References DMEM_TYPE, CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::entityName | ( | ) | const |
Definition at line 362 of file ProGeCmdLineOptions.cc.
References ENTITY_NAME, CmdLineParser::findOption(), and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
bool ProGeCmdLineOptions::forceOutputDirectory | ( | ) | const |
Returns true if ProGe is allowed to write the processor files to an existing directory.
Definition at line 420 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), FORCE_OUTPUT, and CmdLineOptionParser::isFlagOn().
std::vector< std::string > ProGeCmdLineOptions::fuBackRegistered | ( | ) | const |
Definition at line 508 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and FU_BACKREGISTER_LIST.
std::vector< std::string > ProGeCmdLineOptions::fuFrontRegistered | ( | ) | const |
Definition at line 513 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and FU_FRONTREGISTER_LIST.
std::vector< std::string > ProGeCmdLineOptions::fuIcGateList | ( | ) | const |
Return list of FUs to IC-Gate.
Definition at line 503 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and FU_ICGATE_LIST.
Referenced by ProGeCmdLineOptions().
std::vector< std::string > ProGeCmdLineOptions::fuMiddleRegistered | ( | ) | const |
Definition at line 518 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and FU_MIDDLEREGISTER_LIST.
bool ProGeCmdLineOptions::generateTestbench | ( | ) | const |
Definition at line 372 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), GENERATE_TESTBENCH, and CmdLineOptionParser::isFlagOn().
Referenced by ProGeCmdLineOptions().
std::vector< std::string > ProGeCmdLineOptions::hdbList | ( | ) | const |
Return list of HDBs.
Definition at line 466 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and HDB_LIST.
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::hdl | ( | ) | const |
Returns the given HDL parameter.
Definition at line 289 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), HDL_PARAM_NAME, and CmdLineOptionParser::String().
std::vector< std::pair< std::string, std::string > > ProGeCmdLineOptions::icdArgList | ( | ) | const |
Return list of option/argument pairs for ICDecoder plugin
Definition at line 482 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and ICD_ARG_LIST.
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::idfFile | ( | ) | const |
Returns the given IDF file.
Definition at line 278 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), IDF_PARAM_NAME, and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::imemType | ( | ) | const |
Definition at line 333 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), IMEM_TYPE, and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::integratorName | ( | ) | const |
Definition at line 327 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), INTEGRATOR_NAME, and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
bool ProGeCmdLineOptions::listAvailableIntegrators | ( | ) | const |
Definition at line 377 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and LIST_INTEGRATORS.
std::string ProGeCmdLineOptions::mode | ( | ) | const |
std::string ProGeCmdLineOptions::outputDirectory | ( | ) | const |
Returns the given output directory.
Definition at line 300 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), OUTPUTDIR_PARAM_NAME, and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::pluginParametersQuery | ( | ) | const |
Returns the IC/decoder generator plugin parameter list query.
Definition at line 321 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), PLUGIN_PARAMETERS_PARAM_NAME, and CmdLineOptionParser::String().
bool ProGeCmdLineOptions::preferHDLGeneration | ( | ) | const |
Returns true if preferring HDL Generation.
Definition at line 526 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and PREFER_GEN.
|
virtual |
Prints help of the application.
Reimplemented from CmdLineOptions.
Definition at line 552 of file ProGeCmdLineOptions.cc.
References CmdLineOptions::printHelp(), and printVersion().
|
virtual |
Prints the version of the application.
Implements CmdLineOptions.
Definition at line 542 of file ProGeCmdLineOptions.cc.
References Application::TCEVersionString().
Referenced by printHelp().
std::string ProGeCmdLineOptions::processorToGenerate | ( | ) | const |
Returns the ADF or PCF file given as last argument.
Definition at line 256 of file ProGeCmdLineOptions.cc.
References CmdLineParser::argument(), and CmdLineParser::numberOfArguments().
bool ProGeCmdLineOptions::resetAllRegisters | ( | ) | const |
Returns true if all registers should be reseted.
Definition at line 534 of file ProGeCmdLineOptions.cc.
References DONT_RESET_ALL, CmdLineParser::findOption(), and CmdLineOptionParser::isFlagOn().
std::vector< std::string > ProGeCmdLineOptions::rfIcGateList | ( | ) | const |
Return list of RFs to IC-Gate.
Definition at line 474 of file ProGeCmdLineOptions.cc.
References commaSeparatedList(), and RF_ICGATE_LIST.
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::sharedOutputDirectory | ( | ) | const |
Returns the given output directory.
Definition at line 310 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), SHARED_OUTPUTDIR_PARAM_NAME, and CmdLineOptionParser::String().
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::simulationRuntime | ( | ) | const |
Gets the HDL simulation time from Cmd line options. If none given, the legacy MAGICAL RUNTIME CONSTANT value 52390ns will be used.
Definition at line 404 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::integer(), and SIMULATION_RUNTIME.
bool ProGeCmdLineOptions::syncReset | ( | ) | const |
Returns true if synchronous reset.
Definition at line 428 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and SYNC_RESET.
Referenced by ProGeCmdLineOptions().
std::string ProGeCmdLineOptions::tpefName | ( | ) | const |
Definition at line 356 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::String(), and TPEF_NAME.
bool ProGeCmdLineOptions::useAbsolutePaths | ( | ) | const |
Definition at line 367 of file ProGeCmdLineOptions.cc.
References CmdLineParser::findOption(), CmdLineOptionParser::isFlagOn(), and USE_ABSOLUTE_PATHS.
Referenced by ProGeCmdLineOptions().