CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
circt::arc::runtime::ModelInstance Class Reference

#include <ModelInstance.h>

Collaboration diagram for circt::arc::runtime::ModelInstance:
Collaboration graph
[legend]

Public Member Functions

 ModelInstance ()=delete
 
 ModelInstance (const ArcRuntimeModelInfo *modelInfo, const char *args, ArcState *state)
 
 ~ModelInstance ()
 
const char * getModelName () const
 
void onEval ()
 

Private Member Functions

void parseArgs (const char *args)
 

Private Attributes

const uint64_t instanceID
 
const ArcRuntimeModelInfo *const modelInfo
 
ArcState *const state
 
bool verbose = false
 
uint64_t stepCounter = 0
 

Detailed Description

Definition at line 26 of file ModelInstance.h.

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

circt::arc::runtime::ModelInstance::ModelInstance ( )
delete

◆ ModelInstance() [2/2]

circt::arc::runtime::ModelInstance::ModelInstance ( const ArcRuntimeModelInfo modelInfo,
const char *  args,
ArcState state 
)

Definition at line 25 of file ModelInstance.cpp.

References getModelName(), instanceID, parseArgs(), and verbose.

◆ ~ModelInstance()

circt::arc::runtime::ModelInstance::~ModelInstance ( )

Definition at line 37 of file ModelInstance.cpp.

References assert(), getModelName(), ArcState::impl, instanceID, state, stepCounter, and verbose.

Member Function Documentation

◆ getModelName()

const char * circt::arc::runtime::ModelInstance::getModelName ( ) const
inline

Definition at line 33 of file ModelInstance.h.

References modelInfo, and ArcRuntimeModelInfo::modelName.

Referenced by ModelInstance(), and ~ModelInstance().

◆ onEval()

void circt::arc::runtime::ModelInstance::onEval ( )
inline

Definition at line 37 of file ModelInstance.h.

References stepCounter.

Referenced by arcRuntimeOnEval().

◆ parseArgs()

void circt::arc::runtime::ModelInstance::parseArgs ( const char *  args)
private

Definition at line 49 of file ModelInstance.cpp.

References verbose.

Referenced by ModelInstance().

Member Data Documentation

◆ instanceID

const uint64_t circt::arc::runtime::ModelInstance::instanceID
private

Definition at line 42 of file ModelInstance.h.

Referenced by ModelInstance(), and ~ModelInstance().

◆ modelInfo

const ArcRuntimeModelInfo* const circt::arc::runtime::ModelInstance::modelInfo
private

Definition at line 43 of file ModelInstance.h.

Referenced by getModelName().

◆ state

ArcState* const circt::arc::runtime::ModelInstance::state
private

Definition at line 44 of file ModelInstance.h.

Referenced by ~ModelInstance().

◆ stepCounter

uint64_t circt::arc::runtime::ModelInstance::stepCounter = 0
private

Definition at line 47 of file ModelInstance.h.

Referenced by onEval(), and ~ModelInstance().

◆ verbose

bool circt::arc::runtime::ModelInstance::verbose = false
private

Definition at line 45 of file ModelInstance.h.

Referenced by ModelInstance(), parseArgs(), and ~ModelInstance().


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