Implement an example Virtual Peripheral with Arm Virtual Hardware

Who is this for?

This is an introductory topic for software developers new to Arm Virtual Hardware and its features.

What will you learn?

Upon completion of this Learning Path, you will be able to:

  • Create and integrate an LED peripheral with the Virtual IO (VIO) interface of AVH.

Prerequisites

Before starting, you will need the following:

  • A valid AWS account
  • Some familiarity with Python

Summary

AI-assisted

This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
You’ll implement a simple virtual LED peripheral and connect it to Arm Virtual Hardware using the Virtual Input/Output (VIO) interface. First, you’ll start an Arm Virtual Hardware Amazon Machine Image (AMI) in AWS, install the Tkinter package for Python in the AVH terminal, and clone the example project. You’ll focus on wiring the virtual peripheral to VIO and running the example in the leds_example directory to observe the interaction between the simulated device and the application. By the end, you’ll recognize how VIO routes peripheral I/O between AVH and a small Python UI to emulate real-world stimuli.

Frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
Which AVH interface should I use to connect the LED example?
You’ll use the Virtual Input/Output (VIO) interface provided by Arm Virtual Hardware to connect the example peripheral.
What do I need to install to run the example’s Python UI?
Install the Tkinter package for Python in the AVH terminal with: sudo apt install -y python3-tk.
Where is the LED example located after I clone the repository?
After cloning, navigate into the leds_example directory to work with the sample.
I haven’t launched Arm Virtual Hardware yet — what should I do first?
Start the Arm Virtual Hardware AMI in an AWS account and follow the Arm Virtual Hardware install guide to reach the AVH terminal.
How do I know the environment is ready before running the example?
Verify that python3-tk installs without errors and that the repository is cloned, with the current directory set to leds_example.
Next