29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Signaling and Clocking Protocols<br />

cancel()<br />

cancels an active timer, preventing the callback being invoked<br />

isSet() : bool<br />

checks whether a timer is set to generate a callback<br />

remaining() : uint64_t<br />

returns how many ticks remain before the callback is invoked.<br />

TimerCallback64 protocol<br />

The TimerCallback protocol is used to invoke a behavior on the component which set the timer.<br />

The timer_control port of the timer must not be used during the invoked behavior.<br />

signal() : uint64_t<br />

Invoked by the timer when the timer countdown expires. The invoked behavior<br />

returns the number of ticks after which it is called again or 0 to make the timer<br />

one-shot.<br />

Parameters<br />

The ClockTimer component has no parameters.<br />

Registers<br />

The ClockTimer component has no registers.<br />

Debug features<br />

The ClockTimer component has no debug features.<br />

Verification and testing<br />

This component has been tested using internal unit tests.<br />

Performance<br />

An active ClockTimer component incurs no simulation overhead. For best performance, avoid<br />

having your performance-critical code frequently cancel timers or query the number of<br />

remaining ticks.<br />

Library dependencies<br />

The ClockTimer component has no dependencies on external libraries.<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 3-9<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!