|
CIRCT 24.0.0git
|


Public Member Functions | |
| __init__ (self, SourceFiles sources, Path run_dir, bool debug, bool save_waveform=False, Optional[Callable[[str], None]] run_stdout_callback=None, Optional[Callable[[str], None]] run_stderr_callback=None, Optional[Callable[[str], None]] compile_stdout_callback=None, Optional[Callable[[str], None]] compile_stderr_callback=None, bool make_default_logs=True, Optional[Dict[str, Optional[str]]] macro_definitions=None, Optional[List[int]] suppressed_questa_errors=None) | |
| List[str] | internal_compile_commands (self) |
| List[Simulator.CompileStep] | compile_commands (self) |
| List[str] | run_command (self, bool gui) |
| int | run (self, str inner_command, bool gui=False, bool server_only=False) |
| Public Member Functions inherited from simulator.Simulator | |
| __init__ (self, SourceFiles sources, Path run_dir, bool debug, bool save_waveform=False, Optional[Callable[[str], None]] run_stdout_callback=None, Optional[Callable[[str], None]] run_stderr_callback=None, Optional[Callable[[str], None]] compile_stdout_callback=None, Optional[Callable[[str], None]] compile_stderr_callback=None, bool make_default_logs=True, Optional[Dict[str, Optional[str]]] macro_definitions=None) | |
| int | compile (self) |
| str | waveform_extension (self) |
| SimProcess | run_proc (self, bool gui=False) |
Public Attributes | |
| suppressed_questa_errors = suppressed_questa_errors | |
| Public Attributes inherited from simulator.Simulator | |
| sources = sources | |
| run_dir = run_dir | |
| debug = debug | |
| save_waveform = save_waveform | |
| macro_definitions = macro_definitions | |
Static Public Attributes | |
| str | DefaultDriver = CosimCollateralDir / "driver.sv" |
| Static Public Attributes inherited from simulator.Simulator | |
| CompileCommand = List[str] | |
| CompileFunction = Callable[[], Optional[int]] | |
| CompileStep = Union[CompileCommand, CompileFunction] | |
| bool | UsesStderr = True |
Additional Inherited Members | |
| Static Public Member Functions inherited from simulator.Simulator | |
| Dict[str, str] | get_env () |
| Protected Member Functions inherited from simulator.Simulator | |
| int | _run_compile_command (self, CompileCommand cmd) |
| int | _run_compile_step (self, CompileStep step) |
| int|tuple[subprocess.Popen, List[threading.Thread]] | _start_process_with_callbacks (self, List[str] cmd, Optional[Dict[str, str]] env, Optional[Path] cwd, Optional[Callable[[str], None]] stdout_cb, Optional[Callable[[str], None]] stderr_cb, bool wait) |
| Protected Attributes inherited from simulator.Simulator | |
| list | _default_files = [] |
| _compile_stdout_cb | |
| _compile_stdout_log | |
| _compile_stderr_cb | |
| _compile_stderr_log | |
| _run_stdout_cb | |
| _run_stdout_log | |
| _run_stderr_cb | |
| _run_stderr_log | |
| questa.Questa.__init__ | ( | self, | |
| SourceFiles | sources, | ||
| Path | run_dir, | ||
| bool | debug, | ||
| bool | save_waveform = False, | ||
| Optional[Callable[[str], None]] | run_stdout_callback = None, | ||
| Optional[Callable[[str], None]] | run_stderr_callback = None, | ||
| Optional[Callable[[str], None]] | compile_stdout_callback = None, | ||
| Optional[Callable[[str], None]] | compile_stderr_callback = None, | ||
| bool | make_default_logs = True, | ||
| Optional[Dict[str, Optional[str]]] | macro_definitions = None, | ||
| Optional[List[int]] | suppressed_questa_errors = None ) |
| List[Simulator.CompileStep] questa.Questa.compile_commands | ( | self | ) |
Return the compile steps for the simulator. Each step may be either a shell command (`List[str]`) or a Python callback (`Callable[[], Optional[int]]`). Python callbacks should return `0` or `None` on success and a non-zero integer on failure.
Reimplemented from simulator.Simulator.
Definition at line 79 of file questa.py.
References internal_compile_commands().
Referenced by simulator.Simulator.compile().
| List[str] questa.Questa.internal_compile_commands | ( | self | ) |
Definition at line 48 of file questa.py.
References simulator.Simulator.sources.
Referenced by compile_commands().
| int questa.Questa.run | ( | self, | |
| str | inner_command, | ||
| bool | gui = False, | ||
| bool | server_only = False ) |
Override the Simulator.run() to add a link in the run directory (to the work directory) before running vsim the usual way.
Reimplemented from simulator.Simulator.
Definition at line 131 of file questa.py.
References run(), and simulator.Simulator.run_dir.
Referenced by run().
| List[str] questa.Questa.run_command | ( | self, | |
| bool | gui ) |
Return the command to run the simulation.
Reimplemented from simulator.Simulator.
Definition at line 89 of file questa.py.
Referenced by Python.setup.CustomBuild.run(), setup.CustomBuild.run(), and simulator.Simulator.run_proc().
|
static |
| questa.Questa.suppressed_questa_errors = suppressed_questa_errors |