|
scc
2024.06
SystemC components library
|
#include <register.h>


Public Member Functions | |
| sc_register_masked (sc_core::sc_module_name nm, DATATYPE &storage, const DATATYPE reset_val, resetable &owner) | |
Public Member Functions inherited from scc::impl::sc_register< DATATYPE > | |
| sc_register (sc_core::sc_module_name nm, DATATYPE &storage, const DATATYPE reset_val, resetable &owner, DATATYPE rdmask=get_max_uval< DATATYPE >(), DATATYPE wrmask=get_max_uval< DATATYPE >()) | |
| the constructor More... | |
| ~sc_register ()=default | |
| desctructor | |
| size_t | size () const override |
| get the size of this register in bytes More... | |
| void | reset () override |
| reset the register | |
| bool | write (const uint8_t *data, size_t length, uint64_t offset, sc_core::sc_time &d) override |
| write function from resource_access_if More... | |
| bool | read (uint8_t *data, size_t length, uint64_t offset, sc_core::sc_time &d) const override |
| read function from resource_access_if More... | |
| bool | write_dbg (const uint8_t *data, size_t length, uint64_t offset=0) override |
| debug write function from resource_access_if More... | |
| bool | read_dbg (uint8_t *data, size_t length, uint64_t offset=0) const override |
| debug read function from resource_access_if More... | |
| operator DATATYPE () const | |
| cast operator to get underlying storage | |
| DATATYPE | get () const |
| get the underlying storage More... | |
| void | put (DATATYPE data) const |
| write to the underlying storage More... | |
| this_type & | operator= (DATATYPE other) |
| assignment operator More... | |
| this_type & | operator|= (DATATYPE other) |
| unary or More... | |
| this_type & | operator&= (DATATYPE other) |
| unary and More... | |
| void | set_read_cb (std::function< bool(const this_type &, DATATYPE &)> read_cb) |
| set the read callback More... | |
| void | set_read_cb (std::function< bool(const this_type &, DATATYPE &, sc_core::sc_time &)> read_cb) |
| void | set_write_cb (std::function< bool(this_type &, const DATATYPE &)> write_cb) |
| set the write callback More... | |
| void | set_write_cb (std::function< bool(this_type &, const DATATYPE &, sc_core::sc_time &)> write_cb) |
| void | trace (sc_core::sc_trace_file *trf) const override |
| trace the register value to the given trace file More... | |
Public Member Functions inherited from scc::resource_access_if | |
| virtual bool | write (const uint8_t *data, std::size_t length, uint64_t offset, sc_core::sc_time &d)=0 |
| bool | write (const uint8_t *data, std::size_t length, uint64_t offset=0) |
| virtual bool | read (uint8_t *data, std::size_t length, uint64_t offset, sc_core::sc_time &d) const =0 |
| bool | read (uint8_t *data, std::size_t length, uint64_t offset=0) const |
| virtual bool | write_dbg (const uint8_t *data, std::size_t length, uint64_t offset=0)=0 |
| debug write to the resource More... | |
| virtual bool | read_dbg (uint8_t *data, std::size_t length, uint64_t offset=0) const =0 |
| debug read the data from the resource More... | |
Public Member Functions inherited from scc::traceable | |
| virtual bool | is_trace_enabled () const |
| returns of this component shall be traced More... | |
Additional Inherited Members | |
Public Types inherited from scc::impl::sc_register< DATATYPE > | |
| using | this_type = sc_register< DATATYPE > |
Public Attributes inherited from scc::impl::sc_register< DATATYPE > | |
| const DATATYPE | res_val |
| the reset value | |
| const DATATYPE | rdmask |
| the SW read mask | |
| const DATATYPE | wrmask |
| the SW write mask | |
alias class to map template argument read an write mask to constructor arguments
Definition at line 466 of file register.h.