|
scc
2024.06
SystemC components library
|
base class for components having a reset More...
#include <resetable.h>

Public Member Functions | |
| 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... | |
Protected Attributes | |
| std::vector< resource_access_if * > | resources |
| bool | _in_reset = false |
base class for components having a reset
This class forms a reset domain which is a set of components (sc_modules) having the same reset. sc_modules using sc_registers should inherit from this class as well so that all registers get the respective reset.
Definition at line 32 of file resetable.h.
|
inline |
get the current state of this reset domain
Definition at line 61 of file resetable.h.
|
inline |
register a resource with this reset domain
| res | the resource belonging to this reset domain |
Definition at line 68 of file resetable.h.