NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

PDATS Trace

From Texas Instruments Wiki
Jump to: navigation, search

PDATS Trace[edit]

PDATS Trace captures all the read/write access from CPU to memory. DMA access is not captured as part of this trace.

What is PDATS[edit]

PDATS (Packed Differential Address and Time Stamp) is a information-lossless trace compression scheme that can reduce both storage space and access time by an order of magnitude or more, compared to ASCII-format traces, without discarding either references or inter-reference timing from the original trace.

Supported Configuration[edit]

  • Supported on all C64x+ based single-core devices.
  • C6416 Cycle Accurate Simulator
  • C6416 Functional Simulator
  • TCI6616/C6670/TCI6608/C6678 Device simulator

Usage[edit]

Enabling PDATS Trace[edit]

PDATS Trace is enabled through the simulator configuration . Trace collection should be started, halted & resumed during simulation through GEL commands. This is important to note. We enable it via the configuration file, but the actual starting, and stopping trace collection is done after the simulator has been initialized, and an executable file loaded on it.

Configuration File Changes[edit]

Follow the steps to enable PDATS trace in simulator configuration file.

  • Step 1: Open CCSetup and select the simulator.
  • Step 2: Identify the simulator configuration file of the selected simulator. Check the right pane of CCSetup or click the modify properties to show the configuration file path.
  • Step 3: Open the simulator configuration file & search for DSP keyword. Next to DSP key is the module name of the CPU. (Ex: DSP C64xplus;)
  • Step 4: Search for END <Module name> and add the module profile given below above that line. (Ex: END C64xplus;)
MODULE PDATS_TRACE;
ACCESS_SIZE_TRACE ON;
TIMESTAMP_WITH_MEMSTALLS OFF;
END PDATS_TRACE;

Note

  • ACCESS_SIZE_TRACE - [ON/OFF]. This option enables the generation of “access width” in the PDATS format.
  • TIMESTAMP_WITH_MEMSTALLS -[ON/OFF]. This option is provided to select either
    • [OFF] CPU only cycles (excludes memory system stalls)
    • [ON] Total cycles (includes memory system stalls)


For C6416 Cycle Accurate simulator - add the following line to enable PDATS trace.

PDATS_TRACE ON;


Dynamic Start-Stop[edit]

PDATS Traces are started, halted & resumed during simulation. This support is enabled via GEL commands

  • Resume Trace collection - GEL_DriverString("START_PDATS_COLLECTION")
  • Halt/Stop Trace collection - GEL_DriverString("STOP_PDATS_COLLECTION")

On Code Composer Studio V4 (CCSv4), the GEL_DriverString commands could be provided to the simualtor through the scripting console(View->scripting console). In the console window, enter eval("GEL_DriverString(\"START_PDATS_COLLECTION\")") to feed in pdats start command for eg..

There could be multiple start-stop points throughout the simulation run. The trace file has a .pdats extension and will be generated in the COFF file path, with <coff_file_name>.pdats

PDATS to Text Converter[edit]

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PDATS Trace here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PDATS Trace here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article PDATS Trace here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article PDATS Trace here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article PDATS Trace here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PDATS Trace here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PDATS Trace here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article PDATS Trace here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article PDATS Trace here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity