A proxy data class that stores it's value using a b_transport interface Data is passed by pointer, array indexing (operator[]) is supported.
More...
#include <registers.h>
|
|
void | get (TYPE *dst, uint64_t idx=0, uint64_t length=1) |
|
void | set (TYPE *src, uint64_t idx=0, uint64_t length=1, bool use_mask=true) |
|
void | write_with_mask (TYPE *src, TYPE *dst, uint64_t length) |
|
void | write_with_mask (TYPE *src, TYPE *dst, uint64_t length, TYPE mask) |
|
TYPE & | operator[] (int idx) |
| void | get_bytes (TYPE *dst, uint64_t byte_offset) |
| void | set_bytes (TYPE *src, uint64_t byte_offset, bool use_mask=true) |
|
void | invalidate_direct_mem_ptr (sc_dt::uint64 start, sc_dt::uint64 end) |
|
| proxy_data_array (scp::scp_logger_cache &logger, std::string name, std::string path_name, uint64_t _offset=0, uint64_t number=1, TYPE mask=gs_full_mask< TYPE >(), uint64_t stride=sizeof(TYPE), uint64_t total_span_override=0) |
|
|
std::string | m_path_name |
|
cci::cci_param< uint64_t > | p_number |
|
cci::cci_param< uint64_t > | p_offset |
|
cci::cci_param< uint64_t > | p_size |
|
cci::cci_param< uint64_t > | p_stride |
|
cci::cci_param< uint64_t > | p_elem_size |
|
cci::cci_param< TYPE > | p_mask |
|
cci::cci_param< bool > | p_relative_addresses |
|
tlm_utils::simple_initiator_socket< proxy_data_array, DEFAULT_TLM_BUSWIDTH > | initiator_socket |
|
|
virtual bool | has_element_masks () const |
|
virtual TYPE | mask_for_element (uint64_t index) const |
|
virtual TYPE | mask_for_byte_offset (uint64_t byte_offset) const |
template<class TYPE>
class gs::proxy_data_array< TYPE >
A proxy data class that stores it's value using a b_transport interface Data is passed by pointer, array indexing (operator[]) is supported.
◆ get_bytes()
Single-element read at a raw byte offset relative to p_offset.
◆ set_bytes()
template<class TYPE>
| void gs::proxy_data_array< TYPE >::set_bytes |
( |
TYPE * | src, |
|
|
uint64_t | byte_offset, |
|
|
bool | use_mask = true ) |
|
inline |
Single-element write at a raw byte offset; RMW-masked when use_mask && !full_mask.
The documentation for this class was generated from the following file: