Class SimLoop
Defined in File sim_loop.h
Inheritance Relationships
Base Type
public AbstractSimLoop(Class AbstractSimLoop)
Class Documentation
-
class SimLoop : public AbstractSimLoop
Synchronous simulation loop Basic synchronous simulation loop. It is designed for “fast” simulations with a deterministic set of stimuli. It can run in “fast” mode or “real-time” mode.
In real-time mode : the simulation will try to adjust the speed of the simulation to align the simulated time with the system time.
In fast mode : no adjustment is done and the simulation runs as fast as permitted.
Public Functions
-
inline void set_fast_mode(bool fast)
Set the simulation running mode: false=real-time, true=fast.
-
void run(cycle_count_t count = 0)
Runs the simulation for a given number of cycles. If set to zero, the simulation will run indefinitely and the function will only return when the device stops definitely.