|
CIRCT 24.0.0git
|
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 | |
| top | |
Protected Member Functions | |
| Path | _find_dpi (self, str name, bool link) |
Definition at line 60 of file simulator.py.
| None simulator.SourceFiles.__init__ | ( | self, | |
| str | top | ||
| ) |
Definition at line 62 of file simulator.py.
Referenced by synth.LongestPathCollection.drop_non_critical_paths(), and synth.LongestPathCollection.merge().
|
protected |
Definition at line 115 of file simulator.py.
Referenced by simulator.SourceFiles.dpi_link_paths(), and simulator.SourceFiles.dpi_so_paths().
| 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 simulator.SourceFiles.add_dir(), and append().
Referenced by simulator.SourceFiles.add_dir().
| 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().
| 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 simulator.SourceFiles._find_dpi().
| 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 simulator.SourceFiles._find_dpi().
| List[Path] simulator.SourceFiles.rtl_sources | ( | self | ) |
Return a list of all the RTL source files.
Definition at line 156 of file simulator.py.
| simulator.SourceFiles.top |
Definition at line 75 of file simulator.py.