OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
ProGe::ProGeContext Class Reference

#include <ProGeContext.hh>

Collaboration diagram for ProGe::ProGeContext:
Collaboration graph

Public Member Functions

 ProGeContext ()=delete
 
 ProGeContext (const TTAMachine::Machine &adf, const IDF::MachineImplementation &idf, const std::string &progeOutputDirectory, const std::string &sharedOutputDirectory, const std::string &coreEntityName, HDL targetHDL, int imemWidthInMAUs)
 
virtual ~ProGeContext ()
 
const TTAMachine::Machineadf () const
 
const IDF::MachineImplementationidf () const
 
const std::string & outputDirectory () const
 
const std::string & sharedDeirectory () const
 
const std::string & coreEntityName () const
 
HDL targetHDL () const
 
const GlobalPackageglobalPackage () const
 

Private Attributes

const TTAMachine::Machineadf_
 The ADF. More...
 
const IDF::MachineImplementationidf_
 The IDF. More...
 
const std::string & progeOutputDirectory_
 The target base directory under where generated files are placed. More...
 
const std::string & sharedOutputDirectory_
 The target base directory for files that are shared across multiple TTAs. More...
 
const std::string entityName_
 The entity name of the cores. More...
 
HDL hdl_
 The target language of generated files. More...
 
std::unique_ptr< GlobalPackageglobalPackage_
 The package that defines (multi)core wide constants. More...
 

Detailed Description

Definition at line 60 of file ProGeContext.hh.

Constructor & Destructor Documentation

◆ ProGeContext() [1/2]

ProGe::ProGeContext::ProGeContext ( )
delete

◆ ProGeContext() [2/2]

ProGe::ProGeContext::ProGeContext ( const TTAMachine::Machine adf,
const IDF::MachineImplementation idf,
const std::string &  progeOutputDirectory,
const std::string &  sharedOutputDirectory,
const std::string &  coreEntityName,
HDL  targetHDL,
int  imemWidthInMAUs 
)

Definition at line 40 of file ProGeContext.cc.

46  : adf_(adf),
47  idf_(idf),
48  progeOutputDirectory_(progeOutputDirectory),
49  sharedOutputDirectory_(sharedOutputDirectory),
51  hdl_(targetHDL),
52  globalPackage_(new GlobalPackage(coreEntityName)) {}

◆ ~ProGeContext()

ProGe::ProGeContext::~ProGeContext ( )
virtual

Definition at line 54 of file ProGeContext.cc.

54 {}

Member Function Documentation

◆ adf()

const TTAMachine::Machine & ProGe::ProGeContext::adf ( ) const

◆ coreEntityName()

const std::string & ProGe::ProGeContext::coreEntityName ( ) const

◆ globalPackage()

const GlobalPackage & ProGe::ProGeContext::globalPackage ( ) const

◆ idf()

const IDF::MachineImplementation & ProGe::ProGeContext::idf ( ) const

Definition at line 62 of file ProGeContext.cc.

62  {
63  return idf_;
64 }

References idf_.

Referenced by ProGe::NetlistGenerator::generate(), ProGe::ProcessorGenerator::generateProcessor(), and ProGe::TestBenchBlock::write().

◆ outputDirectory()

const std::string & ProGe::ProGeContext::outputDirectory ( ) const

Definition at line 67 of file ProGeContext.cc.

67  {
68  return progeOutputDirectory_;
69 }

References progeOutputDirectory_.

◆ sharedDeirectory()

const std::string & ProGe::ProGeContext::sharedDeirectory ( ) const

Definition at line 72 of file ProGeContext.cc.

72  {
74 }

References sharedOutputDirectory_.

◆ targetHDL()

HDL ProGe::ProGeContext::targetHDL ( ) const

Definition at line 82 of file ProGeContext.cc.

82  {
83  return hdl_;
84 }

References hdl_.

Member Data Documentation

◆ adf_

const TTAMachine::Machine& ProGe::ProGeContext::adf_
private

The ADF.

Definition at line 87 of file ProGeContext.hh.

Referenced by adf().

◆ entityName_

const std::string ProGe::ProGeContext::entityName_
private

The entity name of the cores.

Definition at line 96 of file ProGeContext.hh.

Referenced by coreEntityName().

◆ globalPackage_

std::unique_ptr<GlobalPackage> ProGe::ProGeContext::globalPackage_
private

The package that defines (multi)core wide constants.

Definition at line 102 of file ProGeContext.hh.

Referenced by globalPackage().

◆ hdl_

HDL ProGe::ProGeContext::hdl_
private

The target language of generated files.

Definition at line 98 of file ProGeContext.hh.

Referenced by targetHDL().

◆ idf_

const IDF::MachineImplementation& ProGe::ProGeContext::idf_
private

The IDF.

Definition at line 89 of file ProGeContext.hh.

Referenced by idf().

◆ progeOutputDirectory_

const std::string& ProGe::ProGeContext::progeOutputDirectory_
private

The target base directory under where generated files are placed.

Definition at line 91 of file ProGeContext.hh.

Referenced by outputDirectory().

◆ sharedOutputDirectory_

const std::string& ProGe::ProGeContext::sharedOutputDirectory_
private

The target base directory for files that are shared across multiple TTAs.

Definition at line 94 of file ProGeContext.hh.

Referenced by sharedDeirectory().


The documentation for this class was generated from the following files:
ProGe::ProGeContext::progeOutputDirectory_
const std::string & progeOutputDirectory_
The target base directory under where generated files are placed.
Definition: ProGeContext.hh:91
ProGe::ProGeContext::targetHDL
HDL targetHDL() const
Definition: ProGeContext.cc:82
ProGe::ProGeContext::globalPackage_
std::unique_ptr< GlobalPackage > globalPackage_
The package that defines (multi)core wide constants.
Definition: ProGeContext.hh:102
ProGe::ProGeContext::adf
const TTAMachine::Machine & adf() const
Definition: ProGeContext.cc:57
ProGe::ProGeContext::adf_
const TTAMachine::Machine & adf_
The ADF.
Definition: ProGeContext.hh:87
ProGe::ProGeContext::sharedOutputDirectory_
const std::string & sharedOutputDirectory_
The target base directory for files that are shared across multiple TTAs.
Definition: ProGeContext.hh:94
ProGe::ProGeContext::idf
const IDF::MachineImplementation & idf() const
Definition: ProGeContext.cc:62
ProGe::ProGeContext::entityName_
const std::string entityName_
The entity name of the cores.
Definition: ProGeContext.hh:96
ProGe::ProGeContext::coreEntityName
const std::string & coreEntityName() const
Definition: ProGeContext.cc:77
ProGe::ProGeContext::hdl_
HDL hdl_
The target language of generated files.
Definition: ProGeContext.hh:98
ProGe::ProGeContext::idf_
const IDF::MachineImplementation & idf_
The IDF.
Definition: ProGeContext.hh:89