The Command-Line Interface in Simics has simple scripting capabilities that can be used when writing parameterized configurations and scripts with conditional commands. For more advanced scripting, the Python language can be used.
This chapter describes how to write simple scripts in the Simics command line interface (CLI), using control flow commands, and variables. It also explains how the configuration system can be accessed from scripts, and how Python can be used for more advanced scripting.
All commands can be executed either by typing them at the prompt in the Simics console, or by writing them to a file, e.g. example.simics, and executing the command run-command-file example.simics, or for Python examples: run-python-file example.py.
8.1 Script Support in CLI
8.2 Scripting Using Python