• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • Automotive
    • Connectivity
    • Consumer Electronics
    • Industrial
    • Medical
    • Security
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Videos
    • TI Microcontroller Videos
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center

The fundamentals of MCU-based hardware virtualization

December 2, 2019 By Majeed Ahmad 1 Comment

Virtualization, a powerful technology concept commonly associated with high-end applications in servers, is coming to the microcontrollers featuring multiple execution domains via multiple CPUs with a lock-step mechanism. The microcontrollers that incorporate hardware-based virtualization-assisted functions mark a new integration milestone in the embedded design world.

Moreover, by running multiple software components on a single MCU without interfering with each other, hardware virtualization brings a new level of flexibility and reliability in safety-critical embedded environments. Automotive MCUs running multiple safety integrity levels are a case in point.

Additionally, software systems with different security levels can be executed alongside non-critical software on the same hardware. For instance, a cockpit controller can run an instrument cluster and an in-vehicle infotainment system on a single piece of hardware.

How MCU virtualization works

So, what’s driving the virtualization-ready CPUs on low-cost microcontrollers. The simple answer is that the hardware-based virtualization functions dramatically reduce the processing overhead.

The software-based virtualization, commonly known as a hypervisor, consumes more processing time due to the need to emulate hardware virtually. It must change the CPU states and deliver interrupts. That, in turn, poses problems for automotive MCUs in terms of ensuring the real-time responsiveness for safety-critical applications.

The MCU virtualization also works on the basic hypervisor principles. The hypervisor creates independent virtual machines (VMs), and each VM is isolated from the others. VM isolation allows design engineers to modify or update the systems independently. For that, however, an MCU inevitably requires a large flash memory capacity.

MCU-based hardware virtualization
Figure 1: The multicore MCUs with hardware virtualization functions are allowing automotive designers to move software development and system testing from physical to virtual environments. (Image: Synopsys)

In hardware virtualization, hypervisors can specifically be deployed for multiple RTOSes like AUTOSAR by utilizing MCU features like memory protection. Furthermore, several hypervisors can run on a CPU core.

MCU virtualization venues

The hardware virtualization on MCU platforms is still in its early stages. Some chipmakers are unveiling test chips that can serve as a stepping stone toward MCU virtualization. These chips allow automotive designers to develop software and test patterns ahead of actual samples and move designs from physical to virtual systems (Figure 1).

Then there are EDA houses collaborating with MCU suppliers; the virtualization development kits provided by EDA firms help create virtual prototypes as embedded targets that can be deployed by software teams of MCU suppliers. It also enables electronic control unit (ECU) developers at car OEMs, and Tier-1’s to create a virtual hardware environment for systems integration, fault and coverage testing, and regression testing.

Figure 2: The low-complexity embedded hypervisors facilitate hardware virtualization on low-cost MCUs. (Image: Open Synergy)

Finally, there are software houses that provide software hypervisors for CPU cores like ARM Cortex-R52 (Figure 2). That allows MCU suppliers to run multiple, unmodified operating systems and applications on top of a single microcontroller. It also demonstrates how hardware virtualization is going to be a critical building block in consolidating multiple applications on a microcontroller.

 

Filed Under: Embedded, FAQ, Featured, Hardware, microcontroller Tagged With: FAQ, opensynergy, synopsysinc

Reader Interactions

Comments

  1. Anto Thomas Eluvathingal says

    July 14, 2020 at 1:55 am

    Thanks for publishing the article and this article was very useful for me. I have a query on the hypervisor. Consider a processor that support hypervisor NXP iMX8 and controller NXP S32S. So, does iMX8 supports the software hypervisor and NXP S32S support hardware-based hypervisor?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

DesignFast

Component Selection Made Simple.

Try it Today
design fast globle

EE Training Center Classrooms

“ee

“ee

“ee

“ee

Subscribe to our Newsletter

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

RSS Current EDABoard.com discussions

  • cmos leakage and average current
  • PSoC1 programming
  • Kitchen balance load cells 10 kg
  • CLOCK DIVIDER
  • dsPIC33f ADC reading voltage help

RSS Current Electro-Tech-Online.com Discussions

  • infrasonic frequency
  • Definitive Technology Subwoofer repair
  • Dust extractor remote switch
  • Best way to reverse a DC motor
  • Touch circuit sound, led. 555 timer

Follow us on Twitter

Tweets by MicroContrlTips

Footer

Microcontroller Tips

EE World Online Network

  • DesignFast
  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • Connector Tips
  • Analog IC Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on TwitterAdd us on FacebookFollow us on YouTube Follow us on Instagram

Copyright © 2021 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy