Pipeline Operation; Add Instruction Pipeline Activities (In Mips Iii Instruction Mode) - NEC uPD98502 User Manual

Network controller
Table of Contents

Advertisement

2.3.4 Pipeline operation

The operation of the pipeline is illustrated by the following examples that describe how typical instructions are
executed. The instructions described are six: ADD, JALR, BEQ, TLT, LW, and SW. Each instruction is taken through
the pipeline and the operations that occur in each relevant stage are described.
2.3.4.1 Add instruction (ADD rd, rs, rt)
In Φ 1 of the IF stage, the eleven least-significant bits of the virtual access are used to access
IF stage
the instruction cache. In Φ 2 of the IF stage, the cache index is compared with the page frame
number and the cache data is read out. The virtual PC is incremented by 4 so that the next
instruction can be fetched.
During Φ 2, the 2-port register file is addressed with the rs and rt fields and the register data is
RF stage
valid at the register file output. At the same time, bypass multiplexers select inputs from either
the EX- or DC-stage output in addition to the register file output, depending on the need for an
operand bypass.
EX stage
The ALU controls are set to do an A + B operation. The operands flow into the ALU inputs, and
the ALU operation is started. The result of the ALU operation is latched into the ALU output
latch during Φ 1.
DC stage
This stage is a NOP for this instruction. The data from the output of the EX stage (the ALU) is
moved into the output latch of the DC.
During Φ 1, the WB latch feeds the data to the inputs of the register file, which is addressed by
WB stage
the rd field. The file write strobe is enabled. By the end of Φ 1, the data is written into the file.
Figure 2-13. ADD Instruction Pipeline Activities (In MIPS III Instruction Mode)
PClock
Phase
Cycle
88
CHAPTER 2 V
PCycle
Φ 1
Φ 2
Φ 1
Φ 2
IF1
IF2
RF1
RF2
IDC
ICA
ITLB
ITC
IDEC
RF
Preliminary User's Manual S15543EJ1V0UM
4120A
R
Φ 1
Φ 2
Φ 1
Φ 2
EX1
EX2
DC1
DC2
EX
Φ 1
Φ 2
WB1
WB2
WB

Advertisement

Table of Contents
loading

Table of Contents