slang-netlist  0.11.0
Loading...
Searching...
No Matches
slang::netlist::NetlistDot Struct Reference

A utility class for rendering a netlist graph in DOT format. More...

#include <NetlistDot.hpp>

Static Public Member Functions

static auto render (NetlistGraph const &netlist, FormatBuffer &buffer)
 Render the whole netlist graph.
static auto render (NetlistGraph const &netlist, FormatBuffer &buffer, std::unordered_set< NetlistNode const * > const &nodes)

Detailed Description

A utility class for rendering a netlist graph in DOT format.

Member Function Documentation

◆ render() [1/2]

auto slang::netlist::NetlistDot::render ( NetlistGraph const & netlist,
FormatBuffer & buffer )
inlinestatic

Render the whole netlist graph.

◆ render() [2/2]

auto slang::netlist::NetlistDot::render ( NetlistGraph const & netlist,
FormatBuffer & buffer,
std::unordered_set< NetlistNode const * > const & nodes )
inlinestatic

Render only the induced subgraph over nodes: nodes not in the set are omitted, and an edge is kept only when both of its endpoints are in the set. Useful for rendering a fan-in/fan-out cone or a path in isolation.


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