scc
2022.4.0
SystemC components library
|
#include <register.h>
Public Types | |
using | BASE_DATA_TYPE = typename impl::helper< DATATYPE >::Type |
using | value_type = sc_register< DATATYPE > |
using | pointer = value_type * |
Public Types inherited from scc::indexed_resource_access_if | |
using | value_type = resource_access_if |
using | pointer = value_type * |
using | const_pointer = const value_type * |
using | reference = value_type & |
using | const_reference = const value_type & |
using | iterator = resource_access_if * |
using | const_iterator = const resource_access_if * |
Public Member Functions | |
sc_register_indexed (sc_core::sc_module_name nm, std::array< DATATYPE, SIZE > &storage, const DATATYPE reset_val, resetable &owner, BASE_DATA_TYPE rdmask=std::numeric_limits< BASE_DATA_TYPE >::is_signed ? -1 :std::numeric_limits< BASE_DATA_TYPE >::max(), BASE_DATA_TYPE wrmask=std::numeric_limits< BASE_DATA_TYPE >::is_signed ? -1 :std::numeric_limits< BASE_DATA_TYPE >::max()) | |
~sc_register_indexed () override | |
size_t | size () override |
void | set_read_cb (std::function< bool(size_t, const sc_register< DATATYPE > &, DATATYPE &)> read_cb) |
void | set_read_cb (std::function< bool(size_t, const sc_register< DATATYPE > &, DATATYPE &, sc_core::sc_time &)> read_cb) |
void | set_write_cb (std::function< bool(size_t, sc_register< DATATYPE > &, DATATYPE const &)> write_cb) |
void | set_write_cb (std::function< bool(size_t, sc_register< DATATYPE > &, DATATYPE const &, sc_core::sc_time &)> write_cb) |
reference | operator[] (size_t idx) noexcept override |
const_reference | operator[] (size_t idx) const noexcept override |
reference | at (size_t idx) override |
const_reference | at (size_t idx) const override |
Public Member Functions inherited from scc::indexed_resource_access_if | |
virtual reference | operator[] (std::size_t idx) noexcept=0 |
get value at index More... | |
virtual const_reference | operator[] (std::size_t idx) const noexcept=0 |
get value at index More... | |
virtual reference | at (std::size_t idx)=0 |
virtual const_reference | at (std::size_t idx) const =0 |
an indexed register aka a register file of a certain type
Definition at line 338 of file register.h.
|
inline |
the constructor
nm | |
storage | |
reset_val | |
owner | |
rdmask | |
wrmask |
Definition at line 354 of file register.h.
|
inlineoverride |
the destructor
Definition at line 367 of file register.h.
|
inlineoverride |
const element access operator
idx |
Definition at line 450 of file register.h.
|
inlineoverride |
Element access operator
idx | the index |
Definition at line 440 of file register.h.
|
inlineoverridenoexcept |
const element access operator
idx |
Definition at line 433 of file register.h.
|
inlineoverridenoexcept |
Element access operator
idx | the index |
Definition at line 426 of file register.h.
|
inline |
set the read callback triggered upon a read request without forwarding the annotated time this is primary for backward compatibility
read_cb |
Definition at line 380 of file register.h.
|
inline |
set the read callback triggered upon a read request
read_cb |
Definition at line 390 of file register.h.
|
inline |
set the write callback triggered upon a write request without forwarding the annotated time this is primary for backward compatibility
write_cb |
Definition at line 403 of file register.h.
|
inline |
set the write callback triggered upon a write request
write_cb |
Definition at line 413 of file register.h.
|
inlineoverridevirtual |
get the size of the register file
Implements scc::indexed_resource_access_if.
Definition at line 373 of file register.h.