|
| Signal (std::string name, std::string owner) |
| Construct an "empty" signal. More...
|
|
| Signal (std::string name, std::string owner, uint8_t *value, uint64_t size) |
| Construct a signal with the given name, owner and initial value. More...
|
|
| Signal (Signal &&)=default |
| Default move constructor. More...
|
|
| ~Signal () |
| Free 'value' since it is allocated using 'malloc' in the LLVM code generated by LLHDToLLVM. More...
|
|
bool | operator== (const Signal &rhs) const |
| Returns true if the signals match in name, owner, size and value. More...
|
|
bool | operator< (const Signal &rhs) const |
| Returns true if the owner name is lexically smaller than rhs's owner, or the name is lexically smaller than rhs's name, in case they share the same owner. More...
|
|
bool | isOwner (const std::string &rhs) const |
|
std::string | getOwner () const |
|
bool | isValidSigName () const |
|
std::string | getName () const |
|
uint64_t | getSize () const |
|
uint8_t * | getValue () const |
|
const std::vector< unsigned > & | getTriggeredInstanceIndices () const |
|
void | pushInstanceIndex (unsigned i) |
|
bool | hasElement () const |
|
size_t | getElementSize () const |
|
void | pushElement (std::pair< unsigned, unsigned > val) |
|
void | store (uint8_t *v, uint64_t s) |
| Store JIT allocated signal pointer and size. More...
|
|
bool | updateWhenChanged (const uint64_t *v) |
| Update signal value when it is changed, the width of incoming signal value and the stored signal value are identical. More...
|
|
std::string | toHexString () const |
| Return the value of the signal in hexadecimal string format. More...
|
|
std::string | toHexString (unsigned) const |
| Return the value of the i-th element of the signal in hexadecimal string format. More...
|
|
The simulator's internal representation of a signal.
Definition at line 76 of file State.h.
bool circt::llhd::sim::Signal::updateWhenChanged |
( |
const uint64_t * |
v | ) |
|
|
inline |
Update signal value when it is changed, the width of incoming signal value and the stored signal value are identical.
As majority signals are smaller than 64 bits, this implementation is much faster as it avoided memcpy in most cases.
- Parameters
-
- Returns
- true when signal is updated, false when not
Definition at line 147 of file State.h.
References size, and value.