Intel® Simics® Simulator for Intel® FPGAs: Agilex™ 5 E-Series Virtual Platform User Guide

ID 786901
Date 8/08/2024
Public
Document Table of Contents

2.1.3.10. USB Controller Host/Device Mode Configuration

Configure the USB 3.1 and USB 2.0 controllers either in host and device modes, and perform the switching during the simulation using the plug command. In general, the configuration as host or device depends on the direction in which the plug command is called as follows:

<object acting as Device>.plug <object acting as Host (board, port)>

You can configure the USB controllers in host mode using the mechanism described in the USB Disks Hot-Plug Support section (connecting a USB disk to the corresponding port) in which the disks (device) are being plugged into the USB controller ports (host).

Note:
  • A small delay is required between unplug and plug commands so that the HPS software driver has time to complete suspend and resume operations.
  • To configure the USB controller in device mode, you must have a second component acting as a host. Since the Agilex™ 5 E-Series Universal Virtual Platform only instantiates one single Agilex™ 5 E-Series device (acting as USB device in this case), you cannot exercise this functionality in the virtual platform.