CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Attributes | List of all members
ArcState Struct Reference

Combined runtime and model state for a hardware model instance. More...

#include <Common.h>

Collaboration diagram for ArcState:
Collaboration graph
[legend]

Public Attributes

void * impl
 Runtime implementation specific data. Usually points to a custom struct.
 
uint64_t * traceBuffer
 Pointer to the active trace buffer's storage.
 
uint32_t traceBufferSize
 Number of valid elements in the active trace buffer.
 
uint32_t magic
 Runtime magic number. Must be set to ARC_RUNTIME_MAGIC.
 
uint64_t reserved
 Padding for alignment and reserved for future use.
 
uint8_t modelState []
 

Detailed Description

Combined runtime and model state for a hardware model instance.

Definition at line 44 of file Common.h.

Member Data Documentation

◆ impl

void* ArcState::impl

Runtime implementation specific data. Usually points to a custom struct.

Definition at line 46 of file Common.h.

Referenced by arcRuntimeDeleteInstance(), getModelInstance(), and circt::arc::runtime::impl::ModelInstance::~ModelInstance().

◆ magic

uint32_t ArcState::magic

Runtime magic number. Must be set to ARC_RUNTIME_MAGIC.

Definition at line 54 of file Common.h.

Referenced by arcRuntimeGetStateFromModelState().

◆ modelState

uint8_t ArcState::modelState[]

◆ reserved

uint64_t ArcState::reserved

Padding for alignment and reserved for future use.

Definition at line 56 of file Common.h.

◆ traceBuffer

uint64_t* ArcState::traceBuffer

Pointer to the active trace buffer's storage.

May be null iff the model has no trace instrumentation. Otherwise must point to buffer of at least traceBufferCapacity size.

Definition at line 50 of file Common.h.

Referenced by circt::arc::runtime::impl::TraceEncoder::step(), and circt::arc::runtime::impl::TraceEncoder::TraceEncoder().

◆ traceBufferSize

uint32_t ArcState::traceBufferSize

The documentation for this struct was generated from the following file: