CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::arc::runtime::impl Namespace Reference

Classes

struct  FSTSignalTableEntry
 A traced signal in the FST file. More...
class  FSTTraceEncoder
 Trace buffer encoder producing an FST file. More...
class  ModelInstance
struct  TraceBufferMarker
 Helper for marking time steps within a trace buffer. More...
struct  TraceBuffer
 A heap allocated buffer containing raw trace data and time step markers. More...
class  TraceEncoder
 Abstract TraceEncoder managing trace buffers and the encoder thread. More...
class  DummyTraceEncoder
 Dummy encoder discarding all produced trace data. More...
struct  VCDSignalId
 String identifier for a signal in a VCD file consisting of characters in the ASCII range from '! More...
struct  VCDSignalTableEntry
 A traced signal in the VCD file. More...
class  VCDTraceEncoder
 Trace buffer encoder producing a VCD file. More...

Functions

static void fatalError (const char *message)
 Raise an irrecoverable error.
static std::map< std::string, std::optional< std::string > > parseArgsToMap (std::string_view argStr)
static int64_t readTimeFromState (const ArcState *state)
 Read the simulation time from the model state.
static void appendLegalizedName (std::string &buffer, const std::string_view &name)
static void writeTimestepToBuffer (int64_t currentStep, std::vector< char > &buf)

Variables

static uint64_t instanceIDsGlobal = 0

Function Documentation

◆ appendLegalizedName()

void circt::arc::runtime::impl::appendLegalizedName ( std::string & buffer,
const std::string_view & name )
static

◆ fatalError()

◆ parseArgsToMap()

std::map< std::string, std::optional< std::string > > circt::arc::runtime::impl::parseArgsToMap ( std::string_view argStr)
static

◆ readTimeFromState()

int64_t circt::arc::runtime::impl::readTimeFromState ( const ArcState * state)
inlinestatic

Read the simulation time from the model state.

The time is stored as an i64 at offset 0 of the model state.

Definition at line 25 of file TraceEncoder.cpp.

References ArcState::modelState.

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

◆ writeTimestepToBuffer()

void circt::arc::runtime::impl::writeTimestepToBuffer ( int64_t currentStep,
std::vector< char > & buf )
inlinestatic

Variable Documentation

◆ instanceIDsGlobal

uint64_t circt::arc::runtime::impl::instanceIDsGlobal = 0
static