16
Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 111/06/20 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor SoC Xiao Hu, Pengyong Ma, Shuming Chen, Yang Guo, and Xing Fang School of Computer, National University of Defense Technology, Changsha, Hunan, P.R. of China, 410073 [email protected] M. Guo et al. (Eds.): ISPA 2006, LNCS 4330, pp. 806 – 817, 2006. © Springer-Verlag Berlin Heidelberg 2006

Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Presenter : Shau-Jay Hou

Tsung-Cheng LinKuan-Fu Kuo

112/04/18

EICE team

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

Xiao Hu, Pengyong Ma, Shuming Chen, Yang Guo, and Xing FangSchool of Computer, National University of Defense Technology,Changsha, Hunan, P.R. of China, [email protected]. Guo et al. (Eds.): ISPA 2006, LNCS 4330, pp. 806 – 817, 2006. © Springer-Verlag Berlin Heidelberg 2006

Page 2: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

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%.

2

Abstract

Page 3: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Debug and Optimization in multiprocessor SoC Traditional method

Breakpoint and signal steppingChange behaviorEasily damaged the mechanical part

Logic analyzerNot useful in higher integration SoC

Soft instruments and profilingIntrusive Consumes excessive system resources

This paper propose method TraceDo(Trace for Debug and Optimization)

On system YHFT-QDSP(銀河飛騰 -32位元微處理器 )Use configuration to controlLow area in chip

3

What’s the problem?

Page 4: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

embedding debugging architecture for SoCs is introduced [9] Triggers, filters and timestamps are mentioned to support debug of

multipleprocessors [12]. An onchip events monitor on system level is introduced in [17] CoreSight Frame of ARM core defines a multi-core debug and trace

solution in [2][3][4] The IEEE-ISTO NEXUS 5001 STD defines the basic multiple core

debug support for embedded processors and external tools [15][13] Framework of on-chip real time trace of multiprocessor [8]

Graph

4

Related work

Page 5: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

F Bit(follow bit)◦ indicates if there is another byte followed in this

message

5

TraceDo-overview

Page 6: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

6

Trace Hardware

Page 7: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Path Trace Program Flow Change Model Branches and interrupts

。Direct branches to constant address(BC)。Conditional direct branches to constant address(IBC)。Indirect branches to target address in register(BR)。Conditional indirect branches to target address in register(IBR)。Interrupt to interrupt service routine

Configuration bits。Enable Bits。Force Bits。Degrade Bits

7

Page 8: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Messages。Long Chart Message。Short Chart Message。Indirect Branch Message。Synchronization Message。Interrupt Message

8

Page 9: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Data Trace and Event Trace Data Trace

。Data transfer by load/store。XOR compression。Synchronization message

Event Trace 。Pipelines stall。Cache missing and DMA busy。Record the counter of taken times or valid cycles of stalls at a

configurable interval

9

Page 10: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Trace Messages Combination and Timestamps Two-level combination

。First level: Sort trace messages of three trace unit into trace FIFO

。Second level: Sort trace messages of FIFOs into trace port

Arbitrator。Control which message should be written into FIFO

FIFO。Eight input port。One output pot 。Eight two-port registers。Overflow Synchronization message

10

Page 11: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Trace Port Transfer massages package to Emulator

11

Page 12: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

The configurable functions of trace are programmed through configuration registers. Access by JTAG instructions Also can access by CPU instrucions

NOP_config no-operation instruction High instruction ratio Use to communication with on-chip trace hardware

12

Page 13: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Use Verilog-HDL models Benchmark

13

Page 14: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Compression of path trace

14

Page 15: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

Compression of path trace by use degrade bit

15

Page 16: Presenter : Shau-Jay Hou Tsung-Cheng Lin Kuan-Fu Kuo 2015/6/12 EICE team TraceDo: An On-Chip Trace System for Real-Time Debug and Optimization in Multiprocessor

TraceDo is modular and scalable, and it record : Program path Data access pipeline stall

With several novel methods, TraceDo can reduce the quantity of trace messages effectively and support the tradeoff between precision and bandwidth by configuration.

Future work Degrade Bits selected manually in benchmarks will be

selected by tools automatically16