scc  2022.4.0
SystemC components library
scc::resetable Class Reference

base class for components having a reset More...

#include <resetable.h>

Inheritance diagram for scc::resetable:

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
 

Detailed Description

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.

Member Function Documentation

◆ in_reset()

bool scc::resetable::in_reset ( )
inline

get the current state of this reset domain

Returns
true if reset state is active

Definition at line 61 of file resetable.h.

◆ register_resource()

void scc::resetable::register_resource ( resource_access_if res)
inline

register a resource with this reset domain

Parameters
resthe resource belonging to this reset domain

Definition at line 68 of file resetable.h.


The documentation for this class was generated from the following file: