Arm Community
Arm Community
  • Site
  • User
  • Site
  • Search
  • User
  • Groups
    • Research Collaboration and Enablement
    • DesignStart
    • Education Hub
    • Innovation
    • Open Source Software and Platforms
  • Forums
    • AI and ML forum
    • Architectures and Processors forum
    • Arm Development Platforms forum
    • Arm Development Studio forum
    • Arm Virtual Hardware forum
    • Automotive forum
    • Compilers and Libraries forum
    • Graphics, Gaming, and VR forum
    • High Performance Computing (HPC) forum
    • Infrastructure Solutions forum
    • Internet of Things (IoT) forum
    • Keil forum
    • Morello Forum
    • Operating Systems forum
    • SoC Design and Simulation forum
    • 中文社区论区
  • Blogs
    • AI and ML blog
    • Announcements
    • Architectures and Processors blog
    • Automotive blog
    • Graphics, Gaming, and VR blog
    • High Performance Computing (HPC) blog
    • Infrastructure Solutions blog
    • Innovation blog
    • Internet of Things (IoT) blog
    • Operating Systems blog
    • Research Articles
    • SoC Design and Simulation blog
    • Tools, Software and IDEs blog
    • 中文社区博客
  • Support
    • Arm Support Services
    • Documentation
    • Downloads
    • Training
    • Arm Approved program
    • Arm Design Reviews
  • Community Help
  • More
  • Cancel
Arm Community blogs
Arm Community blogs
SoC Design and Simulation blog Virtual prototypes: 5 considerations when choosing software development platforms
  • Blogs
  • Mentions
  • Sub-Groups
  • Tags
  • Jump...
  • Cancel
More blogs in Arm Community blogs
  • AI and ML blog

  • Announcements

  • Architectures and Processors blog

  • Automotive blog

  • Embedded blog

  • Graphics, Gaming, and VR blog

  • High Performance Computing (HPC) blog

  • Infrastructure Solutions blog

  • Internet of Things (IoT) blog

  • Operating Systems blog

  • SoC Design and Simulation blog

  • Tools, Software and IDEs blog

Tags
  • Simulation
  • Fast Models
  • Fixed Virtual Platforms (FVPs)
  • Software Development
  • SoC Design
Actions
  • RSS
  • More
  • Cancel
Related blog posts
Related forum threads

Virtual prototypes: 5 considerations when choosing software development platforms

Rob Kaye
Rob Kaye
July 24, 2018

There are a few common questions that we get from customers when talking about virtual prototypes for software development which we will address in this blog.

Let’s start with a summary on virtual prototypes

Virtual prototypes (VPs) help developers get products to market faster by enabling software development prior to silicon availability, or with limited hardware access. VPs are simulation models of systems, or sub-systems that enable software development. They bring most value when used in parallel with the hardware design, but still have a place once the hardware is completed. Using virtual platforms reduces the lag between hardware delivery and software readiness, speeding time to market.

Within Arm we make extensive use of virtual prototypes when developing the development tools and software stacks in support of our IP. We do this so that our software is ready at the same time as the hardware becomes available as that is what our customers (and we) expect. It is the models (and a team of talented people) that let us do this. These models are also used for architecture exploration and IP validation.

Early software development with virtual prototypes

Arm’s VP capability is centered around the programmer’s view models of our IP called Fast Models. We deliver VPs to our partners in two ways. Firstly there is a library pre-built platform called Fixed Virtual Platforms (FVPs) available off-the-shelf for many of our processors and IP. Secondly there is the portfolio of models from which a partner can build their own VP using either Arm tools or solutions from our ecosystem partners.  

With that in mind, let us move on to the common questions about virtual prototypes.

Arm Fixed Virtual Platform: SGM-775 diagram

1. Can I change a Fixed Virtual Platform?

The source code for the FVPs is supplied as examples in the Fast Models product. These examples can be edited and extended as needed and can be used either as the start point for a custom VP or reference if designing your own. You will need a Fast Models license for this activity.

The “fixed” aspect of the pre-built FVP is in the composition. It is supplied as a binary object so you can’t, for example, change components. However, there is still the scope to change many aspects of the platform through the comprehensive set of parameters that the FVP provides. Through parameters different functional blocks can be enabled or disabled and memory and cache configurations changed and so on.

2. Isn’t virtual prototype just a fancy name for an Instruction Set Simulator?

Yes and no! Inasmuch as the virtual platform simulates the instruction set one could consider it to be an Instruction Set Simulator (ISS). However, the big difference is that a VP is a functional model of a system, or subsystem, albeit one modelled at an abstract level known as either “programmer’s view (PV)” or “loosely timed (LT)”. The VP simulates all the processors in the system, along with system IP and graphics subsystems. The processors could be different Arm cores or a mix of Arm processor IP from other vendors. An ISS would typically not model implementation defined features of the core (e.g. caches) and unpredictable behaviors. These are modelled in the Arm VPs. 

3. Are virtual prototypes accurate enough for software development?

As we have already mentioned these are abstract models. They don’t have detailed micro-architectural detail of the cores and they don’t implement the full timing. These are usually transparent to the software running on the processors. For many developers, this raises a question about how much trust can be put in the simulation results. 

The models are validated against the same compliance kits and validation suites that are used in the IP validation process, ensuring their accuracy against the modelled hardware. The end result is that – in general – software that runs on the VP will run unmodified on the hardware. However, sometimes there may be reasons to stub out hardware components in the VP and that will entail software modifications. 

Plug-in modules improve correlation

All simulation models trade off detail against performance. VPs are no exception to this. To broaden the scope of where these LT models can be used, we have developed various plug-in modules – pipeline models, branch prediction models, prefetch models – that improve the correlation of the model and the target IP at a cycle level. These are all switchable so that they do not impact simulation performance when not in use. Which leads us into the next question…

4. Can a simulation-based approach be fast enough for developers?

Simulation models will execute software slower than the target hardware in most cases. However the questions are whether this is a critical issue and what an acceptable level of performance is. There are many factors that affect simulation speed. We mentioned the level of detail in the model: this can have a big effect and care needs to be taken in writing efficient models to maintain simulation speed. One of the biggest speed boosts can often be as simple as using a workstation with a faster CPU and/or more memory to run the simulations. Simulations can be batched up and run in parallel using server farms. The detailed step-by-step execution is often not important, so the user isn’t typically waiting on the simulation. The simulation can run in the background while they get on with other jobs (as I write this blog I’ve got a model running).

Typically, the VP will boot a high-level OS in a handful of minutes. Whilst not real-time, this is sufficient for most use cases.

5. Do virtual prototypes support continuous integration and regression testing?

Given that you don’t need special purpose hardware to run virtual models/prototypes on and the inherent flexibility of the VP, it makes them the ideal environment for software development based around continuous integration. It is something we use here and many of our partners do, too. 

You can have tens or hundreds of simulations running on VPs distributed across compute farms. And these can be scripted up and the results analyzed programmatically. So yes, VPs are the ideal platform for continuous integration.

I’m happy to get involved with answering any other questions about virtual prototypes that you may have - so please, leave a comment below, or send a private message. You can also download and evaluate Fast Models and Fixed Virtual Platforms below.

Evaluate Fast Models

Evaluate Fixed Virtual Platforms

Anonymous
SoC Design and Simulation blog
  • Arm Virtual Platform co-simulation solution accelerates SoC verification

    Daniel Owens
    Daniel Owens
    Avery Design Systems’ co-simulation design verification solution that integrates SystemC-based Arm virtual platforms with a SystemVerilog environment.
    • December 6, 2022
  • IP exchange and Cycle Models end-of-life update

    Gemma Platt
    Gemma Platt
    Arm Cycle Models and Arm IP Exchange are now End-of-Life, understand what this means to you.
    • May 25, 2022
  • Accelerate IP Selection with the New Arm IP Explorer

    Zach Lasiuk
    Zach Lasiuk
    The newly announced Arm IP Explorer platform represents a step-change in efficiency for the IP selection process when defining a custom System on Chip (SoC).
    • May 4, 2022