|
OpenASIP 2.2
|
#include <GenerateProcessor.hh>


Public Member Functions | |
| GenerateProcessor () | |
| virtual | ~GenerateProcessor () |
| bool | generateProcessor (int argc, char *argv[]) |
Public Member Functions inherited from ProGe::ProGeUI | |
| virtual | ~ProGeUI () |
| ProGeUI () | |
| void | generateProcessor (const ProGeOptions &options, int imemWidthInMAUs, std::ostream &errorStream, std::ostream &warningStream, std::ostream &verboseStream) |
| void | generateTestBench (const ProGe::HDL language, const std::string &dstDir, const std::string &progeOutDir) |
| void | generateScripts (const ProGe::HDL language, const std::string &dstDir, const std::string &progeOutDir, const std::string &sharedOutDir, const std::string &testBenchDir, const std::string &simulationRuntime) |
| void | loadMachine (const TTAMachine::Machine &adf) |
| void | loadBinaryEncoding (const BinaryEncoding &bem) |
| void | loadMachineImplementation (const IDF::MachineImplementation &idf) |
Private Member Functions | |
| void | getOutputDir (const ProGeCmdLineOptions &options, std::string &outputDir) |
| bool | listICDecPluginParameters (const std::string &pluginFile) const |
| void | listIntegrators () const |
| bool | validIntegratorParameters (const ProGeCmdLineOptions &options) const |
| MemType | string2MemType (const std::string &memoryString) const |
Additional Inherited Members | |
Protected Member Functions inherited from ProGe::ProGeUI | |
| void | loadMachine (const std::string &adfFile) |
| void | loadBinaryEncoding (const std::string &bemFile) |
| void | loadMachineImplementation (const std::string &idfFile) |
| void | loadProcessorConfiguration (const std::string &configurationFile) |
| void | loadICDecoderGeneratorPlugin (const std::string &pluginFile, const std::string &pluginName) |
| void | integrateProcessor (std::ostream &warningStream, std::ostream &errorStream, std::string progeOutDir, std::string sharedOutputDir, const std::string &platformIntegrator, const std::string &coreEntityName, const std::string &programName, const std::string &deviceFamily, const std::string &deviceName, MemType imem, MemType dmem, HDL language, int fmax, bool syncReset, bool generateIntegratedTestbench) |
Protected Attributes inherited from ProGe::ProGeUI | |
| TTAMachine::Machine * | machine_ |
| The loaded machine. | |
Implements the command line user interface 'generateprocessor'.
Definition at line 46 of file GenerateProcessor.hh.
| GenerateProcessor::GenerateProcessor | ( | ) |
|
virtual |
| bool GenerateProcessor::generateProcessor | ( | int | argc, |
| char * | argv[] | ||
| ) |
Parses the command line arguments and generates the processor.
Definition at line 100 of file GenerateProcessor.cc.
References __func__, StringTools::chopString(), FileSystem::currentWorkingDir(), DEFAULT_IMEMWIDTH_IN_MAUS, FileSystem::DIRECTORY_SEPARATOR, ProGeOptions::entityName, Exception::errorMessage(), FileSystem::fileExists(), FileSystem::fileExtension(), Exception::fileName(), ProGe::ProGeUI::generateProcessor(), ProGe::ProGeUI::generateScripts(), ProGe::ProGeUI::generateTestBench(), ProGe::ProGeUI::integrateProcessor(), TTAMachine::Machine::isRISCVMachine(), CmdLineOptions::isVerboseSpamSwitchDefined(), CmdLineOptions::isVerboseSwitchDefined(), ProGeOptions::language, Exception::lineNum(), listICDecPluginParameters(), listIntegrators(), ProGe::ProGeUI::loadBinaryEncoding(), ProGe::ProGeUI::loadMachine(), ProGe::ProGeUI::loadMachineImplementation(), ProGe::ProGeUI::loadProcessorConfiguration(), ProGe::ProGeUI::machine_, CmdLineParser::numberOfArguments(), options, ProGeOptions::outputDirectory, CmdLineOptions::parse(), MachInfoCmdLineOptions::printHelp(), Exception::procedureName(), program, FileSystem::relativeDir(), Application::setVerboseLevel(), ProGeOptions::sharedOutputDirectory, ProGeOptions::simulationRuntime, string2MemType(), validIntegratorParameters(), Application::VERBOSE_LEVEL_INCREASED, Application::VERBOSE_LEVEL_SPAM, and ProGe::Verilog.
Referenced by main().

|
private |
Generates the output directory name.
| options | Proge command line options. |
| outputDir | String where output directory name is to be stored. |
Definition at line 270 of file GenerateProcessor.cc.
References FileSystem::absolutePathOf(), FileSystem::currentWorkingDir(), FileSystem::DIRECTORY_SEPARATOR, FileSystem::expandTilde(), and options.

|
private |
Prints listing of IC/Decoder generator plugin parameters to stdout.
| pluginFile | Full path to the plugin file. |
Definition at line 291 of file GenerateProcessor.cc.
References PluginTools::addSearchPath(), assert, Exception::errorMessage(), FileSystem::fileNameBody(), FileSystem::fileOfPath(), Environment::icDecoderPluginPaths(), PluginTools::importSymbol(), machine, and PluginTools::registerModule().
Referenced by generateProcessor().

|
private |
Definition at line 373 of file GenerateProcessor.cc.
Referenced by generateProcessor().
|
private |
Definition at line 441 of file GenerateProcessor.cc.
References DRAM, NONE, ONCHIP, SRAM, UNKNOWN, and VHDL_ARRAY.
Referenced by generateProcessor(), and validIntegratorParameters().
|
private |
Definition at line 393 of file GenerateProcessor.cc.
References StringTools::endsWith(), options, program, string2MemType(), and UNKNOWN.
Referenced by generateProcessor().
