gem5 v24.0.0.0
Loading...
Searching...
No Matches
sc_gem5::Module Class Reference

#include <module.hh>

Public Member Functions

 Module (const char *name)
 
 ~Module ()
 
void finish (Object *this_obj)
 
const char * name () const
 
void endModule ()
 
void deprecatedConstructor ()
 
sc_core::sc_modulesc_mod () const
 
void sc_mod (sc_core::sc_module *sc_mod)
 
Objectobj ()
 
void pop ()
 
const char * uniqueName (const char *seed)
 
void bindPorts (std::vector< const ::sc_core::sc_bind_proxy * > &proxies)
 
void beforeEndOfElaboration ()
 
void endOfElaboration ()
 
void startOfSimulation ()
 
void endOfSimulation ()
 

Static Public Member Functions

static ModulefromScModule (::sc_core::sc_module *mod)
 

Public Attributes

std::vector<::sc_core::sc_port_base * > ports
 
std::vector<::sc_core::sc_export_base * > exports
 
int bindingIndex
 

Private Attributes

const char * _name
 
sc_core::sc_module_sc_mod
 
Object_obj
 
bool _ended
 
bool _deprecatedConstructor
 
UniqueNameGen nameGen
 

Detailed Description

Definition at line 71 of file module.hh.

Constructor & Destructor Documentation

◆ Module()

sc_gem5::Module::Module ( const char * name)

Definition at line 51 of file module.cc.

References panic_if.

◆ ~Module()

sc_gem5::Module::~Module ( )

Definition at line 60 of file module.cc.

References sc_gem5::allModules, and pop().

Member Function Documentation

◆ beforeEndOfElaboration()

void sc_gem5::Module::beforeEndOfElaboration ( )

◆ bindPorts()

void sc_gem5::Module::bindPorts ( std::vector< const ::sc_core::sc_bind_proxy * > & proxies)

Definition at line 107 of file module.cc.

References bindingIndex, panic_if, and ports.

Referenced by sc_core::sc_module::operator()().

◆ deprecatedConstructor()

void sc_gem5::Module::deprecatedConstructor ( )
inline

Definition at line 96 of file module.hh.

References _deprecatedConstructor.

Referenced by sc_core::sc_module::sc_module(), and sc_core::sc_module::sc_module().

◆ endModule()

void sc_gem5::Module::endModule ( )
inline

Definition at line 95 of file module.hh.

References _ended.

Referenced by sc_core::sc_module::end_module().

◆ endOfElaboration()

◆ endOfSimulation()

void sc_gem5::Module::endOfSimulation ( )

◆ finish()

void sc_gem5::Module::finish ( Object * this_obj)

◆ fromScModule()

static Module * sc_gem5::Module::fromScModule ( ::sc_core::sc_module * mod)
inlinestatic

Definition at line 87 of file module.hh.

Referenced by sc_gem5::pickParentModule().

◆ name()

const char * sc_gem5::Module::name ( ) const
inline

Definition at line 94 of file module.hh.

References _name.

Referenced by endOfElaboration().

◆ obj()

Object * sc_gem5::Module::obj ( )
inline

Definition at line 113 of file module.hh.

References _obj.

Referenced by sc_core::sc_module::get_child_events(), and sc_core::sc_module::get_child_objects().

◆ pop()

void sc_gem5::Module::pop ( )

Definition at line 94 of file module.cc.

References panic_if, and sc_gem5::popParentModule().

Referenced by ~Module(), and sc_core::sc_module_name::~sc_module_name().

◆ sc_mod() [1/2]

sc_core::sc_module * sc_gem5::Module::sc_mod ( ) const
inline

Definition at line 99 of file module.hh.

References _sc_mod.

Referenced by finish(), and sc_mod().

◆ sc_mod() [2/2]

void sc_gem5::Module::sc_mod ( sc_core::sc_module * sc_mod)
inline

Definition at line 106 of file module.hh.

References _sc_mod, and sc_mod().

◆ startOfSimulation()

void sc_gem5::Module::startOfSimulation ( )

◆ uniqueName()

const char * sc_gem5::Module::uniqueName ( const char * seed)
inline

Definition at line 121 of file module.hh.

References sc_gem5::UniqueNameGen::gen(), and nameGen.

Member Data Documentation

◆ _deprecatedConstructor

bool sc_gem5::Module::_deprecatedConstructor
private

Definition at line 78 of file module.hh.

Referenced by deprecatedConstructor(), and endOfElaboration().

◆ _ended

bool sc_gem5::Module::_ended
private

Definition at line 77 of file module.hh.

Referenced by endModule(), and endOfElaboration().

◆ _name

const char* sc_gem5::Module::_name
private

Definition at line 74 of file module.hh.

Referenced by name().

◆ _obj

Object* sc_gem5::Module::_obj
private

Definition at line 76 of file module.hh.

Referenced by finish(), and obj().

◆ _sc_mod

sc_core::sc_module* sc_gem5::Module::_sc_mod
private

◆ bindingIndex

int sc_gem5::Module::bindingIndex

Definition at line 128 of file module.hh.

Referenced by bindPorts().

◆ exports

std::vector<::sc_core::sc_export_base *> sc_gem5::Module::exports

◆ nameGen

UniqueNameGen sc_gem5::Module::nameGen
private

Definition at line 80 of file module.hh.

Referenced by uniqueName().

◆ ports

std::vector<::sc_core::sc_port_base *> sc_gem5::Module::ports

Definition at line 125 of file module.hh.

Referenced by bindPorts().


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

Generated on Tue Jun 18 2024 16:24:56 for gem5 by doxygen 1.11.0