You copied the Doc URL to your clipboard.

ClockTimer component

This section describes the ClockTimer component.

ClockTimer component - about

This component provides a mechanism for other components to schedule a callback after a number of ticks at a given ClockSignal rate.

This is a C++ component.

ClockTimer - ports

This section describes the ports.

Table 4-22 ClockTimer ports

Name Protocol Type Description
timer_callback TimerCallback Slave Port on which a signal is sent after the number of scheduled ticks has elapsed
timer_control TimerControl Slave Permits the timer to be set, canceled and queried
clk_in ClockSignal Slave Determines the tick rate of the timer

ClockTimer - verification and testing

Validation of this component consisted of booting operating systems and VE test suites on a VE model that contained this component.

ClockTimer - performance

An active ClockTimer component incurs no simulation overhead. For best performance, avoid having your performance-critical code frequently cancel timers or query the number of remaining ticks.