EasyManua.ls Logo

Mips Technologies R4000 User Manual

Mips Technologies R4000
754 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
MIPS R4000 Microprocessor
Users Manual
Second Edition
Joe Heinrich

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Mips Technologies R4000 and is the answer not in the manual?

Mips Technologies R4000 Specifications

General IconGeneral
Release Year1991
Cores1
Word Size64-bit
Data Bus Width64-bit
Address Bus Width32-bit
L1 Cache8 KB Instruction, 8 KB Data
FPUIntegrated
Process TechnologyCMOS
Transistors1.2 million
Voltage5 V
Pipeline Stages8
ArchitectureMIPS
Clock Speed100 MHz
Performance1.0 DMIPS/MHz

Summary

Acknowledgments for the First Edition

Acknowledgments for the Second Edition

Preface

Overview of the Contents

Discusses the structure of the manual, covering chapters on RISC development, CPU, pipeline, memory management, exceptions, FPU, signals, initialization, clock, cache, JTAG, and ECC.

Preface to the Second Edition

Getting MIPS Documents On-Line

Provides instructions on how to retrieve MIPS documents via FTP.

Introduction

Benefits of RISC Design

Discusses benefits derived from RISC design techniques, such as simpler design and chip-area resource allocation.

R4000 Processor Features

Outlines key R4000 features including 64-bit architecture, pipeline, MMU, caches, and FPU.

Data Formats and Addressing

Describes the R4000's data formats and endianness configurations (big-endian, little-endian).

CPU Instruction Set Summary

CPU Instruction Formats

Details the three main instruction formats: I-Type, J-Type, and R-Type.

CPU Register Overview

Lists the CPU registers: 32 general purpose registers, Program Counter (PC), and HI/LO registers.

The CPU Pipeline

CPU Pipeline Operation

Describes the eight-stage instruction pipeline and simultaneous execution of eight instructions.

Interlock and Exception Handling

Explains how pipeline flow is interrupted by cache misses, exceptions, or data dependencies, leading to stalls or slips.

Memory Management

Translation Lookaside Buffer (TLB)

Explains the TLB's role in caching virtual-to-physical address translations and its fully associative nature with 48 entries.

CPU Exception Processing

How Exception Processing Works

Details how the processor handles exceptions by suspending execution, entering Kernel mode, and using an exception handler.

Exception Processing Registers

Describes CP0 registers used in exception processing, including Context, BadVAddr, Status, and Cause registers.

Floating-Point Unit

FPU Features

Describes FPU features like 64-bit operation, load/store instructions, and its tightly-coupled coprocessor interface.

Floating-Point Exceptions

Exception Types

Lists IEEE 754 exceptions (Inexact, Underflow, Overflow, Invalid, Division by Zero) and the Unimplemented Operation exception.

R4000 Processor Signal Descriptions

System Interface Signals

Describes signals connecting the R4000 to system components, including SysAD, SysADC, SysCmd, and handshake signals.

Initialization Interface

Functional Overview

Explains the three types of resets (Power-on, Cold, Warm) and the serial initialization interface.

Clock Interface

Basic System Clocks

Describes the core clock signals: MasterClock, MasterOut, SyncIn/SyncOut, PClock, SClock, TClock, and RClock.

Cache Organization, Operation, and Coherency

R4000 Cache Description

Details the organization of primary caches and the optional secondary cache across R4000 models.

Cache States

Describes the states of cache lines (Invalid, Shared, Dirty Shared, Clean Exclusive, Dirty Exclusive) and their availability across R4000 models.

System Interface

Processor and External Requests

Categorizes requests into processor requests and external requests, and describes their interaction with system events.

External Requests

Lists external requests including read, write, invalidate, update, snoop, and intervention, and their protocols.

Secondary Cache Interface

Data Transfer Rates

Details the maximum transmit data rates and patterns for secondary cache transfers, based on cycle times.

Read Cycles

Describes the 4-word and 8-word read cycles, including timing diagrams and user-accessible parameters.

JTAG Interface

What Boundary Scanning Is

Explains boundary scan circuits as a series of shift register cells for testing ICs.

JTAG Controller and Registers

Lists the JTAG controller components: Instruction, Boundary-scan, Bypass registers, and TAP controller.

R4000 Processor Interrupts

Hardware Interrupts

Describes how CPU hardware interrupts are caused by external write requests or dedicated pins.

Nonmaskable Interrupt (NMI)

Explains that NMI is caused by an external write request or a dedicated pin and is not level-sensitive.

Error Checking and Correcting

Types of Error Checking

Details the processor's use of parity (detection) and SECDED (single-bit correction/double-bit detection).

Parity Error Detection

Explains parity as a simple error detection scheme using a parity bit to detect single-bit errors.

SECDED ECC Code

Describes SECDED ECC code for secondary cache data and tag, highlighting its single-bit correction and double-bit detection capabilities.

CPU Instruction Set Details

Instruction Classes

Divides CPU instructions into Load/Store, Computational, Jump/Branch, Coprocessor, and Special instruction classes.

Instruction Formats

Details the three main CPU instruction formats: I-Type, J-Type, and R-Type.

FPU Instruction Set Details

Instruction Formats

Describes the three basic FPU instruction format types: I-Type, M-Type, and R-Type.

Subblock Ordering

Coprocessor 0 Hazards

R4000 Pinouts

Pinout of R4000PC

Shows the physical pinout of the R4000PC and lists signal-to-pin correspondences.

Pinout of R4000MC/SC Package Pinout

Shows the physical pinout of the R4000MC/SC and lists signal-to-pin correspondences.