CIRCT 22.0.0git
|
Public Member Functions | |
__init__ (self, SourceFiles sources, Path run_dir, bool debug) | |
List[List[str]] | compile_commands (self) |
int | compile (self) |
List[str] | run_command (self, bool gui) |
SimProcess | run_proc (self, bool gui=False) |
int | run (self, str inner_command, bool gui=False, bool server_only=False) |
Static Public Member Functions | |
Dict[str, str] | get_env () |
Public Attributes | |
sources | |
run_dir | |
debug | |
Static Public Attributes | |
bool | UsesStderr = True |
Definition at line 89 of file simulator.py.
simulator.Simulator.__init__ | ( | self, | |
SourceFiles | sources, | ||
Path | run_dir, | ||
bool | debug | ||
) |
Reimplemented in verilator.Verilator.
Definition at line 96 of file simulator.py.
Referenced by synth.LongestPathCollection.merge().
int simulator.Simulator.compile | ( | self | ) |
Definition at line 116 of file simulator.py.
References questa.Questa.compile_commands(), simulator.Simulator.compile_commands(), verilator.Verilator.compile_commands(), print(), simulator.Simulator.run_dir, questa.Questa.UsesStderr, and simulator.Simulator.UsesStderr.
List[List[str]] simulator.Simulator.compile_commands | ( | self | ) |
Compile the sources. Returns the exit code of the simulation compiler.
Reimplemented in questa.Questa, and verilator.Verilator.
Definition at line 112 of file simulator.py.
Referenced by simulator.Simulator.compile().
|
static |
Get the environment variables to locate shared objects.
Definition at line 102 of file simulator.py.
int simulator.Simulator.run | ( | self, | |
str | inner_command, | ||
bool | gui = False , |
||
bool | server_only = False |
||
) |
Start the simulation then run the command specified. Kill the simulation when the command exits.
Reimplemented in questa.Questa.
Definition at line 201 of file simulator.py.
References simulator.Simulator.run_proc().
List[str] simulator.Simulator.run_command | ( | self, | |
bool | gui | ||
) |
Return the command to run the simulation.
Reimplemented in questa.Questa, and verilator.Verilator.
Definition at line 138 of file simulator.py.
Referenced by Python.setup.CustomBuild.run(), setup.CustomBuild.run(), and simulator.Simulator.run_proc().
SimProcess simulator.Simulator.run_proc | ( | self, | |
bool | gui = False |
||
) |
Run the simulation process. Returns the Popen object and the port which the simulation is listening on.
Definition at line 142 of file simulator.py.
References esi::CliParser.debug, esi::Logger.debug(), esi::Logger.debug(), simulator.Simulator.debug, simulator.is_port_open(), questa.Questa.run_command(), simulator.Simulator.run_command(), verilator.Verilator.run_command(), and simulator.Simulator.run_dir.
Referenced by simulator.Simulator.run().
simulator.Simulator.debug |
Definition at line 99 of file simulator.py.
Referenced by verilator.Verilator.compile_commands(), and simulator.Simulator.run_proc().
simulator.Simulator.run_dir |
Definition at line 98 of file simulator.py.
Referenced by simulator.Simulator.compile(), questa.Questa.run(), and simulator.Simulator.run_proc().
simulator.Simulator.sources |
Definition at line 97 of file simulator.py.
Referenced by verilator.Verilator.compile_commands(), questa.Questa.internal_compile_commands(), questa.Questa.run_command(), and verilator.Verilator.run_command().
|
static |
Definition at line 94 of file simulator.py.
Referenced by simulator.Simulator.compile().