Intel® Simics® Simulator for Intel® FPGAs: User Guide

ID 784383
Date 12/04/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.4.3.1. Retrieve List of Devices

You can retrieve the list of the Intel® Simics® model devices that are part of the current virtual platform using the “devs” command (only shown the devices that are mapped into a memory space). This command provides information about how many times each device has been accessed, and where they are mapped. The syntax for this command is the following:

devs [device]

You can use the device argument to show information for a single device only. The mappings are presented as start and end offsets within a named memory space. The function number or port name associated with each different mapping for a device is also printed.

The following Intel® Simics® simulator console capture shows a couple of examples of the calling of devs command:

# Intel Simics simulator CLI 

simics> devs
------------------------------------------------------------------------
Count Device               Space                Range            Fn/Port
------------------------------------------------------------------------
 0  agilex.ccu.bank.cpu0   agilex.hps.phys_mem  0xf7000000 -       0
                                                0xf7000fff    
 :                                              
 0  agilex.uart0.bank.regs agilex.hps.phys_mem  0xffc02000 –       0
                                                0xffc020ff 
 0  agilex.uart1.bank.regs agilex.hps.phys_mem  0xffc02100 -       0
                                                0xffc021ff  
------------------------------------------------------------------------

simics> devs agilex.sdmmc.port.pio
------------------------------------------------------------------------
Count Device               Space                Range            Fn/Port
------------------------------------------------------------------------
0  agilex.sdmmc.port.pio  agilex.hps.phys_mem   0xff808200 -       0
                                                0xff809fff
------------------------------------------------------------------------
Note: In the previous capture, CCU and UART devices are listed when calling the devs command. In the output, you can observe that these are mapped in physical memory and the memory range is provided. The devs agilex.sdmmc.port.pio command is used to only retrieve the device information corresponding to the IO port of the sdmmc device.