HAL  v4.5.0-299-g9ee015483
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::cte::ClockTree Class Reference

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

Collaboration diagram for hal::cte::ClockTree:
Collaboration graph

Public Member Functions

 ~ClockTree ()
 
 ClockTree (const ClockTree &)=delete
 
ClockTree & operator= (const ClockTree &)=delete
 
 ClockTree (ClockTree &&)=delete
 
ClockTree & operator= (ClockTree &&)=delete
 
Result< std::vector< std::pair< const void *, PtrType > > > get_neighbors (const void *ptr, igraph_neimode_t direction) const
 
Result< std::unique_ptr< ClockTree > > get_subtree (const void *ptr, bool parent) const
 
Result< igraph_int_t > get_vertex_from_ptr (const void *ptr) const
 
Result< std::pair< const void *, PtrType > > get_ptr_from_vertex (igraph_int_t vertex) const
 
Result< std::vector< igraph_int_t > > get_vertices_from_ptrs (const std::vector< const void * > &ptrs) const
 
Result< std::vector< std::pair< const void *, PtrType > > > get_ptrs_from_vertices (const std::vector< igraph_int_t > &vertices) const
 
std::vector< const Gate * > get_gates () const
 
std::vector< const Net * > get_nets () const
 
const std::unordered_map< const void *, PtrType > & get_all () const
 
const Netlist * get_netlist () const
 
const igraph_t * get_igraph () const
 
const std::vector< Diagnostic > & get_diagnostics () const
 
const std::unordered_set< igraph_int_t > & get_roots () const
 

Static Public Member Functions

static Result< std::unique_ptr< ClockTree > > from_netlist (const Netlist *netlist)
 

Detailed Description

Definition at line 90 of file clock_tree.h.

Constructor & Destructor Documentation

◆ ~ClockTree()

hal::cte::ClockTree::~ClockTree ( )

Definition at line 153 of file clock_tree.cpp.

◆ ClockTree() [1/2]

hal::cte::ClockTree::ClockTree ( const ClockTree &  )
delete

◆ ClockTree() [2/2]

hal::cte::ClockTree::ClockTree ( ClockTree &&  )
delete

Member Function Documentation

◆ from_netlist()

◆ get_all()

const std::unordered_map< const void *, PtrType > & hal::cte::ClockTree::get_all ( ) const

Definition at line 709 of file clock_tree.cpp.

◆ get_diagnostics()

const std::vector< Diagnostic > & hal::cte::ClockTree::get_diagnostics ( ) const

Definition at line 719 of file clock_tree.cpp.

Referenced by hal::PYBIND11_PLUGIN().

◆ get_gates()

std::vector< const Gate * > hal::cte::ClockTree::get_gates ( ) const

Definition at line 679 of file clock_tree.cpp.

References hal::cte::GATE, and type.

Referenced by hal::ctv::build_layout(), and hal::PYBIND11_PLUGIN().

◆ get_igraph()

const igraph_t * hal::cte::ClockTree::get_igraph ( ) const

Definition at line 729 of file clock_tree.cpp.

Referenced by hal::cte::export_dot().

◆ get_neighbors()

Result< std::vector< std::pair< const void *, PtrType > > > hal::cte::ClockTree::get_neighbors ( const void *  ptr,
igraph_neimode_t  direction 
) const

Definition at line 735 of file clock_tree.cpp.

References direction, ERR, and OK.

Referenced by hal::ctv::build_layout().

◆ get_netlist()

const Netlist * hal::cte::ClockTree::get_netlist ( ) const

Definition at line 714 of file clock_tree.cpp.

Referenced by hal::PYBIND11_PLUGIN().

◆ get_nets()

std::vector< const Net * > hal::cte::ClockTree::get_nets ( ) const

Definition at line 694 of file clock_tree.cpp.

References hal::cte::NET, and type.

Referenced by hal::PYBIND11_PLUGIN().

◆ get_ptr_from_vertex()

Result< std::pair< const void *, PtrType > > hal::cte::ClockTree::get_ptr_from_vertex ( igraph_int_t  vertex) const

Definition at line 631 of file clock_tree.cpp.

References ERR, and OK.

Referenced by hal::cte::export_dot(), and hal::cte::recover_branches().

◆ get_ptrs_from_vertices()

Result< std::vector< std::pair< const void *, PtrType > > > hal::cte::ClockTree::get_ptrs_from_vertices ( const std::vector< igraph_int_t > &  vertices) const

Definition at line 661 of file clock_tree.cpp.

References ERR, and OK.

◆ get_roots()

const std::unordered_set< igraph_int_t > & hal::cte::ClockTree::get_roots ( ) const

Definition at line 724 of file clock_tree.cpp.

Referenced by hal::cte::recover_branches().

◆ get_subtree()

Result< std::unique_ptr< ClockTree > > hal::cte::ClockTree::get_subtree ( const void *  ptr,
bool  parent 
) const

Definition at line 479 of file clock_tree.cpp.

References ERR, and OK.

◆ get_vertex_from_ptr()

Result< igraph_int_t > hal::cte::ClockTree::get_vertex_from_ptr ( const void *  ptr) const

Definition at line 620 of file clock_tree.cpp.

References ERR, and OK.

◆ get_vertices_from_ptrs()

Result< std::vector< igraph_int_t > > hal::cte::ClockTree::get_vertices_from_ptrs ( const std::vector< const void * > &  ptrs) const

Definition at line 642 of file clock_tree.cpp.

References ERR, and OK.

◆ operator=() [1/2]

ClockTree& hal::cte::ClockTree::operator= ( ClockTree &&  )
delete

◆ operator=() [2/2]

ClockTree& hal::cte::ClockTree::operator= ( const ClockTree &  )
delete

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