17 #ifndef _SYSC_RESETTABLE_H_
18 #define _SYSC_RESETTABLE_H_
20 #include "resource_access_if.h"
42 for(
auto res : resources)
51 for(
auto res : resources)
71 std::vector<resource_access_if*> resources;
72 bool _in_reset =
false;
base class for components having a reset
void register_resource(resource_access_if *res)
register a resource with this reset domain
bool in_reset()
get the current state of this reset domain
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
interface defining access to a resource e.g. a register