



















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!




















Recap: Traditional VLIW Architectures
Target architecture seen so far in class »^
Large, centralized register file »^
Many functional units connected
Longer wires require longer latencies onRF accesses »^
Large number of connected FU’s to theregister file require more ports. »^
Register file access time increasesquadratically with number of ports
Conventional Architecture
Register File FU
Other Multicluster Architectures Designs
Homogeneous means each cluster is identical »^
Heterogeneous means FU number/types differ per cluster
Register
File FU
FU
FU Register FU
File
Cluster 1
Cluster 2
Intercluster Bus
Register
File FU
FU
FU Register FU
File
Cluster 1
Cluster 2
Cross-cluster FU inputs
Multicluster Compilation Basics
Register
File I
MEM
MEM RegisterFile I
Cluster 1
Cluster 2
Interconnection Network
Intercluster move
Bottom-Up Greedy (BUG) Algorithm
Recursive algorithm »^
Go from exit ops to entry ops and pass along good clustercandidates for each op »^
Go from entry ops back to exit ops and make final decisions »^
Consider ops on critical path first
BUG Algorithm (cont.)
Op must get its input operands from its predecessors »^
Perform some computation »^
Send its output to its successors
Definitions Illustrated
AvailableTime (Op2)StartTime (Op3, C1)^ CompletionTime(Op3, C1, {C1, C2}) move
ArrivalTime (Op2, C1)
AvailableTime (Op1),ArrivalTime (Op1, C1) Relative to Op 3 Time
The Main Function: Assign^ Assign
Op
,^ Dests
for each
Pred
ecessor of
Op
Est-clusters =
Estimate
Op, Dests
Assign
( Pred, Est-clusters
} Est-clusters
Estimate
Op, Dests
Cluster
= first cluster in
Est-clusters
Assign
Op
to
Cluster
Mark
Cluster
’s resources busy at
StartTime(
Op
,^ Cluster
recursive call
Upward pass Downward pass
actual assignment
Example^
Example: left path upward pass
CompTime(Op5,C1,-) = 3
AvailTime(Op1)=
CompTime(Op3,C1,{C1}) =
^2
CompTime(Op3,C2,{C1}) = 3
{C1}
CompTime(Op1,C1,{C1}) =
^1
CompTime(Op1,C2,{C1}) = 2
{C1} {C1}
1 2 3
Op 0
C C
Time
Example: right path upward pass
StartTime(Op4,C1)=2 CompTime(Op4,C1,{C1}) =
^3
StartTime(Op4,C2)=1 CompTime(Op4,C2,{C1}) =
^3
{C1}
AvailTime(Op2)=
{C1}
{C1,C2}
CompTime(Op2,C1,{C1,C2}) = 3CompTime(Op2,C2,{C1,C2}) =
^1
2 3
Op 1
Op 0
C C
Time
2 3
Op 1
Op Op 0
C C
Time
Example: right path downward pass
StartTime(Op4,C1)=2 CompTime(Op4,C1,{C1}) =
^3
StartTime(Op4,C2)=1 CompTime(Op4,C2,{C1}) =
^3
{C1}
ArrivTime(Op2,C1)=2ArrivTime(Op2,C2)=
3
Op 2
Op 1
Op Op 0
C C
Time
Op 3
Op 2
Op 1
Op Op 0
C C
Time
CompTime(Op5,C1,-) = 4
Problems with BUG
Has a very narrow view of the DFG »^
Doesn’t consider the best global clustering
Using the scheduler to determine the clustering is slow!
Many different algorithms exist all using different techniques,different scopes, and occur at different phases in the compilationprocess »^
No clear cut winner on the best algorithm for all situations.
Local Scope
0 1 2 3 4 5 6 7
2
1
Local scope clustering
Global scope clustering
1 2 6
3 7
4 8
5 9 11
12
10
0 1 2 3 4 5 6 7
2
(^112610591112)
3 7 4 8
1 2 6
3 7
4 8
5 9 11
12
10
(^126371012)
(^485911)
move
move
move
cycle
cycle