CIRCT
19.0.0git
|
This is equivalent to and std::priorityQueue<Slot> ordered using the greater operator, which adds an insertion method to add changes to a slot. More...
#include <State.h>
Public Member Functions | |
void | insertOrUpdate (Time time, int index, int bitOffset, uint8_t *bytes, unsigned width) |
Check wheter a slot for the given time already exists. More... | |
void | insertOrUpdate (Time time, unsigned inst) |
Check wheter a slot for the given time already exists. More... | |
Slot & | getOrCreateSlot (Time time) |
Return a reference to a slot with the given timestamp. More... | |
const Slot & | top () |
Get a reference to the current top of the queue (the earliest event available). More... | |
void | pop () |
Pop the current top of the queue. More... | |
Public Attributes | |
unsigned | events = 0 |
Private Attributes | |
unsigned | topSlot = 0 |
llvm::SmallVector< unsigned, 4 > | unused |
This is equivalent to and std::priorityQueue<Slot> ordered using the greater operator, which adds an insertion method to add changes to a slot.
Return a reference to a slot with the given timestamp.
If such a slot already exists, a reference to it will be returned. Otherwise a reference to a fresh slot is returned.
Definition at line 113 of file State.cpp.
References circt::llhd::sim::Time::time, and circt::llhd::sim::Slot::unused.
void UpdateQueue::insertOrUpdate | ( | Time | time, |
int | index, | ||
int | bitOffset, | ||
uint8_t * | bytes, | ||
unsigned | width | ||
) |
Check wheter a slot for the given time already exists.
If that's the case, add the new change to it, else create a new slot and push it to the queue.
Definition at line 102 of file State.cpp.
References width.
Referenced by driveSignal().
void UpdateQueue::insertOrUpdate | ( | Time | time, |
unsigned | inst | ||
) |
void UpdateQueue::pop | ( | ) |
const Slot & UpdateQueue::top | ( | ) |
|
private |