beautypg.com

4 pipeline operation summary, Figure 4−5. pipeline phases – Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 338

background image

Pipeline Operation Overview

Pipeline

4-6

SPRU733

4.1.4 Pipeline Operation Summary

Figure 4−5 shows all the phases in each stage of the C67x DSP pipeline in
sequential order, from left to right.

Figure 4−5. Pipeline Phases

Fetch

Execute

Decode

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

E8

E9

E10

Figure 4−6 shows an example of the pipeline flow of consecutive fetch packets
that contain eight parallel instructions. In this case, where the pipeline is full,
all instructions in a fetch packet are in parallel and split into one execute packet
per fetch packet. The fetch packets flow in lockstep fashion through each
phase of the pipeline.

For example, examine cycle 7 in Figure 4−6. When the instructions from FPn
reach E1, the instructions in the execute packet from FPn +1 are being
decoded. FP n + 2 is in dispatch while FPs n + 3, n + 4, n + 5, and n + 6 are
each in one of four phases of program fetch. See section 4.4, page 4-56, for
additional detail on code flowing through the pipeline. Table 4−1 summarizes
the pipeline phases and what happens in each phase.

Figure 4−6. Pipeline Operation: One Execute Packet per Fetch Packet

Clock cycle

Fetch

packet

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

ББББ

ББББ

n

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

E8

E9

E10

ББББ

n+1

ÁÁ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

E8

E9

E10

ББББ

ББББ

n+2

ББ

ББ

БББ

БББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

E8

E9

ББББ

ББББ

n+3

ББ

ББ

БББ

БББ

ББ

ББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

E8

ББББ

ББББ

n+4

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

E7

ББББ

ББББ

n+5

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

БББ

БББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

E6

ББББ

ББББ

n+6

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

БББ

БББ

ББ

ББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

E5

ББББ

n+7

ББ

БББ

ББ

БББ

БББ

ББ

БББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

E4

ББББ

ББББ

n+8

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

БББ

БББ

ББ

ББ

БББ

БББ

ББ

ББ

PG

PS

PW

PR

DP

DC

E1

E2

E3

ББББ

ББББ

n+9

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

БББ

БББ

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

PG

PS

PW

PR

DP

DC

E1

E2

ББББ

ББББ

n+10

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

БББ

БББ

ББ

ББ

БББ

БББ

ББ

ББ

БББ

БББ

ББ

ББ

PG

PS

PW

PR

DP

DC

E1