OpenASIP
2.0
|
#include <Stratix2SramGenerator.hh>
Public Member Functions | |
Stratix2SramGenerator (int memMauWidth, int widthInMaus, int addrWidth, TCEString initFile, const PlatformIntegrator *integrator, std::ostream &warningStream, std::ostream &errorStream) | |
virtual | ~Stratix2SramGenerator () |
virtual void | addMemory (const ProGe::NetlistBlock &ttaCore, ProGe::NetlistBlock &integratorBlock, int memIndex, int coreId) |
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 |
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 |
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 Stratix2SramGenerator.hh.
Stratix2SramGenerator::Stratix2SramGenerator | ( | int | memMauWidth, |
int | widthInMaus, | ||
int | addrWidth, | ||
TCEString | initFile, | ||
const PlatformIntegrator * | integrator, | ||
std::ostream & | warningStream, | ||
std::ostream & | errorStream | ||
) |
Definition at line 48 of file Stratix2SramGenerator.cc.
References MemoryGenerator::addParameter(), MemoryGenerator::addPort(), ProGe::BIDIR, ProGe::BIT_VECTOR, and ProGe::OUT.
|
virtual |
Definition at line 93 of file Stratix2SramGenerator.cc.
|
virtual |
Reimplemented from MemoryGenerator.
Definition at line 98 of file Stratix2SramGenerator.cc.
References assert, MemoryGenerator::connectPorts(), HDLPort::convertToNetlistPort(), MemoryGenerator::corePortName(), ProGe::Parameter::name(), HDLPort::needsInversion(), MemoryGenerator::parameter(), MemoryGenerator::parameterCount(), ProGe::NetlistBlock::port(), MemoryGenerator::port(), MemoryGenerator::portCount(), MemoryGenerator::portKeyName(), ProGe::NetlistBlock::setParameter(), ProGe::Parameter::type(), and ProGe::Parameter::value().
|
virtual |
Implements MemoryGenerator.
Definition at line 135 of file Stratix2SramGenerator.cc.
|
virtual |
Implements MemoryGenerator.
Definition at line 127 of file Stratix2SramGenerator.cc.
|
protectedvirtual |
Implements MemoryGenerator.
Definition at line 150 of file Stratix2SramGenerator.cc.
References MemoryGenerator::memoryIndexString().
|
protectedvirtual |
Implements MemoryGenerator.
Definition at line 143 of file Stratix2SramGenerator.cc.