AI Engine Intrinsics User Guide  (AIE) r2p22
 All Data Structures Namespaces Functions Variables Typedefs 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. More...
 

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.