TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor SoC

  • Xiao Hu
  • Pengyong Ma
  • Shuming Chen
  • Yang Guo
  • Xing Fang
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4330)


Traditional debug techniques using breakpoints and single stepping are hard to meet the requirements of debug and optimization problems related with temporal behavioral of the real-time programs in multiprocessors. In this paper an on-chip trace system TraceDo (Trace for Debug and Optimization) of a multiprocessor SoC (YHFT-QDSP) is introduced to overcome the debug challenge. Several novel methods including LS encoder, branch configuration bits and configuration instructions, have been presented in TraceDo to trace the program paths, data access and events with timestamps from four Digital Signal Processor (DSP) cores of YHFT-QDSP efficiently. The results of benchmarks show that TraceDo with LS encoder can improve the compression ratio of trace information by 27% than the best reference result on average. When using branch configuration bits, this value goes to 64%.


Compression Ratio Digital Signal Processor Target Address Branch Instruction Instruction Code 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    ARC International Provides New Configurable Trace and Debug Extensions to the ARCTM600 and 700 Core Families,
  2. 2.
  3. 3.
    Embedded Trace Macrocell Architecture Specification. ARM Ltd,
  4. 4.
    Embedded Trace Macrocells Product Overvier. ARM Ltd,
  5. 5.
    Chen, S., Li, Z., Wan, J., Hu, D., Guo, Y., Wang, D., Hu, X., Sun, S.: Research and Development of High Performance YHFT Digital Signal Processor. Journal of Computer Research and Development 6 (2006)Google Scholar
  6. 6.
    Rajiv Gupta, E.M., Zhang, Y.: Profile guided compiler optimizations. In: The Compiler Design Handbook: Optimizations & Machine Code Generation, CRC Press, Boca Raton (2002)Google Scholar
  7. 7.
    The PDtraceTMInterface and Trace Control Block Specification. MIPS Technologies Inc.,
  8. 8.
    Hopkins, A.B.T., McDonald-Maier, K.D.: Debug Support Strategy for Systems-on-Chips with Multiple Processor Cores. IEEE Trans. on Computers 55(2) (2006)Google Scholar
  9. 9.
    Leatherman, R., Stollon, N.: An embedded debugging architecture for SoCs. IEEE Potentials (February/March 2005)Google Scholar
  10. 10.
    Lee, E.A.: What’s Ahead for Embedded Software. IEEE Computer 9 (2000)Google Scholar
  11. 11.
    MacNamee, C., Heffernan, D.: Emerging on-chip debugging techniques for real-time embedded systems. Computer & Control Engineering Journal 12 (2000)Google Scholar
  12. 12.
    Mayer, A., Siebert, H., McDonald-Maier, K.D.: Debug Support, Calibration and Emulation for Multiple Processor and Powertrain Control SoCs. In: DATE 2005 (2005)Google Scholar
  13. 13.
    MPC565 Reference Manual. Freescale Semiconductor Inc.,
  14. 14.
    Molyneaux, R.F.: Debug and Diagnosis in the Age of System-on-a-Chip. In: ITC 2003 (2003)Google Scholar
  15. 15.
    The Nexus 5001 ForumTM,
  16. 16.
    Savage, S., Burrows, M., Nelson, G., Sobalvarro, P., Anderson, T.: Eraser: A dynamic data race detector for multithreaded programs. ACM Trans. on Computer Systems 11 (1997)Google Scholar
  17. 17.
    Shobaki, M.E.: On-Chip Monitoring of Single- and Multiprocessor Hardware Real-Time Operating Systems. In: Proceedings of the 8th International Conference on Real-Time Computing Systems and Applications (2002)Google Scholar
  18. 18.
    Stewart, D., Gentleman, M.: Non-stop monitoring and debugging on sharedmemory multiprocessors. In: Proceedings of the 2nd International Workshop on Software Engineering for Parallel and Distributed Systems (1997)Google Scholar
  19. 19.
    Sundmark, D.: Deterministic Replay Debugging of Embedded Real-Time Systems using Standard Components, PhD. Thesis, Department of Computer Science and Engineering Malardalen University Vasteras, Sweden (2004)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2006

Authors and Affiliations

  • Xiao Hu
    • 1
  • Pengyong Ma
    • 1
  • Shuming Chen
    • 1
  • Yang Guo
    • 1
  • Xing Fang
    • 1
  1. 1.School of ComputerNational University of Defense TechnologyHunanP.R. of China

Personalised recommendations