OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ProGeOptions Struct Reference

#include <ProGeOptions.hh>

Collaboration diagram for ProGeOptions:
Collaboration graph

Public Member Functions

 ProGeOptions ()
 
 ProGeOptions (const ProGeCmdLineOptions &cmd)
 
void validate ()
 

Public Attributes

std::string processorToGenerate
 
std::string bemFile
 
std::string idfFile
 
std::string languageStr
 
ProGe::HDL language
 
std::string outputDirectory
 
std::string sharedOutputDirectory
 
std::string pluginParametersQuery
 
bool generateTestbench
 
std::string integratorName
 
std::string imemType
 
std::string dmemType
 
int clockFrequency
 
std::string tpefName
 
std::string entityName
 
bool useAbsolutePaths
 
bool listAvailableIntegrators
 
std::string deviceFamilyName
 
std::string deviceName
 
std::string simulationRuntime
 
bool forceOutputDirectory
 
bool asyncReset
 
bool syncReset
 
std::vector< std::string > hdbList
 
std::vector< std::string > rfIcGateList
 
std::vector< std::string > fuIcGateList
 
std::vector< std::pair< std::string, std::string > > icdArgList
 
bool preferHDLGeneration
 
bool resetAllRegisters
 
std::vector< std::string > fuBackRegistered
 
std::vector< std::string > fuFrontRegistered
 
std::vector< std::string > fuMiddleRegistered
 

Detailed Description

Definition at line 41 of file ProGeOptions.hh.

Constructor & Destructor Documentation

◆ ProGeOptions() [1/2]

ProGeOptions::ProGeOptions ( )
inline

Definition at line 43 of file ProGeOptions.hh.

46 forceOutputDirectory(false), asyncReset(true), syncReset(false),
48 validate();
49 }
bool listAvailableIntegrators
bool preferHDLGeneration
bool forceOutputDirectory
bool generateTestbench
bool useAbsolutePaths

References validate().

Here is the call graph for this function:

◆ ProGeOptions() [2/2]

ProGeOptions::ProGeOptions ( const ProGeCmdLineOptions cmd)
inline

Definition at line 51 of file ProGeOptions.hh.

53 bemFile(cmd.bemFile()), idfFile(cmd.idfFile()),
75 validate();
76 }
bool listAvailableIntegrators() const
std::string pluginParametersQuery() const
std::vector< std::pair< std::string, std::string > > icdArgList() const
std::string tpefName() const
std::vector< std::string > fuFrontRegistered() const
std::vector< std::string > hdbList() const
std::string hdl() const
std::string sharedOutputDirectory() const
std::vector< std::string > rfIcGateList() const
std::string processorToGenerate() const
std::string imemType() const
std::string bemFile() const
std::string deviceFamilyName() const
std::vector< std::string > fuIcGateList() const
std::string idfFile() const
std::string dmemType() const
std::string outputDirectory() const
std::string simulationRuntime() const
std::string integratorName() const
std::string deviceName() const
std::string entityName() const
std::vector< std::string > fuMiddleRegistered() const
std::vector< std::string > fuBackRegistered() const
std::string sharedOutputDirectory
std::string deviceName
std::vector< std::string > fuMiddleRegistered
std::vector< std::string > fuBackRegistered
std::vector< std::string > fuIcGateList
std::string dmemType
std::string integratorName
std::string imemType
std::string deviceFamilyName
std::string processorToGenerate
std::string simulationRuntime
std::vector< std::pair< std::string, std::string > > icdArgList
std::string idfFile
std::string tpefName
std::string outputDirectory
std::string bemFile
std::string languageStr
std::string entityName
std::vector< std::string > hdbList
std::string pluginParametersQuery
std::vector< std::string > rfIcGateList
std::vector< std::string > fuFrontRegistered

References validate().

Here is the call graph for this function:

Member Function Documentation

◆ validate()

void ProGeOptions::validate ( )
inline

Definition at line 114 of file ProGeOptions.hh.

114 {
115 if (outputDirectory.empty()) {
116 outputDirectory = "proge-output";
117 }
118 if (sharedOutputDirectory.empty()) {
120 }
124 if (entityName.empty()) {
125 entityName = "tta0";
126 }
127 if (languageStr == "verilog") {
129 } else {
131 }
132 if (hdbList.empty()) {
133 hdbList.emplace_back("generate_base32.hdb");
134 hdbList.emplace_back("generate_lsu_32.hdb");
135 hdbList.emplace_back("generate_rf_iu.hdb");
136 hdbList.emplace_back("asic_130nm_1.5V.hdb");
137
138 }
139 }
static std::string absolutePathOf(const std::string &pathName)
static std::string expandTilde(const std::string &stringWithTilde)
@ Verilog
Verilog.
Definition ProGeTypes.hh:42
@ VHDL
VHDL.
Definition ProGeTypes.hh:41
ProGe::HDL language

References FileSystem::absolutePathOf(), entityName, FileSystem::expandTilde(), hdbList, language, languageStr, outputDirectory, sharedOutputDirectory, ProGe::Verilog, and ProGe::VHDL.

Referenced by ProGeOptions(), and ProGeOptions().

Here is the call graph for this function:

Member Data Documentation

◆ asyncReset

bool ProGeOptions::asyncReset

Definition at line 101 of file ProGeOptions.hh.

◆ bemFile

std::string ProGeOptions::bemFile

Definition at line 79 of file ProGeOptions.hh.

◆ clockFrequency

int ProGeOptions::clockFrequency

Definition at line 91 of file ProGeOptions.hh.

◆ deviceFamilyName

std::string ProGeOptions::deviceFamilyName

Definition at line 96 of file ProGeOptions.hh.

◆ deviceName

std::string ProGeOptions::deviceName

Definition at line 97 of file ProGeOptions.hh.

◆ dmemType

std::string ProGeOptions::dmemType

Definition at line 90 of file ProGeOptions.hh.

◆ entityName

std::string ProGeOptions::entityName

Definition at line 93 of file ProGeOptions.hh.

Referenced by GenerateProcessor::generateProcessor(), and validate().

◆ forceOutputDirectory

bool ProGeOptions::forceOutputDirectory

Definition at line 99 of file ProGeOptions.hh.

◆ fuBackRegistered

std::vector<std::string> ProGeOptions::fuBackRegistered

Definition at line 109 of file ProGeOptions.hh.

◆ fuFrontRegistered

std::vector<std::string> ProGeOptions::fuFrontRegistered

Definition at line 110 of file ProGeOptions.hh.

◆ fuIcGateList

std::vector<std::string> ProGeOptions::fuIcGateList

Definition at line 105 of file ProGeOptions.hh.

Referenced by FUGen::createShadowRegisters().

◆ fuMiddleRegistered

std::vector<std::string> ProGeOptions::fuMiddleRegistered

Definition at line 111 of file ProGeOptions.hh.

◆ generateTestbench

bool ProGeOptions::generateTestbench

Definition at line 86 of file ProGeOptions.hh.

◆ hdbList

std::vector<std::string> ProGeOptions::hdbList

Definition at line 103 of file ProGeOptions.hh.

Referenced by FUGen::findAbsolutePath(), and validate().

◆ icdArgList

std::vector<std::pair<std::string, std::string> > ProGeOptions::icdArgList

Definition at line 106 of file ProGeOptions.hh.

◆ idfFile

std::string ProGeOptions::idfFile

Definition at line 80 of file ProGeOptions.hh.

◆ imemType

std::string ProGeOptions::imemType

Definition at line 89 of file ProGeOptions.hh.

◆ integratorName

std::string ProGeOptions::integratorName

Definition at line 88 of file ProGeOptions.hh.

◆ language

ProGe::HDL ProGeOptions::language

◆ languageStr

std::string ProGeOptions::languageStr

Definition at line 81 of file ProGeOptions.hh.

Referenced by validate().

◆ listAvailableIntegrators

bool ProGeOptions::listAvailableIntegrators

Definition at line 95 of file ProGeOptions.hh.

◆ outputDirectory

std::string ProGeOptions::outputDirectory

◆ pluginParametersQuery

std::string ProGeOptions::pluginParametersQuery

Definition at line 85 of file ProGeOptions.hh.

◆ preferHDLGeneration

bool ProGeOptions::preferHDLGeneration

Definition at line 107 of file ProGeOptions.hh.

◆ processorToGenerate

std::string ProGeOptions::processorToGenerate

Definition at line 78 of file ProGeOptions.hh.

◆ resetAllRegisters

bool ProGeOptions::resetAllRegisters

Definition at line 108 of file ProGeOptions.hh.

◆ rfIcGateList

std::vector<std::string> ProGeOptions::rfIcGateList

Definition at line 104 of file ProGeOptions.hh.

◆ sharedOutputDirectory

std::string ProGeOptions::sharedOutputDirectory

Definition at line 84 of file ProGeOptions.hh.

Referenced by GenerateProcessor::generateProcessor(), and validate().

◆ simulationRuntime

std::string ProGeOptions::simulationRuntime

Definition at line 98 of file ProGeOptions.hh.

Referenced by GenerateProcessor::generateProcessor().

◆ syncReset

bool ProGeOptions::syncReset

Definition at line 102 of file ProGeOptions.hh.

◆ tpefName

std::string ProGeOptions::tpefName

Definition at line 92 of file ProGeOptions.hh.

◆ useAbsolutePaths

bool ProGeOptions::useAbsolutePaths

Definition at line 94 of file ProGeOptions.hh.


The documentation for this struct was generated from the following file: