CIRCT 24.0.0git
Loading...
Searching...
No Matches
simulator.SourceFiles Class Reference
Collaboration diagram for simulator.SourceFiles:

Public Member Functions

None __init__ (self, str top)
 add_file (self, Path file)
 add_dir (self, Path dir)
List[Path] dpi_so_paths (self)
List[Path] dpi_link_paths (self)
List[Path] rtl_sources (self)

Public Attributes

list user = []
list dpi_so = ["EsiCosimDpiServer"]
list dpi_sv
 top = top

Protected Member Functions

Path _find_dpi (self, str name, bool link)

Detailed Description

Definition at line 60 of file simulator.py.

Constructor & Destructor Documentation

◆ __init__()

None simulator.SourceFiles.__init__ ( self,
str top )

Definition at line 62 of file simulator.py.

Member Function Documentation

◆ _find_dpi()

Path simulator.SourceFiles._find_dpi ( self,
str name,
bool link )
protected

Definition at line 115 of file simulator.py.

Referenced by dpi_link_paths(), and dpi_so_paths().

◆ add_dir()

simulator.SourceFiles.add_dir ( self,
Path dir )
Add all the RTL files in a directory to the source list. Files named in
the directory's `filelist.f` (as written by ExportVerilog) are added first,
in the listed order, since some simulators require dependencies such as
packages to be compiled before their users.

Definition at line 84 of file simulator.py.

References add_dir(), append(), and user.

Referenced by add_dir().

◆ add_file()

simulator.SourceFiles.add_file ( self,
Path file )
Add a single RTL file to the source list.

Definition at line 77 of file simulator.py.

References append(), and user.

◆ dpi_link_paths()

List[Path] simulator.SourceFiles.dpi_link_paths ( self)
Return a list of files to pass to the linker for the DPI libraries.
On POSIX this is the same as ``dpi_so_paths()``; on Windows it is the
import library (``.lib``) sitting next to the DLL.

Definition at line 109 of file simulator.py.

References _find_dpi(), and dpi_so.

◆ dpi_so_paths()

List[Path] simulator.SourceFiles.dpi_so_paths ( self)
Return a list of all the DPI shared object files (the loadable
artifact: ``.so`` on POSIX, ``.dll`` on Windows).

Definition at line 104 of file simulator.py.

References _find_dpi(), and dpi_so.

◆ rtl_sources()

List[Path] simulator.SourceFiles.rtl_sources ( self)
Return a list of all the RTL source files.

Definition at line 156 of file simulator.py.

References dpi_sv, and user.

Member Data Documentation

◆ dpi_so

list simulator.SourceFiles.dpi_so = ["EsiCosimDpiServer"]

Definition at line 66 of file simulator.py.

Referenced by dpi_link_paths(), and dpi_so_paths().

◆ dpi_sv

list simulator.SourceFiles.dpi_sv
Initial value:
= [
CosimCollateralDir / "Cosim_DpiPkg.sv",
CosimCollateralDir / "Cosim_Endpoint.sv",
CosimCollateralDir / "Cosim_CycleCount.sv",
CosimCollateralDir / "Cosim_Manifest.sv",
]

Definition at line 68 of file simulator.py.

Referenced by rtl_sources().

◆ top

simulator.SourceFiles.top = top

Definition at line 75 of file simulator.py.

◆ user

list simulator.SourceFiles.user = []

Definition at line 64 of file simulator.py.

Referenced by add_dir(), add_file(), and rtl_sources().


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