CIRCT  20.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[List[str]] compile_commands (self)
 
int compile (self)
 
List[str] run_command (self, bool gui)
 
int run (self, str inner_command, bool gui=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 85 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 92 of file esi-cosim.py.

Member Function Documentation

◆ compile()

int esi-cosim.Simulator.compile (   self)

◆ compile_commands()

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

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

Definition at line 108 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 98 of file esi-cosim.py.

◆ run()

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

Reimplemented in esi-cosim.Questa.

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

References esi-cosim.Simulator.debug, esi::Logger.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,
bool  gui 
)
Return the command to run the simulation.

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

Definition at line 133 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 95 of file esi-cosim.py.

Referenced by esi-cosim.Verilator.compile_commands(), 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 90 of file esi-cosim.py.

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


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