Interrupt Latency Checker

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Interrupt Latency Checker (ILC)

Interrupt Latency checker is a trace feature on simulator, which provide users a deterministic measure of the worst-case interrupt latency of the application code.

Why we need ILC?

Existing method to calculate Interrupt Latency

(Make sure no other interrupts can preempt this ISR, as they could otherwise distort the measurements.)

Problem with existing method

Advantage

Usage

Follow the steps given below to get ILC traces.

ILC pic gel.jpg

  1. Load the application on the simulator
  2. Identify “Start Profile Point” and “End Profile point
  3. Set the Threshold latency.
  4. Run the application until the “Start Profile Point”.
  5. Run GEL command 'Start profiling'
  6. Run the application until the “End Profile Point
  7. Run GEL command 'Stop profiling'
  8. Quit the CCS to observe the Interrupt Latency Profile. [For efficiency reason, the log is interrupt latency profile log is complete only on simulation quit]
  9. The older ILC generated a CSV file, but the newer tool generates an XML file that will be present in the same folder as the executable (*.out file). File name of the XML file is same as the .out file but with a .xml extention.

CCSv4 Usage

Simulators which support ILC will have GEL menu under scipts tab in CCSv4. If the menu is not available load the GEL file (tisim_ilc.gel) from <CCSv4 Install Dir>\ccsv4\simulation\env\ccs\import\tisim_ilc.gel

Ilc ccsv4.jpg

To generate the ILC trace follow the steps given in Usage section above.

Supported configuration

ILC is supported on all C6000 simulator configuration in CCSv3.3 or above.

ILC is also supported on following list of ARM configuration.

FAQ

Open the "interruptlatencydetector.gel" GEL file in the CCS editor & change the threshold to the desired value. The change will take effect on upon reloading the GEL file and running the set threshold gel command.

Yes. You can get ILC information on hardware through XDS560 trace. For more information check the link.

Addtional information

Training presentation on ILC link.

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox