CIRCT  19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
esi-cosim.Simulator Class Reference
Inheritance diagram for esi-cosim.Simulator:
Inheritance graph
[legend]
Collaboration diagram for esi-cosim.Simulator:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, SourceFiles sources, Path run_dir, bool debug)
 
List[str] compile_command (self)
 
int compile (self)
 
List[str] run_command (self)
 
int run (self, str inner_command)
 

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 84 of file esi-cosim.py.

Constructor & Destructor Documentation

◆ __init__()

def esi-cosim.Simulator.__init__ (   self,
SourceFiles  sources,
Path  run_dir,
bool  debug 
)

Reimplemented in esi-cosim.Verilator.

Definition at line 91 of file esi-cosim.py.

Member Function Documentation

◆ compile()

int esi-cosim.Simulator.compile (   self)

◆ compile_command()

List[str] esi-cosim.Simulator.compile_command (   self)
Compile the sources. Returns the exit code of the simulation compiler.

Reimplemented in esi-cosim.Questa, and esi-cosim.Verilator.

Definition at line 107 of file esi-cosim.py.

Referenced by esi-cosim.Simulator.compile().

◆ get_env()

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

Definition at line 97 of file esi-cosim.py.

◆ run()

int esi-cosim.Simulator.run (   self,
str  inner_command 
)
Start the simulation then run the command specified. Kill the simulation
when the command exits.

Reimplemented in esi-cosim.Questa.

Definition at line 131 of file esi-cosim.py.

References esi-cosim.Simulator.debug, esi-cosim.is_port_open(), esi-cosim.Simulator.run_command(), esi-cosim.Verilator.run_command(), esi-cosim.Questa.run_command(), and esi-cosim.Simulator.run_dir.

◆ run_command()

List[str] esi-cosim.Simulator.run_command (   self)
Return the command to run the simulation.

Reimplemented in esi-cosim.Questa, and esi-cosim.Verilator.

Definition at line 127 of file esi-cosim.py.

Referenced by Python.setup.CustomBuild.run(), setup.CustomBuild.run(), and esi-cosim.Simulator.run().

Member Data Documentation

◆ debug

esi-cosim.Simulator.debug

Definition at line 94 of file esi-cosim.py.

Referenced by esi-cosim.Verilator.compile_command(), and esi-cosim.Simulator.run().

◆ run_dir

esi-cosim.Simulator.run_dir

◆ sources

esi-cosim.Simulator.sources

◆ UsesStderr

bool esi-cosim.Simulator.UsesStderr = True
static

Definition at line 89 of file esi-cosim.py.

Referenced by esi-cosim.Simulator.compile().


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