CIRCT  19.0.0git
Public Member Functions | Public Attributes | List of all members
circt::llhd::sim::Instance Struct Reference

The simulator internal representation of an instance. More...

#include <State.h>

Collaboration diagram for circt::llhd::sim::Instance:
Collaboration graph
[legend]

Public Member Functions

 Instance ()=default
 
 Instance (std::string name)
 
 ~Instance ()
 Free procState and entityState since they are allocated using 'malloc' in the LLVM code generated in LLHDToLLVM. More...
 

Public Attributes

std::string name
 
std::string path
 
std::string unit
 
bool isEntity
 
size_t nArgs = 0
 
llvm::SmallVector< SignalDetail, 0 > sensitivityList
 
ProcStateprocState
 
uint8_t * entityState
 
Time expectedWakeup
 
void(* unitFPtr )(void **)
 

Detailed Description

The simulator internal representation of an instance.

Definition at line 277 of file State.h.

Constructor & Destructor Documentation

◆ Instance() [1/2]

circt::llhd::sim::Instance::Instance ( )
default

◆ Instance() [2/2]

circt::llhd::sim::Instance::Instance ( std::string  name)
inline

Definition at line 280 of file State.h.

◆ ~Instance()

Instance::~Instance ( )

Free procState and entityState since they are allocated using 'malloc' in the LLVM code generated in LLHDToLLVM.

Definition at line 198 of file State.cpp.

Member Data Documentation

◆ entityState

uint8_t* circt::llhd::sim::Instance::entityState

Definition at line 294 of file State.h.

◆ expectedWakeup

Time circt::llhd::sim::Instance::expectedWakeup

Definition at line 295 of file State.h.

◆ isEntity

bool circt::llhd::sim::Instance::isEntity

◆ name

std::string circt::llhd::sim::Instance::name

Definition at line 284 of file State.h.

Referenced by circt::llhd::sim::Engine::walkEntity().

◆ nArgs

size_t circt::llhd::sim::Instance::nArgs = 0

Definition at line 290 of file State.h.

Referenced by circt::llhd::sim::Engine::walkEntity().

◆ path

std::string circt::llhd::sim::Instance::path

◆ procState

ProcState* circt::llhd::sim::Instance::procState

Definition at line 293 of file State.h.

◆ sensitivityList

llvm::SmallVector<SignalDetail, 0> circt::llhd::sim::Instance::sensitivityList

Definition at line 292 of file State.h.

Referenced by circt::llhd::sim::Engine::walkEntity().

◆ unit

std::string circt::llhd::sim::Instance::unit

◆ unitFPtr

void(* circt::llhd::sim::Instance::unitFPtr) (void **)

Definition at line 297 of file State.h.


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