CIRCT 22.0.0git
|
Public Member Functions | |
__init__ (self, SourceFiles sources, Path run_dir, bool debug, 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, str]] macro_definitions=None, Optional[List[int]] suppressed_questa_errors=None) | |
List[str] | internal_compile_commands (self) |
List[List[str]] | compile_commands (self) |
List[str] | run_command (self, bool gui) |
int | run (self, str inner_command, bool gui=False, bool server_only=False) |
![]() | |
int | compile (self) |
SimProcess | run_proc (self, bool gui=False) |
Public Attributes | |
suppressed_questa_errors | |
![]() | |
sources | |
run_dir | |
debug | |
macro_definitions | |
Static Public Attributes | |
str | DefaultDriver = CosimCollateralDir / "driver.sv" |
bool | UsesStderr = False |
![]() | |
bool | UsesStderr = True |
Additional Inherited Members | |
![]() | |
Dict[str, str] | get_env () |
![]() | |
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) |
![]() | |
_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, | ||
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, str]] | macro_definitions = None , |
||
Optional[List[int]] | suppressed_questa_errors = None |
||
) |
Simulator base class. Optional sinks can be provided for capturing output. If not provided, the simulator will write to log files in `run_dir`. Args: sources: SourceFiles describing RTL/DPI inputs. run_dir: Directory where build/run artifacts are placed. debug: Enable cosim debug mode. run_stdout_callback: Line-based callback for runtime stdout. run_stderr_callback: Line-based callback for runtime stderr. compile_stdout_callback: Line-based callback for compile stdout. compile_stderr_callback: Line-based callback for compile stderr. make_default_logs: If True and corresponding callback is not supplied, create log file and emit via internally-created callback. macro_definitions: Optional dictionary of macro definitions to be defined during compilation.
Reimplemented from simulator.Simulator.
Definition at line 17 of file questa.py.
References questa.Questa.__init__().
Referenced by questa.Questa.__init__(), and synth.LongestPathCollection.merge().
List[List[str]] questa.Questa.compile_commands | ( | self | ) |
Compile the sources. Returns the exit code of the simulation compiler.
Reimplemented from simulator.Simulator.
Definition at line 76 of file questa.py.
References questa.Questa.internal_compile_commands().
Referenced by simulator.Simulator.compile().
List[str] questa.Questa.internal_compile_commands | ( | self | ) |
Definition at line 46 of file questa.py.
References simulator.Simulator.macro_definitions, simulator.Simulator.sources, and questa.Questa.suppressed_questa_errors.
Referenced by questa.Questa.compile_commands().
int questa.Questa.run | ( | self, | |
str | inner_command, | ||
bool | gui = False , |
||
bool | server_only = False |
||
) |
Override the Simulator.run() to add a soft link in the run directory (to the work directory) before running vsim the usual way.
Reimplemented from simulator.Simulator.
Definition at line 128 of file questa.py.
References questa.Questa.run(), and simulator.Simulator.run_dir.
Referenced by questa.Questa.run().
List[str] questa.Questa.run_command | ( | self, | |
bool | gui | ||
) |
Return the command to run the simulation.
Reimplemented from simulator.Simulator.
Definition at line 86 of file questa.py.
References esi::CliParser.debug, esi::Logger.debug(), esi::Logger.debug(), simulator.Simulator.debug, print(), and simulator.Simulator.sources.
Referenced by Python.setup.CustomBuild.run(), setup.CustomBuild.run(), and simulator.Simulator.run_proc().
|
static |
questa.Questa.suppressed_questa_errors |
Definition at line 41 of file questa.py.
Referenced by questa.Questa.internal_compile_commands().
|
static |
Definition at line 44 of file questa.py.
Referenced by simulator.Simulator.compile().