MENU

Non-intrusive instruction smart trace for 8051-derivative cores

Non-intrusive instruction smart trace for 8051-derivative cores

New Products |
By eeNews Europe



Instruction Smart Trace is an inherent part of the DoCD Hardware Debugger, which provides debugging capability for System-on-Chip (SoC) designs. Unlike other on-chip debuggers, the tool provides non-intrusive debugging of a running application and saves designer’s time, thanks to the hardware trace, called Instructions Smart Trace buffer (IST).

The DoCD-IST captures instructions in a smart and non-intrusive way, so it doesn’t capture addresses of all executed instructions, but only these related to the start of tracing, conditional jumps and interrupts. This method not only saves time, but also allows improving the size of the IST buffer and extending the trace history. “For example, by using 256 Bytes of trace memory, we can store 128 program branches and decode much more program history, since the executed program is composed of normal opcodes (mov, add, mul, anl, etc.) and branches,” explains Tomek Krzyżak, VCEO of Digital Core Design, “Based on this information stored in IST hardware memory, our DoCD.exe and Keil driver decode executed program and display this information as an ASM code and C code in trace history,” he adds.

The DoCD Instruction Smart Trace buffer is configurable up to 8192 levels and is completely transparent for the debugged application. Its functionality enables real-time capture of executed instructions. Thanks to it, the engineer can later read-back to track down the history of executed code, by using the DoCD debug software. Instruction Smart Trace captures instructions in a smart and non-intrusive way, which means that it doesn’t capture addresses of all executed instructions, but only instructions related to the start of the tracing, conditional jumps and interrupts.

As an example, the trace buffer is 2 kB, which means that up to 1024 levels can be captured. It gives much greater history than 1024 instructions executed by the CPU. In the typical application IST enables execution of over 10k instructions, depending on how many conditional jumps and interrupts have been executed by the CPU.

Instruction Smart Trace has also configurable start/stop triggers, so the engineer can set the condition at which instruction tracing starts, but also when it should stop. The trace buffer can also be changed or disabled dynamically. The IST uses the end of SXDM memory space, allowing it to share the trace memory with the debugged programs. When the debugging is finished, it assigns the whole memory back to the application.

Digital Core Design: https://dcd.pl/page/154/docd/

If you enjoyed this article, you will like the following ones: don't miss them by subscribing to :    eeNews on Google News

Share:

Linked Articles
10s