Home / Learn / Chip Design / What Is a Virtual Platform?
On this page
What it modelsWhat it leaves outLevels of accuracyHow they are builtWhat virtual platforms are used forAdvantagesLimitationsCompared with emulation and prototypingHybrid useDigital twinsTheir place in a projectCommon questionsRelated guidesWhat Is a Virtual Platform?
A virtual platform is a software model of a chip or system that runs the real software intended for it. It behaves, from the software’s point of view, like the hardware: the same processor instructions, the same memory layout, the same control registers. Because it is only a program, it can exist long before the chip is designed in detail. Its main purpose is to let software development begin early.
What it models
A virtual platform represents the parts of a system that software interacts with.
- Processors, modeled so they execute the actual compiled code
- Memory, with the real address map
- Peripherals, such as timers, interrupt controllers, storage and network interfaces
- Control registers, which software reads and writes to operate the hardware
- Interrupts and other signals that software responds to
The software running on it is the unmodified binary that will run on the final chip, including boot code, operating system, drivers and applications.
What it leaves out
A virtual platform does not model the detailed logic inside each block or the exact timing of signals. It captures what the hardware does, not how the circuits do it.
That abstraction is the source of its speed. It is also its limit: a virtual platform cannot be used to verify the hardware design itself or to measure precise performance.
Levels of accuracy
| Level | Description | Speed | Typical use |
|---|---|---|---|
| Functional, loosely timed | Correct behavior, approximate timing | Fastest | Software development |
| Approximately timed | Adds estimated timing for transactions | Slower | Architecture and performance studies |
| Cycle accurate | Matches hardware timing cycle by cycle | Slowest | Detailed performance analysis |
Most virtual platforms for software development are loosely timed. They can run at tens or hundreds of millions of instructions per second, fast enough to boot an operating system in a reasonable time.
How they are built
Many virtual platforms are written using SystemC, a C++ library standardized by the IEEE, together with a modeling style called transaction-level modeling. In this style, components communicate by passing whole operations, such as “read from this address”, instead of toggling individual signals.
Fast processor models work by translating the target processor’s instructions into instructions for the host computer as they go. Open-source emulators such as QEMU are widely used as a base, alongside commercial tools.
Models of standard processors and common peripherals are available from their suppliers. The chip team writes models for its own custom blocks.
What virtual platforms are used for
- Early software development. Boot code, firmware, drivers and operating system support can be written and tested before RTL exists.
- Architecture exploration. Different hardware configurations can be compared before committing to one.
- Hardware and software partitioning. Teams can study which functions belong in hardware and which in software.
- Automated software testing. Thousands of tests can run in parallel on ordinary servers.
- Fault injection. Errors can be introduced deliberately to check how software responds, which is hard to do with real hardware.
- Early customer access. Customers can begin developing their own software before chips are available.
- A reference model. The platform’s behavior can be compared against the detailed design during verification.
Advantages
- Available first. No hardware design needs to be complete.
- Fast. Close to real time for many workloads.
- Easy to distribute. It is software, so every developer can have a copy.
- Excellent for debugging. Execution can be paused, inspected and rerun identically, and in some tools even stepped backward.
- Deterministic. The same run produces the same result, which makes intermittent bugs reproducible.
- Scalable. It runs on standard computing infrastructure.
Limitations
- Not the real design. A model can differ from the hardware. Software that works on the model may still fail on silicon if the two disagree.
- Modeling effort. Custom blocks need models written and maintained.
- Limited timing fidelity. Bugs that depend on exact timing may not appear.
- Keeping it in step. As the hardware specification changes, the models must be updated.
Compared with emulation and prototyping
| Virtual platform | Emulation | FPGA prototype | |
|---|---|---|---|
| Based on | Software models | The actual RTL | The actual RTL |
| Available | Before RTL | When RTL is fairly stable | When RTL is stable |
| Speed | Very fast | Moderate | Fast |
| Hardware accuracy | Functional | Exact | Exact |
| Good for | Early software | Hardware verification with software | Software and system validation |
These are complementary. Software is first developed on the virtual platform, then run on emulation and prototypes, where it meets the real design.
Hybrid use
A virtual platform can be connected to an emulator. The processor runs as a fast model, and the blocks under scrutiny run as real RTL on the emulator. The combination boots software far faster than emulating everything, and the hardware of interest is still exact.
Digital twins
The idea extends beyond a single chip. A model of a complete electronic system, such as all the control units in a vehicle, lets software be developed and tested for the whole system before hardware is assembled. In that context the model is often called a digital twin.
Their place in a project
A typical sequence is:
- Architecture is defined, and a virtual platform is built from the specification.
- Software development starts on it, in parallel with hardware design.
- As RTL matures, software moves to emulation and prototypes.
- When silicon arrives, software that has already been exercised is ready to run.
This parallel working is one of the main ways teams shorten the overall schedule.
Common questions
Is a virtual platform the same as a simulator?
It is a kind of simulator, but at a much higher level of abstraction than the logic simulators used for hardware verification. It models behavior that software can see, not individual circuits.
Can a virtual platform find hardware bugs?
Not directly, since it does not contain the real design. It can expose problems in the specification and is sometimes used as a reference to compare the hardware against.
Does software written on a virtual platform run unchanged on the chip?
That is the aim, and it largely holds when the models are accurate. Some issues, particularly timing-dependent ones, only surface on the real hardware.