





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






ECE 474a/575a Susan Lysecky 1 of 25
Lecture 14
Resource Sharing & Binding
ECE 474a/575aSusan Lysecky 2 of 25
Sharing vs. Binding
ECE 474a/575aSusan Lysecky 3 of 25
Resource Binding
ECE 474a/575a Susan Lysecky 4 of 25
Resource Binding
Adders available = 1 Adders available = 2
ECE 474a/575aSusan Lysecky 5 of 25
ECE 474a/575aSusan Lysecky 6 of 25
Resource Compatibility Graph
NOP
NOP
Vn
3, 1 – Same op, 3 starts after 1 3, 2 – Same op, 3 starts after 2 3, 4 – Different ops 3, 5 – Different ops 3, 6 – Same op, BUT neither starts after the other and not alternative choices of branch 3, 7 – Same op, 3 starts in Time 2 and 7 starts in Time 3 3, 8 – Same op, 3 starts in Time 2 and 8 starts in Time 3 3, 9 – Different ops 3, 10 – Different ops 3, 11 – Different ops
ECE 474a/575a Susan Lysecky 10 of 25
Clique Partitioning
C = 4 // vertex with largest degree, anything with 4 will do U = {5, 9, 10, 11} // these vertices are connected to 4 V = 5 C = {4} U {5} = {4, 5} U = {10, 11} // these vertices are connected to 1 and 3 C = {4, 5} U {10} = {4, 5, 10}
U = { Φ } // no others vertices connect to 1, 3, and 7
Vertices Degree
U = {11} // these vertices are connected to 1and 3 C = {4, 5, 10} U {11} = {4, 5, 10, 11}
ECE 474a/575aSusan Lysecky 11 of 25
Clique Partitioning
C = 2 // vertex with largest degree, anything with 2 will do U = {6, 8} // these vertices are connected to 4 V = 6 C = {2} U {6} = {2, 6} U = {8} // these vertices are connected to 1and 3 C = {2, 6} U {8} = {2, 6, 8} U = { Φ } // no others vertices connect to 1, 3, and 7
Vertices Degree
ECE 474a/575aSusan Lysecky 12 of 25
Clique Partitioning
U = { Φ } // no others vertices connect to 1, 3, and 7
Vertices Degree 9 0
ECE 474a/575a Susan Lysecky 13 of 25
Clique Partitioning
ECE 474a/575aSusan Lysecky 14 of 25
Clique Partitioning
NOP
NOP
Vn
Is G empty? No. Find max clique C = 4 U = {1, 2, 3, 5, 6} V = 1 C = {4} U {1} = {1, 4} U = {5, 6} C = {1, 4} U {5} = {1, 4, 5}
Return {1, 4, 5, 6} Π = {1, 4, 5, 6} Remove {1, 4, 5, 6} from G
Vertices Degree
ECE 474a/575aSusan Lysecky 15 of 25
Clique Partitioning
Is G empty? No. Find max clique C = 2 U = {Φ} Return {2} Π = {1, 4, 5, 6}, {2} Remove {2} from G
Vertices Degree
Is G empty? No. Find max clique C = 3 U = {Φ} Return {3} Π = {1, 4, 5, 6}, {2}, {3} Remove {3} from G
Vertices Degree
ECE 474a/575a Susan Lysecky 19 of 25
Building Resource Conflict Graph
resource compatibility graph resource conflict graph
ECE 474a/575aSusan Lysecky 20 of 25
Graph Coloring
ECE 474a/575aSusan Lysecky 21 of 25
Graph Coloring Example 1
Is there any adjacent vertices with color = 1? No. v 1 = c
c
C = c Is there any adjacent vertices with color = 1? Yes. C = c Is there any adjacent vertices with color = 2? No. v 2 = c
c
C = c1 // represents first color Is there any adjacent vertices with color = 1? No. v 3 = c
c
ECE 474a/575a Susan Lysecky 22 of 25
Graph Coloring Example 1
c
c
c1 c
c1 c
c
c
c
c
C = c1 // represents first color Is there any adjacent vertices with color = 1? Yes – rememberconflict is implied across different resource types.
v 4 = c
C = c Is there any adjacent vertices with color = 2? Yes. C = c Is there any adjacent vertices with color = 3? No.
c
ECE 474a/575aSusan Lysecky 23 of 25
Graph Coloring Example 2
c1 c
C = c Adjacent vertices with color = 1? No. v 1 = c
c1 for node 1, 3 op c2 for node 2, 4 op c3 for node 5 op c4 for node 6 op
c3 c
c
c
C = c Adjacent vertices with color = 2? No.
C = c Adjacent vertices with color = 1? Yes.
v 2 = c
C = c Adjacent vertices with color = 1? No. v 3 = c
C = c Adjacent vertices with color = 2? No.
C = c Adjacent vertices with color = 1? Yes.
v 4 = c
Adjacent vertices with color = 2? Yes.
C = c Adjacent vertices with color = 1? Yes.
v 5 = c
C = c
Adjacent vertices with color = 3? No. C = c
Adjacent vertices with color = 2? Yes.
C = c Adjacent vertices with color = 1? Yes.
v 6 = c
C = c
Adjacent vertices with color = 3? Yes. C = c
Adjacent vertices with color = 4? No.
C = c
ECE 474a/575aSusan Lysecky 24 of 25
Graph Coloring
c
c1 c2 c
c
c
c1 c2 c
c