Back to the glossary
Embedded and systems
Virtual ECU (vECU)
A virtual ECU is a control unit’s software prepared to run without the real hardware, on a PC or in the cloud. It is the basis for software-in-the-loop testing of complete control units.
Also known as: virtual control unit, virtual electronic control unit
Different levels of completeness
How much of the real control unit a virtual ECU contains varies widely:
- Application logic only: the functional software is compiled for the PC, hardware access is replaced by placeholders
- With basic software: operating system, communication stacks and diagnostics run too, only the lowest hardware layer is simulated
- With processor emulation: the unmodified production code runs on an emulated microcontroller
The more it contains, the closer it is to the original, but also the more effort it takes to build and run.
Why virtual ECUs?
- Testing before hardware is available, in the spirit of shift-left
- Running tests in parallel at will instead of waiting for scarce test benches
- Running tests faster than real time
- Coupling several virtual ECUs into a network
FMI is often used as the exchange format. Virtual ECUs don’t fully replace HiL tests: electrical behaviour, real timing and hardware faults only show up on the real device.