|
CIRCT 23.0.0git
|


Go to the source code of this file.
Macros | |
| #define | ARC_RUNTIME_EXPORT extern "C" |
Functions | |
| ARC_RUNTIME_EXPORT struct ArcState * | arcRuntimeAllocateInstance (const struct ArcRuntimeModelInfo *model, const char *args) |
| Allocate and initialize the state for a new instance of the given hardware model. | |
| ARC_RUNTIME_EXPORT void | arcRuntimeDeleteInstance (struct ArcState *instance) |
| Destroy and deallocate the state of a model instance. | |
| ARC_RUNTIME_EXPORT void | arcRuntimeOnEval (struct ArcState *instance) |
Pre-Eval hook. Must be called by the driver once before every eval step. | |
| ARC_RUNTIME_EXPORT void | arcRuntimeOnInitialized (struct ArcState *instance) |
Must be called by the driver after the model's initial function and before the first onEval call. | |
| ARC_RUNTIME_EXPORT uint64_t | arcRuntimeGetAPIVersion () |
| Return the API version of the runtime library. | |
| ARC_RUNTIME_EXPORT struct ArcState * | arcRuntimeGetStateFromModelState (uint8_t *modelState, uint64_t offset) |
| Project a pointer to the model state to its ArcState container. | |
| #define ARC_RUNTIME_EXPORT extern "C" |
Definition at line 35 of file ArcRuntime.h.
| ARC_RUNTIME_EXPORT struct ArcState * arcRuntimeAllocateInstance | ( | const struct ArcRuntimeModelInfo * | model, |
| const char * | args | ||
| ) |
Allocate and initialize the state for a new instance of the given hardware model.
After the end of simulation, the state must be deallocated by calling arcRuntimeDeleteInstance.
args is a zero terminated string containing implementation specific runtime options or null.
| ARC_RUNTIME_EXPORT void arcRuntimeDeleteInstance | ( | struct ArcState * | instance | ) |
Destroy and deallocate the state of a model instance.
Definition at line 63 of file ArcRuntime.cpp.
References ArcState::impl.
Referenced by arcRuntimeIR_deleteInstance().
| ARC_RUNTIME_EXPORT uint64_t arcRuntimeGetAPIVersion | ( | ) |
Return the API version of the runtime library.
Definition at line 69 of file ArcRuntime.cpp.
References ARC_RUNTIME_API_VERSION.
| ARC_RUNTIME_EXPORT struct ArcState * arcRuntimeGetStateFromModelState | ( | uint8_t * | modelState, |
| uint64_t | offset | ||
| ) |
Project a pointer to the model state to its ArcState container.
offset is the byte offset of the given pointer within the model state.
Definition at line 79 of file ArcRuntime.cpp.
References ARC_RUNTIME_MAGIC, and ArcState::magic.
Referenced by arcRuntimeIR_deleteInstance(), arcRuntimeIR_onEval(), and arcRuntimeIR_onInitialized().
| ARC_RUNTIME_EXPORT void arcRuntimeOnEval | ( | struct ArcState * | instance | ) |
Pre-Eval hook. Must be called by the driver once before every eval step.
Definition at line 71 of file ArcRuntime.cpp.
References getModelInstance().
Referenced by arcRuntimeIR_onEval().
| ARC_RUNTIME_EXPORT void arcRuntimeOnInitialized | ( | struct ArcState * | instance | ) |
Must be called by the driver after the model's initial function and before the first onEval call.
Definition at line 75 of file ArcRuntime.cpp.
References getModelInstance().
Referenced by arcRuntimeIR_onInitialized().