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

The simulator's internal representation of one queue slot. More...

#include <State.h>

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

Public Member Functions

 Slot (Time time)
 Create a new empty slot. More...
 
bool operator< (const Slot &rhs) const
 Returns true if the slot's time is smaller than the compared slot's time. More...
 
bool operator> (const Slot &rhs) const
 Returns true if the slot's time is greater than the compared slot's time. More...
 
void insertChange (int index, int bitOffset, uint8_t *bytes, unsigned width)
 Insert a change. More...
 
void insertChange (unsigned inst)
 Insert a scheduled process wakeup. More...
 

Public Attributes

llvm::SmallVector< std::pair< unsigned, unsigned >, 32 > changes
 
llvm::SmallVector< std::pair< unsigned, llvm::APInt >, 32 > buffers
 
size_t changesSize = 0
 
llvm::SmallVector< unsigned, 4 > scheduled
 
Time time
 
bool unused = false
 

Detailed Description

The simulator's internal representation of one queue slot.

Definition at line 205 of file State.h.

Constructor & Destructor Documentation

◆ Slot()

circt::llhd::sim::Slot::Slot ( Time  time)
inline

Create a new empty slot.

Definition at line 207 of file State.h.

Member Function Documentation

◆ insertChange() [1/2]

void Slot::insertChange ( int  index,
int  bitOffset,
uint8_t *  bytes,
unsigned  width 
)

Insert a change.

Definition at line 73 of file State.cpp.

References width.

◆ insertChange() [2/2]

void Slot::insertChange ( unsigned  inst)

Insert a scheduled process wakeup.

Definition at line 97 of file State.cpp.

◆ operator<()

bool Slot::operator< ( const Slot rhs) const

Returns true if the slot's time is smaller than the compared slot's time.

Definition at line 69 of file State.cpp.

References time.

◆ operator>()

bool Slot::operator> ( const Slot rhs) const

Returns true if the slot's time is greater than the compared slot's time.

Definition at line 71 of file State.cpp.

References time.

Member Data Documentation

◆ buffers

llvm::SmallVector<std::pair<unsigned, llvm::APInt>, 32> circt::llhd::sim::Slot::buffers

Definition at line 225 of file State.h.

◆ changes

llvm::SmallVector<std::pair<unsigned, unsigned>, 32> circt::llhd::sim::Slot::changes

Definition at line 223 of file State.h.

◆ changesSize

size_t circt::llhd::sim::Slot::changesSize = 0

Definition at line 227 of file State.h.

◆ scheduled

llvm::SmallVector<unsigned, 4> circt::llhd::sim::Slot::scheduled

Definition at line 230 of file State.h.

◆ time

Time circt::llhd::sim::Slot::time

Definition at line 231 of file State.h.

Referenced by operator<(), and operator>().

◆ unused

bool circt::llhd::sim::Slot::unused = false

Definition at line 232 of file State.h.

Referenced by circt::llhd::sim::UpdateQueue::getOrCreateSlot().


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