scc
2022.4.0
SystemC components library
|
interface defining access to a resource e.g. a register More...
#include <resource_access_if.h>
Public Member Functions | |
virtual std::size_t | size () const =0 |
return the size of the resource More... | |
virtual void | reset ()=0 |
reset the resource | |
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... | |
interface defining access to a resource e.g. a register
Definition at line 30 of file resource_access_if.h.
|
pure virtual |
debug read the data from the resource
data | buffer to read the data into |
length | length of data to read |
offset | offset of the data to read |
Implemented in scc::bitfield_register< datatype_t >.
|
pure virtual |
return the size of the resource
Implemented in scc::impl::sc_register< DATATYPE >, and scc::bitfield_register< datatype_t >.
|
pure virtual |
debug write to the resource
data | to write |
length | of data to write |
offset | of the data to write |
Implemented in scc::bitfield_register< datatype_t >.