NEC Network Controller uPD98502 User Manual

Page 97

Advertising
background image

CHAPTER 2 V

R

4120A

Preliminary User’s Manual S15543EJ1V0UM

97

2.3.5.2 Stall conditions

Stalls are used to stop the pipeline for conditions detected after the RF stage. When a stall occurs, the processor

will resolve the condition and then the pipeline will continue. Figure 2-21 shows a data cache miss stall, and Figure 2-

22 shows a CACHE instruction stall.

Figure 2-21. Data Cache Miss Stall

1

Detect data cache miss

IF

RF

EX

DC

WB

WB

WB

WB

WB

IF

RF

EX

DC

DC

DC

DC

DC

WB

IF

RF

EX

EX

EX

EX

EX

DC

WB

IF

RF

RF

RF

RF

RF

EX

DC

WB

2

3

1

Start moving data cache line to write buffer

2

Get last word into cache and restart pipeline

3

If the cache line to be replaced is dirty

 the W bit is set  the data is moved to the internal write buffer in the next

cycle. The write-back data is returned to memory. The last word in the data is returned to the cache at 3, and

pipelining restarts.

Figure 2-22. CACHE Instruction Stall

1

CACHE instruction start

IF

RF

EX

DC

WB

WB

WB

WB

WB

IF

RF

EX

DC

DC

DC

DC

DC

WB

IF

RF

EX

EX

EX

EX

EX

DC

WB

IF

RF

RF

RF

RF

RF

EX

DC

WB

2

1

CACHE instruction complete

2

When the CACHE instruction enters the DC stage, the pipeline stalls while the CACHE instruction is executed.

The pipeline begins running again when the CACHE instruction is completed, allowing the instruction fetch to proceed.

Advertising