|
CIRCT 22.0.0git
|
#include <ModelInstance.h>

Public Member Functions | |
| ModelInstance ()=delete | |
| ModelInstance (const ArcRuntimeModelInfo *modelInfo, const char *args, ArcState *state) | |
| ~ModelInstance () | |
| const char * | getModelName () const |
| void | onInitialized (ArcState *mutableState) |
| void | onEval (ArcState *mutableState) |
| uint64_t * | swapTraceBuffer () |
Private Types | |
| enum class | TraceMode { DUMMY , VCD } |
Private Member Functions | |
| void | parseArgs (const char *args) |
| std::filesystem::path | getTraceFilePath (const std::string &suffix) |
Private Attributes | |
| const uint64_t | instanceID |
| const ArcRuntimeModelInfo *const | modelInfo |
| const ArcState *const | state |
| TraceMode | traceMode |
| std::optional< std::string > | traceFileArg |
| std::unique_ptr< TraceEncoder > | traceEncoder |
| bool | verbose = false |
| uint64_t | stepCounter = 0 |
Definition at line 32 of file ModelInstance.h.
|
strongprivate |
| Enumerator | |
|---|---|
| DUMMY | |
| VCD | |
Definition at line 54 of file ModelInstance.h.
|
delete |
| circt::arc::runtime::impl::ModelInstance::ModelInstance | ( | const ArcRuntimeModelInfo * | modelInfo, |
| const char * | args, | ||
| ArcState * | state | ||
| ) |
Definition at line 30 of file ModelInstance.cpp.
References DUMMY, getModelName(), getTraceFilePath(), instanceID, modelInfo, parseArgs(), traceEncoder, ArcRuntimeModelInfo::traceInfo, traceMode, VCD, and verbose.
| circt::arc::runtime::impl::ModelInstance::~ModelInstance | ( | ) |
Definition at line 75 of file ModelInstance.cpp.
References assert(), getModelName(), ArcState::impl, instanceID, state, stepCounter, traceEncoder, and verbose.
|
inline |
Definition at line 39 of file ModelInstance.h.
References modelInfo, and ArcRuntimeModelInfo::modelName.
Referenced by ModelInstance(), and ~ModelInstance().
|
private |
Definition at line 89 of file ModelInstance.cpp.
References instanceID, modelInfo, ArcRuntimeModelInfo::modelName, and traceFileArg.
Referenced by ModelInstance().
| void circt::arc::runtime::impl::ModelInstance::onEval | ( | ArcState * | mutableState | ) |
Definition at line 106 of file ModelInstance.cpp.
References assert(), state, stepCounter, and traceEncoder.
| void circt::arc::runtime::impl::ModelInstance::onInitialized | ( | ArcState * | mutableState | ) |
Definition at line 113 of file ModelInstance.cpp.
References assert(), instanceID, state, traceEncoder, and verbose.
|
private |
Definition at line 149 of file ModelInstance.cpp.
References circt::arc::runtime::impl::parseKeyValueArg(), traceFileArg, traceMode, VCD, and verbose.
Referenced by ModelInstance().
| uint64_t * circt::arc::runtime::impl::ModelInstance::swapTraceBuffer | ( | ) |
Definition at line 125 of file ModelInstance.cpp.
References circt::arc::runtime::impl::fatalError(), instanceID, state, ArcState::traceBufferSize, traceEncoder, and verbose.
|
private |
Definition at line 51 of file ModelInstance.h.
Referenced by getTraceFilePath(), ModelInstance(), onInitialized(), swapTraceBuffer(), and ~ModelInstance().
|
private |
Definition at line 52 of file ModelInstance.h.
Referenced by getModelName(), getTraceFilePath(), and ModelInstance().
|
private |
Definition at line 53 of file ModelInstance.h.
Referenced by onEval(), onInitialized(), swapTraceBuffer(), and ~ModelInstance().
|
private |
Definition at line 59 of file ModelInstance.h.
Referenced by onEval(), and ~ModelInstance().
|
private |
Definition at line 57 of file ModelInstance.h.
Referenced by ModelInstance(), onEval(), onInitialized(), swapTraceBuffer(), and ~ModelInstance().
|
private |
Definition at line 56 of file ModelInstance.h.
Referenced by getTraceFilePath(), and parseArgs().
|
private |
Definition at line 55 of file ModelInstance.h.
Referenced by ModelInstance(), and parseArgs().
|
private |
Definition at line 58 of file ModelInstance.h.
Referenced by ModelInstance(), onInitialized(), parseArgs(), swapTraceBuffer(), and ~ModelInstance().