Microchip Technology Incorporated · NASDAQ:MCHP

Microchip Technology — Technical Presentation (September 2019)

47 slides from Microchip Technology's technical presentation, Sep 5, 2019

  1. Slide 1: First Thursdays

    First Thursdays May 2 - Webinar 1: Discover Renode for PolarFire® SoC Design and Debug June 6 - Webinar 2: How to Get Started with Renode for PolarFire SoC July 4 - Webinar 3: Learn to Debug a Bare-Metal PolarFire SoC Application with Renode Aug. 1 - Webinar 4: Tips and Tricks for Even Easier PolarF

  2. Slide 2: Second Thursdays

    Second Thursdays Jan. 9 - Webinar 9: Run Linux on Renode (PolarFire SoC Model as a Quad-core SMP) – this is not a Linux / Buildroot tutorial Feb. 13 - Webinar 10: Build applications for Linux on PolarFire SoC Mar. 12 - Webinar 11: Introduction to PolarFire SoC MSS Configuration and Software Flow Apr

  3. Slide 3: Add and Debug PolarFire SoC Peripherals with Renode

    Getting Started with the RISC-V Based PolarFire® SoC FPGA Webinar Series Session 5: “Add and Debug PolarFire SoC Peripherals with Renode” Hugh Breslin, Embedded Linux Engineer Thursday Sep. 5, 2019

  4. Slide 4: Supporting Content

    Supporting Content www.microsemi.com/Mi-V “Renode Webinar Series” 4

  5. Slide 5: Add and Debug PolarFire SoC Peripherals with Renode

    Add and Debug PolarFire® SoC Peripherals with Renode ⚫ The files that make a Renode system ⚫ The launch script ⚫ CPU file ⚫ Board file ⚫ Summary ⚫ Debugging a peripheral 5

  6. Slide 6: The Files That Make a Renode System

    Learn to Debug a Bare-Metal PolarFire® SoC Application with Renode The Files That Make a Renode System 6

  7. Slide 7: The Files That Make a Renode System

    The Files That Make a Renode System ⚫ We have two pre-configured systems: Mi-V Renode emulation platform (Mi-V system): Configured to emulate the Mi-V soft CPUs (RV32G core with UART, GPIOs and Timers) PolarFire SoC Renode emulation platform (PolarFire SoC system): Configured to emulate PolarFire So

  8. Slide 8: The Files That Make a Renode System

    The Files That Make a Renode System • 3 files that can make up a Renode system Launch Script • Only the script file is passed as an argument when launching Renode • Script file: Tells Renode to create a machine, load CPU File the board file and run commands • Board file: Tells Renode to load the CPU

  9. Slide 9: The Files That Make a Renode System

    The Files That Make a Renode System Boards miv-board.repl SoftConsole Installation Platforms miv.repl CPUs Directory Renode polarfire.repl miv.resc Scripts Single-node polarfire-soc- multiple-servers.resc 9

  10. Slide 10: The Files That Make a Renode System

    The Files That Make a Renode System • Easiest way to deal with the files and folder structure is to create a “Renode” project in SoftConsole 10

  11. Slide 11: The Files That Make a Renode System

    The Files That Make a Renode System SoftConsole Installation Renode Directory • Platforms: Contains configuration files for platforms (i.e. CPU and board files) • Scripts: Contains launch files for different platforms (i.e. launch scripts) 11

  12. Slide 12: The Files That Make a Renode System

    The Files That Make a Renode System • miv.resc: Launches the Mi-V system • polarfire-soc-multiple-servers.resc: Launches the PolarFire SoC system 12

  13. Slide 13: The Files That Make a Renode System

    The Files That Make a Renode System Board files • PF SoC system: n/a • Mi-V system: miv-board.repl 13

  14. Slide 14: The Files That Make a Renode System

    The Files That Make a Renode System CPU files • PolarFire SoC system: polarfire.repl • Mi-V system: miv.repl 14

  15. Slide 15: The Files That Make a Renode System

    The Files That Make a Renode System SoftConsole Board Script CPU Polarfire- Polarfire_board Renode soc-multiple- .repl [not Polarfire.repl included in servers.resc example] Configures System configuration Renode launch Connects top (CPU, peripherals, level I/O memory map) 15

  16. Slide 16: The Launch Script

    S MICROCHIP The Launch Script

  17. Slide 17: The Launch Script

    The Launch Script 1. Create a new machine 2. Load the platform 3. Connect buttons to GPIOs * Could be done in the board file * 4. Configure logging 5. Show UART analyser 6. Start a GDB server on each hart 7. Print message to allow SC to start GDB 17

  18. Slide 18: The CPU File

    S MICROCHIP The CPU File

  19. Slide 19: The CPU File

    The CPU File ADD CPU to the system Connecting a CPU: [name]: [path_to_cpu] @ sysbus cpu_Type: “[cpu_type]” hartId: [ID] privilegeArchitecture: PrivilegeArchitecture.[version] clint: clint 19

  20. Slide 20: The CPU File

    The CPU File ADD UART to the system Connecting a peripheral: It depends on the peripheral! [name]: [path_to_peripheral] @ sysbus [address] [parameters0] [parameters1] etc. 20

  21. Slide 21: The CPU File

    The CPU File 6 4 1 2 2 1 3 7 4 5 8 6 7 5 8 9 9 10 10 3 21

  22. Slide 22: The CPU File

    The CPU File Add a second UART Current UART: uart: UART.MiV_CoreUART @ sysbus 0x70001000 clockFrequency: 66000000 Second UART: uart2: UART.MiV_CoreUART @ sysbus 0x70006000 clockFrequency: 66000000 22

  23. Slide 23: The CPU File

    The CPU File 6 4 1 2 2 1 3 7 4 5 8 6 7 8 5 5 9 9 10 10 3 11 11 23

  24. Slide 24: The Board File

    S MICROCHIP The Board File

  25. Slide 25: The Board File

    The Board File 1. Load the CPU file 2. Connect GPIO outputs to LEDs 3. Create LEDs 4. Create switches 5. Connect switch to GPIO 25

  26. Slide 26: The Board File

    MICROCHIP The Board File SC workspace.examples - Renode/platforms/boards/miv-board.repl - Micrasemi SoftCanzale v600.116 File Edit Source Refactor Navigate Search Project Git Run Window Help viel RB BrOraragy SGT Or ject Explorer © Am ysco OF J neo promt ¥ Renode: flash: Memory.MappedMemory @ sysbus

  27. Slide 27: The Board File

    MICROCHIP 80 workspaceexamples- Re latforms/ooards/miv-d0ard.rep Edit Source Refactor Navigate Search Git Bun ue | Project Explorer 5 = rmiv-boardsep! mtfpga-cortex-mt-bingy 15 mivrv22im-interupt- binky eniooutputs: Mi semi SofConsole v60.0.116 Window Help #rOvRr 4 seeree using “platfonns/cpus/miv..

  28. Slide 28: Summary

    S MICROCHIP Summary

  29. Slide 29: Summary

    Summary SoftConsole Board Script CPU Polarfire- Polarfire_board .repl [not Polarfire.repl soc-multiple- needed for servers.resc example] System Configures Connects top configuration Renode Renode launch level I/O (CPU, peripherals, memory map) 29

  30. Slide 30: Summary

    Summary Boards Miv-board.repl SoftConsole Installation Platforms miv.Repl Cpus Renode Polarfire.repl miv.Resc Scripts Single-node Polarfire-soc- multiple-servers.resc 30

  31. Slide 31: Summary

    Summary 1. Launch the Renode external tool configuration Launch Script 2. Renode starts CPU File A. Loads the script file passed to it as an argument B. Script creates a machine C. Script tells Renode to load a board file D. Board file tells Renode to load a CPU file E. Renode loads the CPU file Boa

  32. Slide 32: Summary: Available Peripherals Mi-V system

    Summary: Available Peripherals Mi-V system Memory Cores Peripherals DDR RV32G CoreUART Flash PLIC CLINT CoreGPIO CoreTimer 32

  33. Slide 33: Summary: Available Peripherals PolarFire SoC system

    Summary: Available Peripherals PolarFire SoC system Cores Memory Peripherals Peripherals contd. RV64IMAC DDR CLINT Cadence GEM (MAC) RV64GC Flash PLIC PSE GPIO PSE eNVM NS16550 UART PSE RTC PSE SD Controller PSE Timer PSE SPI PSE USB PSE I2C PSE PCI PSE CAN 33

  34. Slide 34: Debugging Adding Peripherals

    Debugging Adding Peripherals

  35. Slide 35: Debugging Adding Peripherals

    Debugging Adding Peripherals 35

  36. Slide 36: Debugging Adding Peripherals

    Debugging Adding Peripherals 36

  37. Slide 37: Debugging Adding Peripherals

    Debugging Adding Peripherals 1. There was an error executing command 'machine LoadPlatformDescription C:\Microsemi\SoftConsole_v6.0.0.0.0\renode\platforms\boards\miv-board.repl' 2. Error E25: Could not find suitable constructor for type 'Antmicro.Renode.Peripherals.Timers.MiV_CoreTimer'. A. Construc

  38. Slide 38: Debugging Adding Peripherals

    Debugging Adding Peripherals 38

  39. Slide 39: Debugging Adding Peripherals

    Debugging Adding Peripherals 39

  40. Slide 40: Debugging Adding Peripherals

    Debugging Adding Peripherals 1. There was an error executing command 'machine LoadPlatformDescription C:\Microsemi\SoftConsole_v6.0.0.0.0\renode\platforms\boards\miv-board.repl' 2. Error E39: Exception was thrown during registration of 'timer0 in 'sysbus': 1. Could not register Given address <0x7000

  41. Slide 41: Debugging Adding Peripherals

    Debugging Adding Peripherals 41

  42. Slide 42: Debugging Adding Peripherals

    Debugging Adding Peripherals 42

  43. Slide 43: Debugging Adding Peripherals

    Debugging Adding Peripherals 1. There was an error executing command 'machine LoadPlatformDescription C:\Microsemi\SoftConsole_v6.0.0.0.0\renode\platforms\boards\miv-board.repl' 2. Error E11: Irq destination 'led0' does not exist. 1. At C:\Microsemi\SoftConsole_v6.0.0.0.0\renode\platforms\boards\miv

  44. Slide 44: Debugging Adding Peripherals

    Debugging Adding Peripherals 44

  45. Slide 45: First Thursdays

    First Thursdays May 2 - Webinar 1: Discover Renode for PolarFire® SoC Design and Debug June 6 - Webinar 2: How to Get Started with Renode for PolarFire SoC July 4 - Webinar 3: Learn to Debug a Bare-Metal PolarFire SoC Application with Renode Aug. 1 - Webinar 4: Tips and Tricks for Even Easier PolarF

  46. Slide 46: Second Thursdays

    Second Thursdays Jan. 9 - Webinar 9: Run Linux on Renode (PolarFire SoC Model as a Quad-core SMP) – this is not a Linux / Buildroot tutorial Feb. 13 - Webinar 10: Build applications for Linux on PolarFire SoC Mar. 12 - Webinar 11: Introduction to PolarFire SoC MSS Configuration and Software Flow Apr

  47. Slide 47: Thank You

    S MICROCHIP Thank You

Microchip Technology — Technical Presentation (September 2019) on 6ix