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

4.3. Starting the Simulation

After you set up the simulation, you can start the simulation.

Start the simulation with the target script along with the simics or simics-gui applications that were created under the project directory.

The following example shows an example of how to launch the simulation by running Intel® Simics® agilex5e-universal.simics script with the simics command.
/home/simicsUser/SimicsEnv/project-1 $ ./simics agilex5e-universal.simics

Intel Simics 6 (build 6190 linux64)© 2023 Intel Corporation
 
Use of this software is subject to appropriate license.
Type 'copyright' for details on copyright and 'help' for on-line documentation.
 
Search directories:
The current Intel Simics search path is:
   /home/simicsUser/SimicsEnv/project-1
[system.board info] Creating SD card
[system.board.nand.nand_image info] Raising read/busy pin to NAND controller
NAPT enabled with gateway 10.10.0.1/24 on link ethernet_switch0.link.
NAPT enabled with gateway fe80::2220:20ff:fe20:2000/64 on link ethernet_switch0.link.
Loading SD image /home/simicsUser/SimicsEnv/project-1/sm_images/gsrd-console-image-agilex5.wic
:
:
simics> run
running>

When you launch the simulation with the simics command, the host terminal becomes the Intel® Simics® simulator CLI. In this terminal, you can interact with the simulation with any Intel® Simics® simulation command.

To start running the simulation, use the run Intel® Simics® CLI command.

When the simulation is run, the target system serial console shows the boot log messages. The target serial console is enabled by default, but you can disable it in the script components or Python components.

A partial view of the log showing the boot flow going from the u-boot SPL to ATF to U-Boot to Linux* login prompt is as follows:
U-Boot SPL 2022.01 (Dec 20 2022 - 09:01:15 +0000)
Reset state: Cold
MPU           640000 kHz
L4 Main       400000 kHz
L4 sys free   100000 kHz
L4 MP         200000 kHz
L4 SP         100000 kHz
SDMMC          50000 kHz
DDR: Calibration success
DDR: Warning: DRAM size from device tree (2048 MiB)
mismatch with hardware (4096 MiB).
DDR5: 2048 MiB
:
Trying to boot from MMC1
## Checking hash(es) for config board-0 ... OK
## Checking hash(es) for Image atf ... crc32+ OK
## Checking hash(es) for Image uboot ... crc32+ OK
## Checking hash(es) for Image fdt-0 ... crc32+ OK
NOTICE:  BL31: bl31_setup
NOTICE:  BL31: Enable_MMU_EL3
NOTICE:  BL31: bl31_plat_arch_setup
NOTICE:  BL31: v2.7.0(release):8abd3026e
NOTICE:  BL31: Built : 09:00:59, Jan 13 2023

U-Boot 2022.01 (Dec 20 2022 - 09:01:15 +0000)socfpga_agilex5
 
CPU:   Intel FPGA SoCFPGA Platform (ARMv8 64bit Cortex-A55/A76)
Model: SoCFPGA Agilex5 SoCDK
DRAM:  2 GiB
:
   Uncompressing Kernel Image
   Loading Device Tree to 00000000ffaf6000, end 00000000ffafc74f ... OK
SF: Detected mt25qu02g with page size 256 Bytes, erase size 4 KiB, total 256 MiB
Enabling QSPI at Linux DTB...
QSPI clock frequency updated
RSU: Firmware or flash content not supporting RSU
 
Starting kernel ...
 
[    0.000000] start_kernel: Kernel command line: (null)
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 5.16.0-altera (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.39.0.20220819) #1 SMP PREEMPT Thu Jan 19 04:36:06 UTC 2023
[    0.000000] Machine model: SoCFPGA Agilex5 SoCDK
:
[    3.655631] random: crng init done
[    6.883283] dw-apb-uart 10c02000.serial: failed to request DMA
 
Poky (Yocto Project Reference Distro) 4.1.2 dhcp0 ttyS0
 
dhcp0 login:

For additional information about running the simulation and simulation control refer to the following sections in the Intel® Simics® Simulator for Intel® FPGAs User Guide: