Class that encapsulates a 'register' that proxies it's data via a tlm interface, and uses callbacks (on a tlm interface).
More...
|
|
| gs_register (std::string _name, std::string path="", uint64_t offset=0, uint64_t number=1, TYPE mask=gs_full_mask< TYPE >()) |
|
void | operator= (TYPE value) |
|
| operator TYPE () |
|
void | operator= (gs_register< TYPE > &other) |
|
void | operator+= (TYPE other) |
|
void | operator-= (TYPE other) |
|
void | operator/= (TYPE other) |
|
void | operator*= (TYPE other) |
|
void | operator&= (TYPE other) |
|
void | operator|= (TYPE other) |
|
void | operator^= (TYPE other) |
|
void | operator<<= (TYPE other) |
|
void | operator>>= (TYPE other) |
|
gs_register_element< TYPE > | operator[] (int idx) |
|
void | get (TYPE *dst, uint64_t idx, uint64_t length) |
|
void | set (TYPE *src, uint64_t idx, uint64_t length, bool use_mask=true) |
|
gs_bitfield< TYPE > | operator[] (gs_field< TYPE > &f) |
|
std::string | get_regname () const |
|
std::string | get_path () const |
|
uint64_t | get_offset () const |
|
uint64_t | get_size () const |
|
void | set_mask (TYPE mask) |
|
TYPE | get_mask () const |
| void | capture_txn_pre (tlm::tlm_generic_payload &txn) override |
| void | handle_mask_post (tlm::tlm_generic_payload &txn) override |
|
void | pre_read (tlm_fnct::TLMFUNC cb) |
|
void | pre_write (tlm_fnct::TLMFUNC cb) |
|
void | post_read (tlm_fnct::TLMFUNC cb) |
|
void | post_write (tlm_fnct::TLMFUNC cb) |
|
| port_fnct (std::string name, std::string path_name) |
|
void | register_transport_dbg_func (std::function< unsigned int(tlm::tlm_generic_payload &)> fn) |
|
uint32_t | get () |
|
| operator uint32_t () |
|
void | set (uint32_t value) |
|
void | operator= (uint32_t value) |
|
| proxy_data (scp::scp_logger_cache &logger, std::string name, std::string path_name, uint64_t offset=0, uint64_t number=1, uint64_t start=0, uint64_t length=sizeof(uint32_t) *8, uint32_t mask=gs_full_mask< uint32_t >()) |
|
void | get (uint32_t *dst, uint64_t idx=0, uint64_t length=1) |
|
void | set (uint32_t *src, uint64_t idx=0, uint64_t length=1, bool use_mask=true) |
|
void | write_with_mask (uint32_t *src, uint32_t *dst, uint64_t length) |
|
uint32_t & | operator[] (int idx) |
| void | get_bytes (uint32_t *dst, uint64_t byte_offset) |
| void | set_bytes (uint32_t *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, uint32_t mask=gs_full_mask< uint32_t >(), uint64_t stride=sizeof(uint32_t), 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< uint32_t > | p_mask |
|
cci::cci_param< bool > | p_relative_addresses |
|
tlm_utils::simple_initiator_socket< proxy_data_array, DEFAULT_TLM_BUSWIDTH > | initiator_socket |
|
std::string | parent (std::string name) |
|
virtual bool | has_element_masks () const |
|
virtual uint32_t | mask_for_element (uint64_t index) const |
|
virtual uint32_t | mask_for_byte_offset (uint64_t byte_offset) const |
template<class TYPE = uint32_t>
class gs::gs_register< TYPE >
Class that encapsulates a 'register' that proxies it's data via a tlm interface, and uses callbacks (on a tlm interface).