Main Content

Run Model on Virtual Prototyping (VP)

Virtual Prototyping (VP) provides an alternative platform that can simulate all the processing units, memories and peripherals available in Infineon AURIX™ TC4x MCU. You can build and test your model on virtual prototyping without the hardware using the Synopsys Virtual Prototyping (VP) Virtualizer.

Virtual Prototype (VP) is integrated into the Virtualizer Development Kit (VDK) from Synopsys. For more information on installation and set-up procedures for the VDK for IFX TC49x VP product family, refer to its installation guide.

Simulate the Model in Virtual Prototyping (VP)

  1. Configure a Simulink® model to generate code for Infineon AURIX TC4x. For more, see Getting Started with Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers.

  2. To generate code for the model, go to Hardware tab > Build and select Build, Deploy & Start.

    Build

  3. The generated code is created as an executable and linkable format (.elf).

  4. Launch the Virtualizer Studio (VSDK) from Simulink diagnostic viewer.

    Virtualizer studio

  5. Create a new VP configuration file. Go to Creation > Edit VP Config and select New VP Config

    New VP Config

  6. Name the new VP config and click Finish.

    VP config

  7. The new VP config is created in Virtualizer Studio as shown.

    VP

  8. In Images tab, go to TC49x_system > TC49x > Core_System > TriCore > Initial_image and click browse to provide an elf file which was created in step 2.

    Initial image

  9. Provide the elf file which was generated from step 2.

    elf

  10. Go to Analysis tab and configure the pins. For example, GPIO pins.

    Analysis

  11. Click Run to start the simulation.

    Run

  12. After successful simulation startup, the simulation halts at Initial crunch.

    • Click resume to start the simulation.

    • Use the play, pause and stop buttons in the VP to start or resume, pause, and stop the simulation respectively.

    Intial crunch

  13. Click Display selected analyses in Charts to view the simulation results.

    Display chart

Related Topics