prga.tools.analysis.rrg.util module

class prga.tools.analysis.rrg.util._VPRRRGTarget(g, ignore_iopin, keep_srcsink, info_level)

Bases: object

close()
data(data)
end(tag)
start(tag, attrs, nsmap=None)
prga.tools.analysis.rrg.util.read_vpr_rrg(istream, ignore_iopin=False, keep_srcsink=False, info_level=0)

Read VPR’s RRG graph and extract the connection graph.

Parameters:
  • ignore_iopin (bool) – If set, IPIN/OPIN nodes are omitted in the graph
  • keep_srcsink (bool) – If set, SOURCE/SINK nodes are added to the graph. This argument is overriden when ignore_iopin is set
  • info_level (int) – Level of information stored in the graph: - [0] no information is stored. only the abstract graph structure is preserved - [1] all information is stored in the graph
Returns:

networkx.DiGraph