10 Python API 10.2 Command Line Interface
API Reference Manual  /  10 Python API  / 

10.1 Simics Types in Python

When writing code in Python, almost all Simics API functions can be used. Since not all C/C++ types are available in Python, Simics supplies the following special type mappings.

C/C++ Python
attr_value_t (string) str (a Python string)
attr_value_t (integer) int or long
attr_value_t (floating) float
attr_value_t (list) list
attr_value_t (data) tuple of integers (bytes)
attr_value_t (nil) None
attr_value_t (object) An object from the conf namespace.
attr_value_t (dict) dict
attr_value_t (boolean) bool
conf_class_t * A conf_class_t object
conf_object_t * An object from the conf namespace

10 Python API 10.2 Command Line Interface