Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# Python SystemVerilog interface

PyStim exposes Python types and functions using thin SystemVerilog wrappers, which makes it possible to conveniently call Python code from SystemVerilog without resorting to Python’s C API.

- Python types
  - Available wrappers
  - Instantiating compound Python types from SystemVerilog
  - Casting back and forth
  - Accessing Python libraries from SystemVerilog
  - Calling Python functions
  - Calling Python methods
  - Unpacking arguments
  - Implicit casting
  - Casting back and forth
  - Handling exceptions
- Utilities
  - Using Python’s print function in SystemVerilog
  - Evaluating Python expressions from strings and files