SST::Interfaces::SimpleMem::Request Class Reference

Represents both memory requests and responses. More...

#include <simpleMem.h>

Public Types

enum  Command { Read, Write, ReadResp, WriteResp }
 

Commands and responses possible with a Request object.

More...
enum  Flags { F_NONCACHEABLE = 1<<1, F_LOCKED = 1<<2, F_LLSC = 1<<3, F_LLSC_RESP = 1<<4 }
 

Flags to specify conditions on a Request.

More...
typedef uint64_t id_t
typedef uint32_t flags_t
typedef std::vector< uint8_t > dataVec
 Type of the payload or data.

Public Member Functions

 Request (Command cmd, Addr addr, size_t size, dataVec &data, flags_t flags=0)
 Constructor.
 Request (Command cmd, Addr addr, size_t size, flags_t flags=0)
 Constructor.
void setGroupId (uint32_t _groupId)
 Set Stats Group Id.
void setPayload (const std::vector< uint8_t > &data_in)
 Set the contents of the payload / data field.
void setPayload (uint8_t *data_in, size_t len)
 Set the contents of the payload / data field.
void setVirtualAddress (const Addr newVA)
 Set the virtual address associated with the operation.
uint64_t getVirtualAddress ()
 Get the virtual address associated with the operation.
void setInstructionPointer (const Addr newIP)
Addr getInstructionPointer ()
 Sets the instruction pointer associated with the operation.

Data Fields

Command cmd
Addr addr
size_t size
dataVec data
flags_t flags
id_t id
uint32_t groupId
Addr instrPtr
Addr virtualAddr

Detailed Description

Represents both memory requests and responses.


Member Typedef Documentation

Flag type

Request ID type


Member Enumeration Documentation

Commands and responses possible with a Request object.

Enumerator:
Read 

Issue a Read from Memory

Write 

Issue a Write to Memory

ReadResp 

Response from Memory to a Read

WriteResp 

Response from Memory to a Write

Flags to specify conditions on a Request.

Enumerator:
F_NONCACHEABLE 

This request should not be cached

F_LOCKED 

This request should be locked. A LOCKED read should be soon followed by a LOCKED write (to unlock)


Field Documentation

Target address

Command to issue

Payload data (for Write, or ReadResp)

Referenced by setPayload().

Flags associated with this request or response

Unique ID to identify responses with requests

Instruction pointer associated with the operation

Referenced by getInstructionPointer().

Size of this request or response

Virtual address associated with the operation

Referenced by getVirtualAddress(), and setVirtualAddress().


The documentation for this class was generated from the following files:

Generated on 14 Sep 2015 for SST by  doxygen 1.6.1