|
SILICON
|
Context describing why a component is being evaluated. More...
#include <component.hpp>
Public Member Functions | |
| bool | changed (const core::Wire_ptr &wire) const |
| Returns true when a wire has a captured previous state different from now. | |
| std::optional< core::State > | previousState (const core::Wire_ptr &wire) const |
| Returns the state a wire had before this reactive evaluation, if captured. | |
Public Attributes | |
| bool | initialEvaluation = false |
| True for initial or otherwise full-plan evaluation. | |
| std::span< const core::Bus > | changedBuses {} |
| Buses that caused a reactive forward-cone evaluation. | |
| std::unordered_map< uint64_t, core::State > | previousWireStates {} |
| Wire states captured before the reactive mutation that caused this pass. | |
Context describing why a component is being evaluated.
Components that do not need scheduling context can keep implementing the legacy simulate(Simulator&) overload. Timing-aware components can override the overload that receives this structure.
Definition at line 90 of file component.hpp.
|
inlinenodiscard |
Returns true when a wire has a captured previous state different from now.
Definition at line 101 of file component.hpp.
|
inlinenodiscard |
Returns the state a wire had before this reactive evaluation, if captured.
Definition at line 108 of file component.hpp.
| std::span<const core::Bus> changedBuses {} |
Buses that caused a reactive forward-cone evaluation.
Definition at line 95 of file component.hpp.
| bool initialEvaluation = false |
True for initial or otherwise full-plan evaluation.
Definition at line 92 of file component.hpp.
| std::unordered_map<uint64_t, core::State> previousWireStates {} |
Wire states captured before the reactive mutation that caused this pass.
Definition at line 98 of file component.hpp.