The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::memory::DebugMemoryIF::AccessWindow Struct Reference

Defines an access window within this interface. Accesses through a memory interface are constrained to this window. More...

#include <DebugMemoryIF.hpp>

Public Member Functions

AccessWindowoperator= (const AccessWindow &)=delete
 
 AccessWindow (const AccessWindow &)=default
 Default copy constructor.
 
 AccessWindow (addr_t _start, addr_t _end, const std::string &_name="default")
 Construct address window with range.
 
bool containsAddr (addr_t addr) const noexcept
 Does this window interval contain the specified post-translated address addr.
 

Public Attributes

const addr_t start
 inclusive start address (block-aligned)
 
const addr_t end
 exclusive end address (block-aligned)
 
const std::string name
 What is this window called (for printouts)
 

Detailed Description

Defines an access window within this interface. Accesses through a memory interface are constrained to this window.

Non-assignable

Definition at line 78 of file DebugMemoryIF.hpp.

Constructor & Destructor Documentation

◆ AccessWindow()

sparta::memory::DebugMemoryIF::AccessWindow::AccessWindow ( addr_t  _start,
addr_t  _end,
const std::string &  _name = "default" 
)
inline

Construct address window with range.

Parameters
_startStart address of the window in this interface's post-translated addresses (inclusive)
_endEnd address of the window in this interface's post-translated addresses (exclusive)
Note
start must be < end and both addresses must be block-aligned within whatever interface the window is contained

Definition at line 98 of file DebugMemoryIF.hpp.

Member Function Documentation

◆ containsAddr()

bool sparta::memory::DebugMemoryIF::AccessWindow::containsAddr ( addr_t  addr) const
inlinenoexcept

Does this window interval contain the specified post-translated address addr.

Definition at line 114 of file DebugMemoryIF.hpp.

Member Data Documentation

◆ end

const addr_t sparta::memory::DebugMemoryIF::AccessWindow::end

exclusive end address (block-aligned)

Definition at line 126 of file DebugMemoryIF.hpp.

◆ name

const std::string sparta::memory::DebugMemoryIF::AccessWindow::name

What is this window called (for printouts)

Definition at line 131 of file DebugMemoryIF.hpp.

◆ start

const addr_t sparta::memory::DebugMemoryIF::AccessWindow::start

inclusive start address (block-aligned)

Definition at line 121 of file DebugMemoryIF.hpp.


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