Execution Pipeline - Altera Nios II User Manual

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

5–10
Memory Protection Unit
The Nios II/f core provides options to improve the performance of the Nios II MPU.
For information about the MPU architecture, refer to the
of the Nios II Processor Reference Handbook.

Execution Pipeline

This section provides an overview of the pipeline behavior for the benefit of
performance-critical applications. Designers can use this information to minimize
unnecessary processor stalling. Most application programmers never need to analyze
the performance of individual instructions.
The Nios II/f core employs a 6-stage pipeline.
Table 5–9. Implementation Pipeline Stages for Nios II/f Core
Up to one instruction is dispatched and/or retired per cycle. Instructions are
dispatched and retired in order. Dynamic branch prediction is implemented using a
2-bit branch history table. The pipeline stalls for the following conditions:
Multicycle instructions
Avalon-MM instruction master port read accesses
Avalon-MM data master port read/write accesses
Data dependencies on long latency instructions (e.g., load, multiply, shift).
Pipeline Stalls
The pipeline is set up so that if a stage stalls, no new values enter that stage or any
earlier stages. No "catching up" of pipeline stages is allowed, even if a pipeline stage
is empty.
Only the A-stage and D-stage are allowed to create stalls.
The A-stage stall occurs if any of the following conditions occurs:
An A-stage memory instruction is waiting for Avalon-MM data master requests to
complete. Typically this happens when a load or store misses in the data cache, or
a flushd instruction needs to write back a dirty line.
An A-stage shift/rotate instruction is still performing its operation. This only
occurs with the multicycle shift circuitry (i.e., when the hardware multiplier is not
available).
An A-stage divide instruction is still performing its operation. This only occurs
when the optional divide circuitry is available.
Nios II Processor Reference Handbook
Stage Letter
F
D
E
M
A
W
Chapter 5: Nios II Core Implementation Details
Programming Model
Stage Name
Fetch
Decode
Execute
Memory
Align
Writeback
February 2014 Altera Corporation
Nios II/f Core
chapter

Advertisement

Table of Contents
loading

Table of Contents