slang-netlist  0.9.0
Loading...
Searching...
No Matches
slang::netlist::PathFinder Class Reference

#include <PathFinder.hpp>

Public Member Functions

 PathFinder ()=default
auto find (NetlistNode &startNode, NetlistNode &endNode) -> NetlistPath
auto findComb (NetlistNode &startNode, NetlistNode &endNode) -> NetlistPath

Detailed Description

Find a path between two points in a netlist using a depth-first search.

Constructor & Destructor Documentation

◆ PathFinder()

slang::netlist::PathFinder::PathFinder ( )
default

Member Function Documentation

◆ find()

auto slang::netlist::PathFinder::find ( NetlistNode & startNode,
NetlistNode & endNode ) -> NetlistPath

Find a path between two nodes in the netlist. Returns an empty NetlistPath if the path does not exist.

◆ findComb()

auto slang::netlist::PathFinder::findComb ( NetlistNode & startNode,
NetlistNode & endNode ) -> NetlistPath

Find a combinatorial path between two nodes in the netlist. A combinatorial path does not pass through State nodes (ie sequential state elements). Returns an empty NetlistPath if no combinatorial path exists.


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