systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
systemc_clang::Model Class Reference

#include <Model.h>

Collaboration diagram for systemc_clang::Model:

Public Types

typedef std::pair< std::string, ModuleInstance * > modulePairType
 
typedef std::vector< modulePairTypemoduleMapType
 
typedef std::pair< std::string, EventContainer * > eventPairType
 
typedef std::map< std::string, EventContainer * > eventMapType
 
typedef std::pair< ModuleInstance *, std::vector< ModuleInstance * > > moduleInstancePairType
 
typedef std::map< ModuleInstance *, std::vector< ModuleInstance * > > moduleInstanceMapType
 
typedef pair< EntryFunctionContainer *, FindGPUMacro::forStmtGPUMacroMapTypeentryFunctionGPUMacroPairType
 
typedef map< EntryFunctionContainer *, FindGPUMacro::forStmtGPUMacroMapTypeentryFunctionGPUMacroMapType
 

Public Member Functions

 Model ()
 
virtual ~Model ()
 
void addInstance (ModuleInstance *)
 
void addSimulationTime (FindSimTime::simulationTimeMapType)
 
void addGlobalEvents (FindGlobalEvents::globalEventMapType)
 
void addSCMain (FunctionDecl *)
 
void addEntryFunctionGPUMacroMap (entryFunctionGPUMacroMapType)
 
void updateModuleDecl ()
 
void populateNestedModules ()
 
ModuleInstancegetInstance (const std::string &instance_name)
 
ModuleInstancegetInstance (Decl *instance_decl)
 
ModuleInstancegetRootModuleInstance () const
 
entryFunctionGPUMacroMapType getEntryFunctionGPUMacroMap ()
 
eventMapType getEventMapType ()
 
std::vector< ModuleInstance * > & getInstances ()
 
unsigned int getNumEvents ()
 
std::vector< Transition * > getGSauto ()
 
void dump (raw_ostream &)
 

Protected Attributes

std::vector< ModuleInstance * > module_instances_
 
ModuleInstanceroot_module_inst_
 
FindSimTime::simulationTimeMapType simulation_time_
 
eventMapType event_map_
 
FunctionDecl * scmain_function_decl_
 
FindNetlist::instanceModuleMapType instance_module_map_
 
FindNetlist::portSignalMapType port_signal_map_
 
FindNetlist::instancePortSignalMapType port_signal_instance_map_
 
FindNetlist::instanceListModuleMapType module_instance_list_
 
entryFunctionGPUMacroMapType entry_function_gpu_macro_map_
 

Private Member Functions

 Model (const Model &)
 

Detailed Description

Definition at line 24 of file Model.h.

Member Typedef Documentation

◆ entryFunctionGPUMacroMapType

◆ entryFunctionGPUMacroPairType

◆ eventMapType

Definition at line 30 of file Model.h.

◆ eventPairType

Definition at line 29 of file Model.h.

◆ moduleInstanceMapType

Definition at line 35 of file Model.h.

◆ moduleInstancePairType

Definition at line 33 of file Model.h.

◆ moduleMapType

Definition at line 27 of file Model.h.

◆ modulePairType

Definition at line 26 of file Model.h.

Constructor & Destructor Documentation

◆ Model() [1/2]

Model::Model ( )

Definition at line 7 of file Model.cpp.

◆ ~Model()

Model::~Model ( )
virtual

Definition at line 33 of file Model.cpp.

◆ Model() [2/2]

systemc_clang::Model::Model ( const Model & )
private

Member Function Documentation

◆ addEntryFunctionGPUMacroMap()

void Model::addEntryFunctionGPUMacroMap ( entryFunctionGPUMacroMapType e)

Definition at line 84 of file Model.cpp.

◆ addGlobalEvents()

void Model::addGlobalEvents ( FindGlobalEvents::globalEventMapType eventMap)

Definition at line 90 of file Model.cpp.

◆ addInstance()

void Model::addInstance ( ModuleInstance * mod)

Definition at line 76 of file Model.cpp.

◆ addSCMain()

void Model::addSCMain ( FunctionDecl * fnDecl)

Definition at line 100 of file Model.cpp.

◆ addSimulationTime()

void Model::addSimulationTime ( FindSimTime::simulationTimeMapType simTime)

Definition at line 80 of file Model.cpp.

◆ dump()

void Model::dump ( raw_ostream & )

Definition at line 141 of file Model.cpp.

◆ getEntryFunctionGPUMacroMap()

Model::entryFunctionGPUMacroMapType Model::getEntryFunctionGPUMacroMap ( )

Definition at line 129 of file Model.cpp.

◆ getEventMapType()

Model::eventMapType Model::getEventMapType ( )

Definition at line 137 of file Model.cpp.

◆ getGSauto()

std::vector< Transition * > systemc_clang::Model::getGSauto ( )

◆ getInstance() [1/2]

ModuleInstance * Model::getInstance ( const std::string & instance_name)

Definition at line 102 of file Model.cpp.

◆ getInstance() [2/2]

ModuleInstance * Model::getInstance ( Decl * instance_decl)

Definition at line 116 of file Model.cpp.

◆ getInstances()

std::vector< ModuleInstance * > & Model::getInstances ( )

Definition at line 133 of file Model.cpp.

◆ getNumEvents()

unsigned int Model::getNumEvents ( )

Definition at line 139 of file Model.cpp.

◆ getRootModuleInstance()

ModuleInstance * Model::getRootModuleInstance ( ) const

Definition at line 29 of file Model.cpp.

◆ populateNestedModules()

void Model::populateNestedModules ( )

This is a ModuleInstance that has no parent. This means that it is a root note.

Definition at line 9 of file Model.cpp.

◆ updateModuleDecl()

void systemc_clang::Model::updateModuleDecl ( )

Member Data Documentation

◆ entry_function_gpu_macro_map_

entryFunctionGPUMacroMapType systemc_clang::Model::entry_function_gpu_macro_map_
protected

Definition at line 79 of file Model.h.

◆ event_map_

eventMapType systemc_clang::Model::event_map_
protected

Definition at line 73 of file Model.h.

◆ instance_module_map_

FindNetlist::instanceModuleMapType systemc_clang::Model::instance_module_map_
protected

Definition at line 75 of file Model.h.

◆ module_instance_list_

FindNetlist::instanceListModuleMapType systemc_clang::Model::module_instance_list_
protected

Definition at line 78 of file Model.h.

◆ module_instances_

std::vector<ModuleInstance *> systemc_clang::Model::module_instances_
protected

Definition at line 69 of file Model.h.

◆ port_signal_instance_map_

FindNetlist::instancePortSignalMapType systemc_clang::Model::port_signal_instance_map_
protected

Definition at line 77 of file Model.h.

◆ port_signal_map_

FindNetlist::portSignalMapType systemc_clang::Model::port_signal_map_
protected

Definition at line 76 of file Model.h.

◆ root_module_inst_

ModuleInstance* systemc_clang::Model::root_module_inst_
protected

Definition at line 70 of file Model.h.

◆ scmain_function_decl_

FunctionDecl* systemc_clang::Model::scmain_function_decl_
protected

Definition at line 74 of file Model.h.

◆ simulation_time_

FindSimTime::simulationTimeMapType systemc_clang::Model::simulation_time_
protected

Definition at line 72 of file Model.h.


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