Netlist Factory¶
-
hal_py.NetlistFactory.
create_netlist
(gate_library: hal_py.GateLibrary) → hal_py.Netlist¶ Create a new empty netlist using the specified gate library.
Parameters: gate_library (hal_py.GateLibrary) – The gate library. Returns: The netlist on success, None otherwise. Return type: hal_py.Netlist or None
-
hal_py.NetlistFactory.
load_hal_project
(project_dir: os.PathLike) → hal_py.Netlist¶ Create a netlist from the given .hal file.
Parameters: project_dir (pathlib.Path) – Path to the hal project directory. Returns: The netlist on success, None otherwise. Return type: hal_py.Netlist
-
hal_py.NetlistFactory.
load_netlist
(hdl_file: os.PathLike, gate_library_file: os.PathLike = '') → hal_py.Netlist¶ Create a netlist from the given file using the specified gate library file.
Parameters: - hdl_file (pathlib.Path) – Path to the file.
- gate_library_file (pathlib.Path) – Path to the gate library file.
Returns: The netlist on success, None otherwise.
Return type:
-
hal_py.NetlistFactory.
load_netlists
(hdl_file: os.PathLike) → List[hal_py.Netlist]¶ Create a netlist from a given file for each matching pre-loaded gate library.
Parameters: hdl_file (pathlib.Path) – Path to the file. Returns: A list of netlists. Return type: list[hal_py.Netlist]