Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project...

16
SHAKTI SHAKTI RiTA (RISC-V Trace Analyzer) Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors

Transcript of Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project...

Page 1: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

RiTA (RISC-V Trace Analyzer)

Anmol Sahoo, Project Associate, IIT Madras

Neel Gala, CTO, Incore Semiconductors

Page 2: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Outline

▪ Need for a trace analyzer▪ Design and features of RiTA▪ Examples▪ Getting started with RiTA

2

Page 3: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Need for a trace analyzer

Page 4: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Need for a trace analyzer

4

▪ Hardware designers need to understand software execution characteristics

▪ Trace analyzers should be able to analyze traces from generic execution contexts - Spike, FPGA, Silicon

▪ Designers can better use this information to extend or improve their designs at various levels

▪ Architectural Decisions▫ Macro-op Fusion▫ Pseudo-ops▫ ISA Extensions

Page 5: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Need for a trace analyzer

5

▪ Hardware designers need to understand software execution characteristics

▪ Trace analyzers should be able to analyze traces from generic execution contexts - Spike, FPGA, Silicon

▪ Designers can better use this information to extend or improve their designs at various levels

▪ Architectural Decisions▫ Macro-op Fusion▫ Pseudo-ops▫ ISA Extensions

Page 6: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Need for a trace analyzer

6

▪ Hardware designers need to understand software execution characteristics

▪ Trace analyzers should be able to analyze traces from generic execution contexts - Spike, FPGA, Silicon

▪ Designers can better use this information to extend or improve their designs at various levels

▪ Architectural Decisions▫ Macro-op Fusion▫ Pseudo-ops▫ ISA Extensions

Page 7: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Need for a trace analyzer

7

▪ Hardware designers need to understand software execution characteristics

▪ Trace analyzers should be able to analyze traces from generic execution contexts - Spike, FPGA, Silicon

▪ Designers can better use this information to extend or improve their designs at various levels

▪ Architectural Decisions▫ Macro-op Fusion▫ ISA Extensions▫ Hardware Optimization

Page 8: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Design and features of RiTA

Page 9: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Design of RiTA

9

▪ RiTA is a command line tool written in Python▪ Tiered application

▫ Trace File Parser▫ Instruction Parser▫ Post-processing Modules

▪ Makes it easy to extend!

Page 10: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Features of RiTA

10

The following post-processing modules are being developed in RiTA,▪ Instruction histogram and statistics▪ Register histogram▪ Memory access histogram▪ Branch statistics▪ Dependent instruction sequences

Page 11: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Examples

Page 12: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Instruction Histogram

12

Page 13: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Register Access Statistics

13

Page 14: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Program Counter Histogram

14

Page 15: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Getting Started

15

▪ The application is available from the PyPI package repository▪ Get Started,▪ pip install rita▪ Future work will look at,

▫ Parsing new ISA extensions▫ Optimization suggestions

Page 16: Neel Gala, CTO, Incore Semiconductors RiTA (RISC-V Trace ...€¦ · Anmol Sahoo, Project Associate, IIT Madras Neel Gala, CTO, Incore Semiconductors. SHAKTI Outline Need for a trace

SHAKTISHAKTI

Thank you for your time! :D