HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
utils.h File Reference

This file contains helper functions for module identification in the HAL framework. More...

#include "hal_core/defines.h"
#include "hal_core/utilities/result.h"
#include <set>
#include <vector>
Include dependency graph for utils.h:

Go to the source code of this file.

Namespaces

 hal
 
 hal::module_identification
 

Functions

std::set< u32hal::module_identification::find_neighboring_registers (const Net *n, const std::vector< std::vector< Gate * >> &registers)
 Find neighboring registers connected to a given net. More...
 
std::set< u32hal::module_identification::find_neighboring_registers (const std::vector< Net * > nets, const std::vector< std::vector< Gate * >> &registers)
 Find neighboring registers connected to a list of nets. More...
 
std::vector< std::vector< Net * > > hal::module_identification::reorder_commutative_operands (const std::vector< std::vector< Net * >> &operands, const std::vector< std::vector< Gate * >> &registers, const u32 permute_start_index=0)
 Reorder commutative operands based on a permutation cache. More...
 
std::vector< Net * > hal::module_identification::get_input_nets (const std::vector< Gate * > &gates)
 Get input nets from a list of gates. More...
 
std::vector< Net * > hal::module_identification::get_output_nets (const std::vector< Gate * > &gates, bool only_external_destinations=true)
 Get output nets from a list of gates. More...
 

Detailed Description

This file contains helper functions for module identification in the HAL framework.

Definition in file utils.h.