|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.csdf.sdf.mem.BufferUtilities
public class BufferUtilities
Utilities for buffer related computation. This class is just a collection of static methods and should not be allocated as objects.
Method Summary | |
---|---|
static int |
bufferCost(java.util.Collection edgeCollection,
SDFGraph graph,
mocgraph.sched.Schedule schedule)
Compute buffer cost for the SDF edge collection and the schedule. |
static int |
bufferCost(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Compute total buffer cost for an SDF graph and a schedule. |
static java.util.Map |
bufferIntersections(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Build buffer intersections (lifetime overlaps). |
static java.lang.String |
bufferIntersectionsToString(SDFGraph graph,
java.util.Map intersectionsMap)
Display buffer lifetime overlaps in text. |
static java.lang.String |
bufferIntersectionsToString(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Display buffer lifetime overlaps in text. |
static int |
bufferSharingLowerBound(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Get the lower bound for buffer sharing cost. |
static int[] |
bufferSize(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Compute buffer size for a given SDF graph and schedule. |
static java.util.Map |
bufferSizeMap(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Compute buffer size for a given SDF graph and schedule. |
static mocgraph.mapping.ToIntMapMapping |
bufferSizeMapping(SDFGraph graph,
mocgraph.sched.Schedule schedule)
Compute buffer size for a given SDF graph and schedule. |
static boolean |
verifyBufferIntersections(SDFGraph graph,
mocgraph.sched.Schedule schedule,
java.util.Map intersectionsMap)
Verify the correctness of the given buffer intersections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int bufferCost(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
public static int bufferCost(java.util.Collection edgeCollection, SDFGraph graph, mocgraph.sched.Schedule schedule)
edgeCollection
- The collection of edges.graph
- The given SDF graph.schedule
- The given schedule.
public static java.lang.String bufferIntersectionsToString(SDFGraph graph, java.util.Map intersectionsMap)
graph
- The given SDF graph.intersectionsMap
- The given buffer intersections.
public static java.lang.String bufferIntersectionsToString(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
public static java.util.Map bufferIntersections(SDFGraph graph, mocgraph.sched.Schedule schedule)
Map
of Set
s. Each map entry is
an edge to a set of edges (excluding itself) intersecting with it.
The code here is naive but universal for intersection calculation.
Users may wish to override this with an efficient one.
graph
- The given SDF graph.schedule
- The given schedule.
Map
of Set
s.public static int bufferSharingLowerBound(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
public static int[] bufferSize(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
public static java.util.Map bufferSizeMap(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
public static mocgraph.mapping.ToIntMapMapping bufferSizeMapping(SDFGraph graph, mocgraph.sched.Schedule schedule)
graph
- The given SDF graph.schedule
- The given schedule.
ToIntMapMapping
.public static boolean verifyBufferIntersections(SDFGraph graph, mocgraph.sched.Schedule schedule, java.util.Map intersectionsMap)
bufferIntersections(SDFGraph, Schedule)
, where the results
are computed in an exhausted and brute force way. This method is
primary for debugging purpose.
graph
- The given SDF graph.schedule
- The given schedule.intersectionsMap
- The buffer intersections to verify.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |