chiptools.parsers.callgraph module

class chiptools.parsers.callgraph.CallGraph(files, root=None)[source]

Bases: object

static get_callchain(graph, modified_nodes)[source]

Return a topologically sorted list of the nodes dependent on the given node.

static get_definition_map(files)[source]

Return a dictionary mapping design unit instances to a set of files that provide an implementation for the design unit.

static get_design_hierarchy(definition_map, reference_map)[source]
static get_parsed_file(sourcefile)[source]
static get_reference_map(files)[source]

Return a dictionary mapping design unit instances to a set of files that reference them.

static write_graph_png(graph, show_unresolved=False, highlight_nodes=())[source]