gem5  v22.1.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
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
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

References panic_if.

◆ ~Module()

sc_gem5::Module::~Module ( )

Definition at line 60 of file

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

References bindingIndex, panic_if, and ports.

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

◆ deprecatedConstructor()

void sc_gem5::Module::deprecatedConstructor ( )

Definition at line 96 of file module.hh.

References _deprecatedConstructor.

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

◆ endModule()

void sc_gem5::Module::endModule ( )

Definition at line 95 of file module.hh.

References _ended.

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

◆ endOfElaboration()

void sc_gem5::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)

Definition at line 87 of file module.hh.

References gem5::X86ISA::mod.

Referenced by sc_gem5::pickParentModule().

◆ name()

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

Definition at line 94 of file module.hh.

References _name.

Referenced by endOfElaboration().

◆ obj()

Object* sc_gem5::Module::obj ( )

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

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

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)

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)

Definition at line 121 of file module.hh.

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

Member Data Documentation

◆ _deprecatedConstructor

bool sc_gem5::Module::_deprecatedConstructor

Definition at line 78 of file module.hh.

Referenced by deprecatedConstructor(), and endOfElaboration().

◆ _ended

bool sc_gem5::Module::_ended

Definition at line 77 of file module.hh.

Referenced by endModule(), and endOfElaboration().

◆ _name

const char* sc_gem5::Module::_name

Definition at line 74 of file module.hh.

Referenced by name().

◆ _obj

Object* sc_gem5::Module::_obj

Definition at line 76 of file module.hh.

Referenced by finish(), and obj().

◆ _sc_mod

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

◆ 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

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 Wed Dec 21 2022 10:25:09 for gem5 by doxygen 1.9.1