scc 2025.09
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
void register_resource (resource_access_if *res)
 register a resource with this reset domain

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.

◆ reset_start()

virtual void scc::resetable::reset_start ( )
inlinevirtual

distributes the begin of the reset to all registered components and set the reset state

Definition at line 40 of file resetable.h.

◆ reset_stop()

virtual void scc::resetable::reset_stop ( )
inlinevirtual

distributes the end of the reset to all registered components and finishes the reset state

Definition at line 50 of file resetable.h.

Member Data Documentation

◆ _in_reset

bool scc::resetable::_in_reset = false
protected

Definition at line 72 of file resetable.h.

◆ resources

std::vector<resource_access_if*> scc::resetable::resources
protected

Definition at line 71 of file resetable.h.


The documentation for this class was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/components/scc/resetable.h