|
CIRCT 22.0.0git
|


Go to the source code of this file.
Macros | |
| #define | ARC_IR_EXPORT extern "C" __attribute__((visibility("default"))) |
Functions | |
| ARC_IR_EXPORT uint8_t * | arcRuntimeIR_allocInstance (const ArcRuntimeModelInfo *model, const char *args) |
| Allocate and initialize the state for a new instance of the given hardware model. | |
| ARC_IR_EXPORT void | arcRuntimeIR_deleteInstance (uint8_t *modelState) |
| Destroy and deallocate the state of a model instance. | |
| ARC_IR_EXPORT void | arcRuntimeIR_onEval (uint8_t *modelState) |
| Pre-Eval hook of the runtime library. | |
| #define ARC_IR_EXPORT extern "C" __attribute__((visibility("default"))) |
Definition at line 31 of file IRInterface.h.
| ARC_IR_EXPORT uint8_t * arcRuntimeIR_allocInstance | ( | const ArcRuntimeModelInfo * | model, |
| const char * | args | ||
| ) |
Allocate and initialize the state for a new instance of the given hardware model.
This function must allocate an ArcState struct with at least model->numStateBytes bytes provided for the modelState array. It must return the pointer to the zero initialized model state which is required to be 16-byte-aligned.
args is a zero terminated string containing implementation specific options for the new instance or null.
Definition at line 86 of file ArcRuntime.cpp.
References arcRuntimeAllocateInstance(), and ArcState::modelState.
| ARC_IR_EXPORT void arcRuntimeIR_deleteInstance | ( | uint8_t * | modelState | ) |
Destroy and deallocate the state of a model instance.
This function is responsible for releasing all resources that previously have been allocated by arcRuntimeIR_allocInstance.
Definition at line 96 of file ArcRuntime.cpp.
References arcRuntimeDeleteInstance(), and arcRuntimeGetStateFromModelState().
| ARC_IR_EXPORT void arcRuntimeIR_onEval | ( | uint8_t * | modelState | ) |
Pre-Eval hook of the runtime library.
Simulation drivers must call this once before every invocation of the model's eval function.
Definition at line 92 of file ArcRuntime.cpp.
References arcRuntimeGetStateFromModelState(), and arcRuntimeOnEval().