AI Engine  (AIE) r2p15.2
 All Data Structures Functions Variables Groups Pages
Cycle Counter

Overview

These intrinsics allow to get the number, or part, of cycles elapsed.

Functions

unsigned long long get_cycles ()
 Get number of cycles.
 

Function Documentation

unsigned long long get_cycles ( )

Get number of cycles.

AIE Tile has a Tile counter which is a free running counter. This intrinsic returns the 64 bit tile counter value. In order to measure the number of cycles taken by a piece of code, this intrinsic should be read first at the start and again at the end of a code section. The difference is the number of cycles consumed by the code section @ AIE Clock frequency.