Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

SRC Pipeline Registers - Computer Architecture - Lecture Slides, Slides of Computer Architecture and Organization

SRC Pipelined Hardware Block Diagram, Stages, Registers, ALU operation, Memory access, Control signals, Instruction decode are the topics professor discussed in this class.

Typology: Slides

2011/2012

Uploaded on 11/03/2012

dharmaraaj
dharmaraaj 🇮🇳

4.4

(65)

153 documents

1 / 23

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Instruction
Fetch
Decode and
Operand
Read
ALU
Operation
Memory
Access
Register
Writeback
X3 Y3
Z4
SRC
Pipelined
Hardware
Block
Diagram
Z5
Pipeline Registers
Pipeline Stages
There are also two separate memories and
several multiplexers involved in pipeline operation
IR2
IR3
IR4
PC2
MD4
MD3
IR5
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download SRC Pipeline Registers - Computer Architecture - Lecture Slides and more Slides Computer Architecture and Organization in PDF only on Docsity!

1

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

X3 Y

Z

SRC

Pipelined

Hardware

Block

Diagram

Z

Pipeline Registers

Pipeline Stages

  • There are also two separate memories and

several multiplexers involved in pipeline operation

IR

IR

IR

PC

MD

MD

IR

2

SRC Pipeline registers

• Between stage 1 and 2

 IR2 contains the full instruction

 PC2 holds the incremented address

• Between stage 2 and 3

 IR3 holds opcode and ra (used in stage 5)

 X3 holds first operand

 Y3 holds second operand

 MD3 holds reg. value to be stored in memory

4

SRC pipeline stages

• Stage 1. Instruction fetch

 PC incremented or replaced by a new address specified by branch

• Stage 2. Instruction decode

 Ld/str get operand for address calculation

 ALU operations get operand values from registers or constants

• Stage 3. ALU operation

 Calculates address or execute arithmetic/logic

 Br instructions just pass on to next stage

5

SRC pipeline stages

• Stage 4. Memory access

 ALU instructions pass data from Z4 to Z

 Ld access memory address given in Z

 Str completes by writing into data

memory

• Stage 5. Write back

 The contents of Z5 are written to register.

It maybe the ALU result, effective

address, PC link value or fetched data.

7

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

X3 Y

Mp4^ MUX

Z

ALU

decoder

Op code •••^ regwrite ra c

X3 and Y3 are temporary reg to hold the values between pipeline stages

ALU Instruction

8

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

X3 Y

Mp4^ MUX

Z

ALU

decoder

Op code •••^ regwrite ra c

X3 and Y3 are temporary reg to hold the values between pipeline stages

ALU computes the result

ALU Instruction

10

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

X3 Y

Mp4^ MUX

Z

ALU

decoder

Op code •••^ regwrite ra c

X3 and Y3 are temporary reg to hold the values between pipeline stages

ALU computes the result

Result stored In destination

ALU Instruction

No memory access for ALU inst.

11

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

Y3 X

Mp3^ MUX

Z

ALU

decoder

Op codera c1 PC2^ regwrite

Mp4^ MUX

Z

Mp5 MUX

Data Memory

add

Load/Store

Instruction

(ld, ldr, st, str)

13

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

Y3 X

Mp3^ MUX

Z

ALU

decoder

Op codera c1 PC2^ regwrite

Mp4^ MUX

Z

Mp5 MUX

Data Memory

add

Load/Store Instruction

(ld, ldr, st, str)

c1 or c2 are selected depending on the addressing mode

c1 or c2 are selected depending on the addressing mode

ALU computes the address

ALU computes the address

14

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

Y3 X

Mp3^ MUX

Z

ALU

decoder

Op codera c1 PC2^ regwrite

Mp4^ MUX

Z

Mp5 MUX

Data Memory

add

Load/Store Instruction

(ld, ldr, st, str)

c1 or c2 are selected depending on the addressing mode

c1 or c2 are selected depending on the addressing mode

ALU computes the address

ALU computes the address

Store instruction completed

16

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

MUX

Op code ra ••• (^) c2^ regwrite

Branch Logic

PC

condition

Branch Instruction

17

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

MUX

Op code ra ••• (^) c2^ regwrite

Branch Logic

PC

condition

Branch Instruction

PC incremented as usual

19

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory PC Inc

Register File R[rb] R[rc] R[ra]

MUX

Op code ra ••• (^) c2^ regwrite

Branch Logic

PC

condition

Branch Instruction

PC incremented as usual

No memory access

Condition decides new PC value

20

Instruction Fetch

Decode and Operand Read

ALU

Operation

Memory Access

Register Writeback

Instruction Memory

Register File R[rb] R[rc] R[ra]

Op code ra ••• (^) c2^ regwrite

Branch Logic

PC

condition

PC

Inc

MUX

Branch Instruction

PC incremented as usual

No memory access

Only brl instructions write register

Condition decides new PC value