OpenASIP
2.0
|
#include <VhdlRomGenerator.hh>
Public Member Functions | |
VhdlRomGenerator (int memMauWidth, int widthInMaus, int addrWidth, TCEString initFile, const PlatformIntegrator *integrator, std::ostream &warningStream, std::ostream &errorStream) | |
virtual | ~VhdlRomGenerator () |
virtual bool | generatesComponentHdlFile () const |
virtual std::vector< TCEString > | generateComponentFile (TCEString outputPath) |
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 |
virtual void | addMemory (const ProGe::NetlistBlock &ttaCore, ProGe::NetlistBlock &integratorBlock, int memIndex, int coreId) |
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 coreId, int memIndex) const |
Protected Member Functions inherited from MemoryGenerator | |
virtual bool | checkFuPort (const std::string fuPort, std::vector< TCEString > &reasons) const |
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 PlatformIntegrator * | platformIntegrator () const |
std::ostream & | warningStream () |
std::ostream & | errorStream () |
int | portCount () const |
const HDLPort * | port (int index) const |
const HDLPort * | portByKeyName (TCEString name) const |
TCEString | portKeyName (const HDLPort *port) const |
void | addPort (const TCEString &name, HDLPort *port) |
int | parameterCount () const |
const ProGe::Parameter & | parameter (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::FunctionUnit & | lsuArchitecture () const |
TCEString | corePortName (const TCEString &portBaseName, int coreId) const |
Private Member Functions | |
TCEString | imagePackageName () const |
Additional Inherited Members | |
Protected Types inherited from MemoryGenerator | |
typedef std::multimap< TCEString, HDLPort * > | PortMap |
typedef std::pair< ProGe::NetlistBlock *, ProGe::VirtualNetlistBlock * > | BlockPair |
Definition at line 42 of file VhdlRomGenerator.hh.
VhdlRomGenerator::VhdlRomGenerator | ( | int | memMauWidth, |
int | widthInMaus, | ||
int | addrWidth, | ||
TCEString | initFile, | ||
const PlatformIntegrator * | integrator, | ||
std::ostream & | warningStream, | ||
std::ostream & | errorStream | ||
) |
Definition at line 50 of file VhdlRomGenerator.cc.
References MemoryGenerator::addParameter(), MemoryGenerator::addPort(), ProGe::BIT, ProGe::BIT_VECTOR, ProGe::StaticSignal::GND, ProGe::IN, MemoryGenerator::memoryAddrWidth(), MemoryGenerator::memoryTotalWidth(), ProGe::OUT, and HDLPort::setToStatic().
|
virtual |
Definition at line 83 of file VhdlRomGenerator.cc.
Implements MemoryGenerator.
Definition at line 94 of file VhdlRomGenerator.cc.
References FileSystem::DIRECTORY_SEPARATOR, imagePackageName(), StringTools::indent(), MemoryGenerator::initializationFile(), and moduleName().
|
virtual |
Implements MemoryGenerator.
Definition at line 88 of file VhdlRomGenerator.cc.
|
private |
Definition at line 172 of file VhdlRomGenerator.cc.
References MemoryGenerator::ttaCoreName().
Referenced by generateComponentFile().
|
protectedvirtual |
Implements MemoryGenerator.
Definition at line 165 of file VhdlRomGenerator.cc.
References MemoryGenerator::memoryIndexString().
|
protectedvirtual |
Implements MemoryGenerator.
Definition at line 158 of file VhdlRomGenerator.cc.
References MemoryGenerator::ttaCoreName().
Referenced by generateComponentFile().