|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
#include <hal_core/netlist/netlist_parser/netlist_parser.h>


Public Member Functions | |
| NetlistParser ()=default | |
| virtual | ~NetlistParser ()=default |
| virtual Result< std::monostate > | parse (const std::filesystem::path &file_path)=0 |
| virtual Result< std::unique_ptr< Netlist > > | instantiate (const GateLibrary *gate_library)=0 |
| Result< std::unique_ptr< Netlist > > | parse_and_instantiate (const std::filesystem::path &file_path, const GateLibrary *gate_library) |
The base class for all netlist parsers. A parser reads a netlist file into an internal intermediate representation and can then instantiate it for a given gate library.
Definition at line 45 of file netlist_parser.h.
|
default |
|
virtualdefault |
|
pure virtual |
Instantiate the parsed netlist using the specified gate library.
| [in] | gate_library | - The gate library. |
Implemented in hal::VHDLParser, and hal::VerilogParser.
|
pure virtual |
Parse a netlist into an internal intermediate format.
| [in] | file_path | - Path to the netlist file. |
true on success, false otherwise. Implemented in hal::VHDLParser, and hal::VerilogParser.
|
inline |
Parse and instantiate a netlist using the specified gate library.
| [in] | file_path | - Path to the netlist file. |
| [in] | gate_library | - The gate library. |
Definition at line 74 of file netlist_parser.h.
References ERR, and hal::gate_library_parser_manager::parse().