When writing code in Python, almost all Simics API functions can be used. Since not all C types are available in Python, Simics supplies the following special type mappings.
| 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 |