ARM Holdings PLC · NASDAQ:ARM

ARM — Carbon Design Systems — ARM TechCon

41 slides from ARM's conference presentation

  1. Slide 1: ARM TechCon

    Slide 1: ARM TechCon

    | sc ARM | TechCon” UBM Tech

  2. Slide 2: Performance Optimization for an ARM Cortex-A53 System

    Slide 2: Performance Optimization for an ARM Cortex-A53 System

    Performance Optimization for an ARM Cortex-A53 System Using Software Workloads and Cycle Accurate Models Jason Andrews

  3. Slide 3: Agenda

    Slide 3: Agenda

    Agenda System Performance Analysis IP Configuration System Creation Methodology: Create, Validate, Analyze System Level Optimization – Bare Metal Software – Linux Application Benchmarks

  4. Slide 4: System Performance Analysis

    Slide 4: System Performance Analysis

    System Performance Analysis • Selecting and configuring IP for use in systems is difficult • System Performance Analysis: the ability to create, validate, and analyze the combination of hardware and software • Requirements • Cycle accurate simulation • Access to models of candidate IP • Easy way to

  5. Slide 5: Example System Components

    Slide 5: Example System Components

    Example System Components Platform A53x4 A53x4 Components – Multi-Cluster ARM Cortex-A53 CCI-400 – Coherent Interconnect – Interrupt Controller DMC- NIC400 – Timer & UART 400 High performance UART Timer DMC-400 DDR3 GIC-400

  6. Slide 6: Cortex-A53

    Slide 6: Cortex-A53

    Cortex-A53 Power Efficient ARMv8 processor Supports 32-bit and 64- bit code 1-4 SMP within processor cluster NEONTM Advanced SMD VFPv4 Floating Point

  7. Slide 7: IP Model Creation

    Slide 7: IP Model Creation

    IP Model Creation Accurate models from leading IP providers Compile, manage and download 100% accurate models Only source for 100% accurate virtual models of ARM IP

  8. Slide 8: Cortex-A53 Configuration

    Slide 8: Cortex-A53 Configuration

    tex-A53 Configuration IP Configuration , SELECT NUMBER OF CPUS 4 ¥| Number of logical CPUs to include NEON FP TRUE ¥| /nclude the NEON and Floating-Point unit in each CPU CRYPTOGRAPHY EXTENSION TRUE ¥| Include the Crypto extensions in the NEON and Floating-Point unit in each CPU rey ney - EXTERNAL M

  9. Slide 9: CoreLink NIC-400 Network Interconnect

    Slide 9: CoreLink NIC-400 Network Interconnect

    CoreLink NIC-400 Network Interconnect Graphical UI Select protocol for for each configuration master/slave. in AMBA Bridges inserted Designer automatically Choose topology Select data widths to minimize CPU 32 to 256-bit and latency and buffer depths for routing required congestion bandwidth Registe

  10. Slide 10: AMBA Designer Configures the Interconnect

    Slide 10: AMBA Designer Configures the Interconnect

    AMBA Designer Configures the Interconnect  Architecture View  Define masters slaves and connectivity  Address Map View  Set multiple memory maps  Architectural View  Design interconnect structure and features  Switch hierarchy  Widths  Clock domains  Buffer depths  Registering options

  11. Slide 11: Creating the Accurate Model

    Slide 11: Creating the Accurate Model

    Creating the Accurate Model Upload CoreLink AMBA Designer IP-XACT file to IP Exchange web portal 100% accurate model created automatically from ARM RTL Download link provided via email NIC-400 Model

  12. Slide 12: AXI4 and ACE Traffic Generation

    Slide 12: AXI4 and ACE Traffic Generation

    AXI4 and ACE Traffic Generation Initial (wait/send events) – Start (wait/send events) – Iterations of execution of traffic pattern – Duration can be time or quantity of traffic – Stop (wait/send events) Final (wait/send events) (restart optional) Used to Model Additional Bus Agents

  13. Slide 13: Carbon Performance Analysis Kits

    Slide 13: Carbon Performance Analysis Kits

    Carbon Performance Analysis Kits Pre-built, extensible virtual prototypes Swap & Play enabled – ARM® Cortex™-A57, Cortex-A53, Cortex- – Execute at 10s to 100s of MIPS A15, Cortex-A9, Cortex-A7 – Debug with 100% accuracy Reconfigurable memory and fabric Source code for all software – NIC-400, NIC-301

  14. Slide 14: Carbon System Exchange

    Slide 14: Carbon System Exchange

    Carbon System Exchange Portal dedicated to CPAK access Search by IP, OS or benchmark software Over 100 CPAKs featuring advanced ARM IP New CPAKs constantly being added carbonsystemexchange.com

  15. Slide 15: System Performance Analysis Methodology

    Slide 15: System Performance Analysis Methodology

    System Performance Analysis Methodology

  16. Slide 16: Accurate System Virtual Prototyping

    Slide 16: Accurate System Virtual Prototyping

    Accurate System Virtual Prototyping Other methods insufficient to optimize price/performance/area tradeoffs – Spreadsheets are inaccurate – Approximately timed models miss details – Traffic generators and VIP lack crucial system traffic Only 100% accurate models for entire system can deliver 100% ac

  17. Slide 17: System Performance Analysis Methodology

    Slide 17: System Performance Analysis Methodology

    System Performance Analysis Methodology Create – Model Compilation – Fast IP configuration changes – System Assembly Validate – Bus and pipeline performance assumptions – IP blocks interfaces – Software Operation Analyze – Cache statistics – Memory Subsystems – Throughput & latency – Arbitration & s

  18. Slide 18: Two Primary Types of Software

    Slide 18: Two Primary Types of Software

    Two Primary Types of Software Bare Metal Software Applications Linux Applications Cross-compiled with Linux gcc Compiled with ARM DS-5 and added to RAM-based Linux compiler files system Use semi-hosting for output Use UART for output Bring-up on Cycle-Accurate Models Bring up on ARM Fast Models Benc

  19. Slide 19: ARM A53 Performance Monitoring Unit (PMU)

    Slide 19: ARM A53 Performance Monitoring Unit (PMU)

    ARM A53 Performance Monitoring Unit (PMU) CPU Implements Carbon A53 model PMUv3 architecture instruments all PMU events Gather statistics on the processor and memory Statistics can be system gathered without any software programming Implements 6 counters which can count any of Non-intrusive the avai

  20. Slide 20: Partial PMU Events

    Slide 20: Partial PMU Events

    Partial PMU Events Table 12-28 PMU events eer Event mnemonic tte external) fRotrace) bus Event name 0x00 SW_INCR - - Software increment. The register is incremented only on writes to the Software Increment Register. 0x01 L1I_CACHE_REFILL [0] [0] L1 Instruction cache refill. 0x02 L1I_TLB_REFILL 63} 6

  21. Slide 21: Enable Profiling During Simulation

    Slide 21: Enable Profiling During Simulation

    Enable Profiling During Simulation Enable profiling events on each component: CPU, CCI Generates database during simulation

  22. Slide 22: Example Software: LMbench

    Slide 22: Example Software: LMbench

    Example Software: LMbench Set of micro-benchmarks which measures important aspects of system performance Timing harness to reliably measure time Numerous benchmarks related to bandwidth and latency Example program: bw_mem

  23. Slide 23: Multicore Scaling Effects

    Slide 23: Multicore Scaling Effects

    Multicore Scaling Effects LMbench Benchmark: Block Read Transfer Results How does the Transfer Size effect bandwidth? What is the bandwidth impact of accessing L2 or DDR? Multicore Scaling Effects – Linear scaling – Increased effective memory bandwidth – Cache bandwidth – doubles – DDR3 memory bandw

  24. Slide 24: Analyzer Data from Multiple Sources

    Slide 24: Analyzer Data from Multiple Sources

    Analyzer Data from Multiple Sources PMU Information from A53 cores ACE Transaction streams between components Software Execution Trace

  25. Slide 25: Software Execution Trace

    Slide 25: Software Execution Trace

    Software Execution Trace Software Flow | Summary | 5600 6000 6400 6800 7200 7600 Hiltrigcreglecepeeeeadireerieee deere Rae EIS eles eR shal _tclose_internal | sl] _sys_open | ' strlen cl _mutex_release | { {) {I} I { unlockMutex iH setvbuf Pouonuf rut __ARM_argyv_veneer oO __ARM_get_argv C malloc (0

  26. Slide 26: Analyze System Performance Metrics

    Slide 26: Analyze System Performance Metrics

    Analyze System Performance Metrics

  27. Slide 27: System Metrics Generated from Profiling Data

    Slide 27: System Metrics Generated from Profiling Data

    System Metrics Generated from Profiling Data Calculated from Transaction Streams

  28. Slide 28: Cortex-A53 LMbench Block Read Transfer Results

    Slide 28: Cortex-A53 LMbench Block Read Transfer Results

    Cortex-A53 LMbench Block Read Transfer Results 25 20 15 10 5 0 8192 131072 4194304 1 core 2 core

  29. Slide 29: Additional A53 LMbench Suite Results

    Slide 29: Additional A53 LMbench Suite Results

    Additional A53 LMbench Suite Results Test # CPU Size Iterations CPU BW (GB/sec) Read/Write 2 L1+L2+DDR 2 11 Mem copy 2 L1+L2+DDR 2 12 bzero 2 L1+L2+DDR 2 8

  30. Slide 30: LMbench Latency Results

    Slide 30: LMbench Latency Results

    LMbench Latency Results Test # CPU Iterations Size Stride Latency (core cycles) Read 2 8 L1 32 4 Read 2 16 L1+L2 64 8 Read 2 32 L1+L2+DDR 64 183 Observations Latency increase when accessing L2 with larger increase when going to DDR Running real software on A53 increases confidence in metrics

  31. Slide 31: Swap & Play

    Slide 31: Swap & Play

    Swap & Play SoC Designer™ Plus virtual platform running at 200+ MIPS Boot UART LCD Mali OS Boot Driver Driver Driver Loader 1 2 3 Boot Linux in seconds and create check points for Firmware/Driver engineers Driver developers can debug/validate driver code against an accurate system Cycle accuracy wit

  32. Slide 32: Linux Benchmark Development Flow

    Slide 32: Linux Benchmark Development Flow

    Linux Benchmark Development Flow Create ARM Fast Model Create Cycle Accurate Model Confirm system models and Generate FM from CA configuration Compile CA models Develop software and configure them Run Swap & Play images and confirm to match previous Wizard to convert they work step CA to FM to check

  33. Slide 33: Timing Linux Benchmarks

    Slide 33: Timing Linux Benchmarks

    Timing Linux Benchmarks Notion of time comes from Linux timer – Use Internal CPU Generic Timers – Driven by Global System Counter, CNTVALUEB CPU input – Each increment of System Counter indicates the passage of time at some frequency Linux scheduler is based on concept of HZ which has a value of 100

  34. Slide 34: Linux Device Tree for A53 Generic Timer

    Slide 34: Linux Device Tree for A53 Generic Timer

    Linux Device Tree for A53 Generic Timer: also called Architected Timer Tells Linux the frequency of the timer, 100 MHz in this case. Changing frequency has 2 visible effects 1. Time reported to run a software benchmark will change 2. Kernel will re-schedule tasks more or less frequently

  35. Slide 35: Running Linux Benchmarks

    Slide 35: Running Linux Benchmarks

    Running Linux Benchmarks Link everything into single AXF file for ease of use – Boot Loader – Kernel Image – RAM-based File System – Device Tree Kernel need not change as systems change Launch as initial process using kernel command line using Linux Device Tree

  36. Slide 36: Technique to Launch Benchmarks on Boot

    Slide 36: Technique to Launch Benchmarks on Boot

    Technique to Launch Benchmarks on Boot Automatically launch test script on boot Include above file in Device Tree source to launch test

  37. Slide 37: Detecting Start of Application

    Slide 37: Detecting Start of Application

    Detecting Start of Application Linux process launch Breakpoint to take initial checkpoint – Detect the process we want to track is launched – Places in Linux kernel where process creation takes place – Access the name of the new function to run in arguments Load checkpoint and start profiling

  38. Slide 38: OS Level Performance Analysis

    Slide 38: OS Level Performance Analysis

    OS Level Performance Analysis Using Fast Models, 100% accurate models, Swap & Play CP CP CP CP CP CP System Level Benchmark System benchmarks can execute for many billions of cycles Executing in cycle accurate system could take days Swap & Play enables accurate simulation of benchmark areas which it

  39. Slide 39: Summary

    Slide 39: Summary

    Summary System Performance Analysis using Create, Validate, Analyze methodology Models of ARM’s advanced IP and CPAK reference systems with software enable decisions early in the design process Accurate IP models are easy to generate, easy to work with, and fully instrumented for analysis Ability to

  40. Slide 40: Jason Andrews

    Slide 40: Jason Andrews

    Jason Andrews Director of Product Engineering jasona@carbondesignsystems.com

  41. Slide 41: ARM TechCon

    Slide 41: ARM TechCon

    | sc ARM | TechCon” UBM Tech

Source: company website

More decks from ARM Holdings PLC

All 44 ARM decks