The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::memory::Translation Class Reference

An older class used to help in encapsulate read/virtual addresses. More...

#include <Translation.hpp>

Public Member Functions

 Translation ()
 Default constructor.
 
 Translation (addr_t addr, addr_t out)
 Create a Translation object containing a pair of (pre-translation, post-translation) addresses.
 
Translationoperator= (const Translation &rhp)=default
 Assignment operator (builtin)
 
bool isValid () const
 
addr_t getOutputAddress () const
 Returns output address of this translation.
 
addr_t getRealAddress () const
 
addr_t getVirtualAddress () const
 

Detailed Description

An older class used to help in encapsulate read/virtual addresses.

Class that will contain results of an address translation

Definition at line 22 of file Translation.hpp.

Constructor & Destructor Documentation

◆ Translation() [1/2]

sparta::memory::Translation::Translation ( )
inline

Default constructor.

Constructs an invalid Translation object

Definition at line 31 of file Translation.hpp.

◆ Translation() [2/2]

sparta::memory::Translation::Translation ( addr_t  addr,
addr_t  out 
)
inline

Create a Translation object containing a pair of (pre-translation, post-translation) addresses.

Parameters
addrInput address
outTranslated address (from addr)

Definition at line 43 of file Translation.hpp.

Member Function Documentation

◆ getOutputAddress()

addr_t sparta::memory::Translation::getOutputAddress ( ) const
inline

Returns output address of this translation.

Definition at line 59 of file Translation.hpp.

◆ getRealAddress()

addr_t sparta::memory::Translation::getRealAddress ( ) const
inline

Definition at line 63 of file Translation.hpp.

◆ getVirtualAddress()

addr_t sparta::memory::Translation::getVirtualAddress ( ) const
inline

Definition at line 67 of file Translation.hpp.

◆ isValid()

bool sparta::memory::Translation::isValid ( ) const
inline

Definition at line 54 of file Translation.hpp.


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