OpenASIP  2.0
Public Member Functions | Protected Member Functions | List of all members
DummyMemGenerator Class Reference

#include <DummyMemGenerator.hh>

Inheritance diagram for DummyMemGenerator:
Inheritance graph
Collaboration diagram for DummyMemGenerator:
Collaboration graph

Public Member Functions

 DummyMemGenerator (int memMauWidth, int widthInMaus, int addrWidth, const PlatformIntegrator *integrator, std::ostream &warningStream, std::ostream &errorStream)
 
virtual ~DummyMemGenerator ()
 
virtual bool generatesComponentHdlFile () const
 
virtual bool checkFuPort (const std::string, std::vector< TCEString > &) const
 
virtual std::vector< TCEStringgenerateComponentFile (TCEString)
 
void addMemory (const ProGe::NetlistBlock &, ProGe::NetlistBlock &, int, int)
 
- Public Member Functions inherited from MemoryGenerator
 MemoryGenerator (int memMauWidth, int widthInMaus, int addrWidth, TCEString initFile, const PlatformIntegrator *integrator, std::ostream &warningStream, std::ostream &errorStream)
 
virtual ~MemoryGenerator ()
 
virtual bool isCompatible (const ProGe::NetlistBlock &ttaCore, int coreId, std::vector< TCEString > &reasons) const
 
int memoryTotalWidth () const
 
int memoryMauSize () const
 
int memoryWidthInMaus () const
 
int memoryAddrWidth () const
 
TCEString initializationFile () const
 
void addLsu (TTAMachine::FunctionUnit &lsuArch, std::vector< std::string > lsuPorts)
 

Protected Member Functions

virtual TCEString moduleName () const
 
virtual TCEString instanceName (int, int) const
 
- Protected Member Functions inherited from MemoryGenerator
virtual void connectPorts (ProGe::NetlistBlock &netlistBlock, const ProGe::NetlistPort &memPort, const ProGe::NetlistPort &corePort, bool inverted, int coreId)
 
virtual MemoryGenerator::BlockPair createMemoryNetlistBlock (ProGe::NetlistBlock &integratorBlock, int memIndex, int coreId)
 
const PlatformIntegratorplatformIntegrator () const
 
std::ostream & warningStream ()
 
std::ostream & errorStream ()
 
int portCount () const
 
const HDLPortport (int index) const
 
const HDLPortportByKeyName (TCEString name) const
 
TCEString portKeyName (const HDLPort *port) const
 
void addPort (const TCEString &name, HDLPort *port)
 
int parameterCount () const
 
const ProGe::Parameterparameter (int index) const
 
void addParameter (const ProGe::Parameter &add)
 
TCEString ttaCoreName () const
 
TCEString memoryIndexString (int coreId, int memIndex) const
 
TCEString templatePath () const
 
void instantiateTemplate (const TCEString &inFile, const TCEString &outFile, const TCEString &entity) const
 
bool hasLSUArchitecture () const
 
const TTAMachine::FunctionUnitlsuArchitecture () const
 
TCEString corePortName (const TCEString &portBaseName, int coreId) const
 

Additional Inherited Members

- Protected Types inherited from MemoryGenerator
typedef std::multimap< TCEString, HDLPort * > PortMap
 
typedef std::pair< ProGe::NetlistBlock *, ProGe::VirtualNetlistBlock * > BlockPair
 

Detailed Description

Definition at line 43 of file DummyMemGenerator.hh.

Constructor & Destructor Documentation

◆ DummyMemGenerator()

DummyMemGenerator::DummyMemGenerator ( int  memMauWidth,
int  widthInMaus,
int  addrWidth,
const PlatformIntegrator integrator,
std::ostream &  warningStream,
std::ostream &  errorStream 
)

Definition at line 35 of file DummyMemGenerator.cc.

41  :
42  MemoryGenerator(memMauWidth, widthInMaus, addrWidth, "",
43  integrator, warningStream, errorStream) {
44 }

◆ ~DummyMemGenerator()

DummyMemGenerator::~DummyMemGenerator ( )
virtual

Definition at line 46 of file DummyMemGenerator.cc.

46  {
47 }

Member Function Documentation

◆ addMemory()

void DummyMemGenerator::addMemory ( const ProGe::NetlistBlock ,
ProGe::NetlistBlock ,
int  ,
int   
)
inlinevirtual

Reimplemented from MemoryGenerator.

Definition at line 63 of file DummyMemGenerator.hh.

64  {}

◆ checkFuPort()

virtual bool DummyMemGenerator::checkFuPort ( const std::string  ,
std::vector< TCEString > &   
) const
inlinevirtual

Reimplemented from MemoryGenerator.

Definition at line 57 of file DummyMemGenerator.hh.

59  {return true;};

◆ generateComponentFile()

std::vector< TCEString > DummyMemGenerator::generateComponentFile ( TCEString  )
virtual

Implements MemoryGenerator.

Definition at line 50 of file DummyMemGenerator.cc.

50  {
51  std::vector<TCEString> empty;
52  return empty;
53 }

◆ generatesComponentHdlFile()

virtual bool DummyMemGenerator::generatesComponentHdlFile ( ) const
inlinevirtual

Implements MemoryGenerator.

Definition at line 56 of file DummyMemGenerator.hh.

56 {return false;};

◆ instanceName()

virtual TCEString DummyMemGenerator::instanceName ( int  ,
int   
) const
inlineprotectedvirtual

Implements MemoryGenerator.

Definition at line 69 of file DummyMemGenerator.hh.

69 {return "";};

◆ moduleName()

virtual TCEString DummyMemGenerator::moduleName ( ) const
inlineprotectedvirtual

Implements MemoryGenerator.

Definition at line 67 of file DummyMemGenerator.hh.

67 {return "";};

The documentation for this class was generated from the following files:
MemoryGenerator::MemoryGenerator
MemoryGenerator(int memMauWidth, int widthInMaus, int addrWidth, TCEString initFile, const PlatformIntegrator *integrator, std::ostream &warningStream, std::ostream &errorStream)
Definition: MemoryGenerator.cc:59
MemoryGenerator::warningStream
std::ostream & warningStream()
Definition: MemoryGenerator.cc:231
MemoryGenerator::errorStream
std::ostream & errorStream()
Definition: MemoryGenerator.cc:237