HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::HGLWriter Class Reference

#include </home/runner/work/hal/hal/plugins/hgl_writer/include/hgl_writer/hgl_writer.h>

Inheritance diagram for hal::HGLWriter:
Inheritance graph
Collaboration diagram for hal::HGLWriter:
Collaboration graph

Public Member Functions

 HGLWriter ()=default
 
 ~HGLWriter ()=default
 
bool write (const GateLibrary *gate_lib, const std::filesystem::path &file_path) override
 
- Public Member Functions inherited from hal::GateLibraryWriter
 GateLibraryWriter ()=default
 
virtual ~GateLibraryWriter ()=default
 

Detailed Description

A gate library writer that serializes a gate library into HAL's own HGL format.

Definition at line 49 of file hgl_writer.h.

Constructor & Destructor Documentation

◆ HGLWriter()

hal::HGLWriter::HGLWriter ( )
default

◆ ~HGLWriter()

hal::HGLWriter::~HGLWriter ( )
default

Member Function Documentation

◆ write()

bool hal::HGLWriter::write ( const GateLibrary gate_lib,
const std::filesystem::path &  file_path 
)
overridevirtual

Write the gate library to a HGL file at the provided location.

Parameters
[in]gate_lib- The gate library.
[in]file_path- The output path.
Returns
true on success, false otherwise.

Implements hal::GateLibraryWriter.

Definition at line 20 of file hgl_writer.cpp.

References log_error.


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