2 Installation 4 Command Line Interface (CLI)
Getting Started  / 

3 Launching and Exiting

This section describes how to launch and exit the simulator.

This tutorial assumes that the user has followed the installation steps in the installation section.

The screenshots below were taken on Windows, but the Linux version of the Intel Simics simulator behaves similarly.

3.1 Launch the simulator

  1. First, let’s get a command prompt on the host machine.

  2. Once command prompt window is available, navigate to the project directory.

  3. To launch the simulator, and to get its command prompt just run the simics.bat batch file (on Linux, the simics shell script is to be used instead by entering the ./simics command).

    Simics has now been launched.

  4. With the CLI available, we can try running the command list-packages, which lists the packages available to the current project:

There are also launch options available to customize what happens when launching the simulator.

3.2 Exit the Simulator

To quit the simulator just enter the quit command:

3.3 Launch options

Simics has a couple launch options that can be listed with the --help flag:

c:\simics\project>simics.bat --help

Usage: simics [options] [<file>|<target> ...] [--preset <name|file> ...] [<param>=<value> ...]
Common options:

  --batch-mode                quit on error or when returning to prompt
  -e, --execute <command>     execute a CLI command
  -h, --help                  print this help or list all script parameters if
                              used with a file. All other options are ignored
  -l, --list-targets          list available targets
...

These are some of more commonly used options:

3.4 Summary

To sum up, in this section we launched the simulator, tried out a command and exited the simulator.

2 Installation 4 Command Line Interface (CLI)