Simplified, generic interface to Memory models. More...
#include <simpleMem.h>
Data Structures | |
class | Handler |
Event Handler class with user-data argument. More... | |
class | Handler< classT, void > |
Event Handler class without user-data. More... | |
class | HandlerBase |
Functor classes for Clock handling. More... | |
class | Request |
Represents both memory requests and responses. More... | |
Public Types | |
typedef uint64_t | Addr |
All Addresses can be 64-bit. | |
Public Member Functions | |
SimpleMem (SST::Component *comp, Params ¶ms) | |
Constructor, designed to be used via 'loadModuleWithComponent'. | |
virtual bool | initialize (const std::string &linkName, HandlerBase *handler=NULL)=0 |
Second half of building the interface. | |
virtual void | sendInitData (Request *req)=0 |
Sends a memory-based request during the init() phase. | |
virtual void | sendInitData (SST::Event *ev) |
Sends a generic Event during the init() phase (Mostly acts as a passthrough). | |
virtual SST::Event * | recvInitData () |
Receive any data during the init() phase. | |
virtual SST::Link * | getLink (void) const =0 |
Returns a handle to the underlying SST::Link. | |
virtual void | sendRequest (Request *req)=0 |
Send a Request to the other side of the link. | |
virtual Request * | recvResponse (void)=0 |
Receive a Request response from the side of the link. |
Simplified, generic interface to Memory models.
SST::Interfaces::SimpleMem::SimpleMem | ( | SST::Component * | comp, | |
Params & | params | |||
) | [inline] |
Constructor, designed to be used via 'loadModuleWithComponent'.
virtual bool SST::Interfaces::SimpleMem::initialize | ( | const std::string & | linkName, | |
HandlerBase * | handler = NULL | |||
) | [pure virtual] |
Second half of building the interface.
Intialize with link name name, and handler, if any
virtual SST::Event* SST::Interfaces::SimpleMem::recvInitData | ( | ) | [inline, virtual] |
Receive any data during the init() phase.
References getLink(), and SST::Link::recvInitData().
virtual Request* SST::Interfaces::SimpleMem::recvResponse | ( | void | ) | [pure virtual] |
virtual void SST::Interfaces::SimpleMem::sendInitData | ( | SST::Event * | ev | ) | [inline, virtual] |
Sends a generic Event during the init() phase (Mostly acts as a passthrough).
References getLink(), and SST::Link::sendInitData().