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


Public Member Functions | |
| tlm_target_bfs_register_base (sc_core::sc_module_name name) | |
| template<unsigned buswidth> | |
| void | registerResources (scc::tlm_target< buswidth > &target) |
| bitfield_register< uint32_t > & | getRegister (const std::string &name) |
| Search for a register by name. More... | |
| bitfield< uint32_t > & | getBitfieldByName (const std::string ®name, const std::string &name) |
| Search for a bitfield by name and register name. More... | |
| bitfield< uint32_t > & | getBitfieldById (const std::string &urid) |
| Search for a bitfield by urid. More... | |
| bitfield< uint32_t > & | getBitfield (const std::string ®name, const std::string &name, const std::string &urid) |
| Preferred way to get access to a bitfield. More... | |
Public Member Functions inherited from scc::resetable | |
| virtual void | reset_start () |
| distributes the begin of the reset to all registered components and set the reset state | |
| virtual void | reset_stop () |
| distributes the end of the reset to all registered components and finishes the reset state | |
| bool | in_reset () |
| get the current state of this reset domain More... | |
| void | register_resource (resource_access_if *res) |
| register a resource with this reset domain More... | |
Additional Inherited Members | |
Protected Attributes inherited from scc::resetable | |
| std::vector< resource_access_if * > | resources |
| bool | _in_reset = false |
Base class the register layout classes for peripheral_base_minres must derive from.
| derived_t | Type of the concrete register class. Used for CRTP. |
| use_URID | Set this to true if the bitfield/register layout is not the same as the original. If true, then register lookups work by urid and not by regname and bitfield name. |
Definition at line 326 of file tlm_target_bfs_register_base.h.
|
inline |
Preferred way to get access to a bitfield.
If use_URID is true searches a bitfield by the specified urid. If use_URID is false searches a bitfield by name and regname. Also generates a warning if the found bitfield has an urid different from the specified urid.
If no matching bitfield is found a FATALERROR is generated.
Definition at line 395 of file tlm_target_bfs_register_base.h.
|
inline |
Search for a bitfield by urid.
If no matching bitfield is found a FATALERROR is generated.
Definition at line 376 of file tlm_target_bfs_register_base.h.
|
inline |
Search for a bitfield by name and register name.
If the register layout could change use getBitfield() instead.
If no matching bitfield is found a FATALERROR is generated.
Definition at line 359 of file tlm_target_bfs_register_base.h.
|
inline |
Search for a register by name.
If no matching register is found a FATALERROR is generated.
Definition at line 343 of file tlm_target_bfs_register_base.h.