CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
simulator.Simulator Class Reference
Inheritance diagram for simulator.Simulator:
Inheritance graph
[legend]
Collaboration diagram for simulator.Simulator:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 89 of file simulator.py.

Constructor & Destructor Documentation

◆ __init__()

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().

Member Function Documentation

◆ compile()

int simulator.Simulator.compile (   self)

◆ compile_commands()

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().

◆ get_env()

Dict[str, str] simulator.Simulator.get_env ( )
static
Get the environment variables to locate shared objects.

Definition at line 102 of file simulator.py.

◆ run()

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().

◆ run_command()

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().

◆ 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().

Member Data Documentation

◆ debug

simulator.Simulator.debug

◆ run_dir

simulator.Simulator.run_dir

◆ sources

simulator.Simulator.sources

◆ UsesStderr

bool simulator.Simulator.UsesStderr = True
static

Definition at line 94 of file simulator.py.

Referenced by simulator.Simulator.compile().


The documentation for this class was generated from the following file: