
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of computer architecture, focusing on pipelining and instruction set architecture (isa). The concept of pipelining, its implementation, and its effects on processor performance. Additionally, it discusses the features of isa, including internal storage, memory addressing, type and size of operands, operations, instructions for flow control, and encoding of the is. Slides from a lecture by david culler of the university of california, berkeley, are included for further reference.
Typology: Study notes
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























COSC 6385 – Computer ArchitectureEdgar Gabriel
COSC 6385 – Computer ArchitectureEdgar Gabriel
COSC 6385 – Computer ArchitectureEdgar Gabriel
COSC 6385 – Computer ArchitectureEdgar Gabriel
Typical implementation of an instruction
(I)
Instruction fetch cycle (IF):•
send PC to memory
Fetch current instruction
Update PC to next sequential PC (+4 bytes)
Instruction decode/register fetch cycle (ID)•
Decode instruction
Read registers corresponding to register source specifiersfrom register file
Sign extend offset fields if needed
Compute possible branch target address
COSC 6385 – Computer ArchitectureEdgar Gabriel
Typical implementation of an instruction
(III)
MUX
MUX MUX
MUX
Sign Extend
4
Adder
Next SEQ PC
WB Data
Imm
COSC 6385 – Computer ArchitectureEdgar Gabriel
Datapath (I)
4
Adder
COSC 6385 – Computer ArchitectureEdgar Gabriel
Datapath (III)
Address
WriteData
Readdata
Sign Extend
16
32
COSC 6385 – Computer ArchitectureEdgar Gabriel
Register
file
RegWrite
Instruction
Sign Extend
16
32
MU X
0 1
ALU
4
Data memory
MemWrite MemRead
ALUsrc
MU X
MemtoReg^01
ALU operation
COSC 6385 – Computer ArchitectureEdgar Gabriel
Register
file
RegWrite
Sign Extend
16
32
ALU
4
ALU operation
Instruction
ShiftLeft 2
Add
COSC 6385 – Computer ArchitectureEdgar Gabriel
Mem
Mem
Mem
Mem
Cycle 1 Cycle 2
Cycle 3
Cycle 4
Cycle 6 Cycle 7
Cycle 5
COSC 6385 – Computer ArchitectureEdgar Gabriel
MUX MUX
MUX
Sign Extend
4
Adder
Next SEQ PC
Next SEQ PC
Next PC
Imm
MUX
COSC 6385 – Computer ArchitectureEdgar Gabriel
COSC 6385 – Computer ArchitectureEdgar Gabriel
One Memory Port/Structural Hazards
I n s t r. O r d e r
LoadInstr 1
Instr 2Stall
Instr 3
Reg
DMem
Ifetch
Reg
Reg
DMem
Ifetch
Reg
Reg
DMem
Ifetch
Reg
Cycle 1 Cycle 2
Cycle 3
Cycle 4
Cycle 6 Cycle 7
Cycle 5
Reg
DMem
Ifetch
Reg
Bubble
Bubble
Bubble
Bubble
Bubble
COSC 6385 – Computer ArchitectureEdgar Gabriel
Speed Up Equation for Pipelining
pipelined
d
unpipeline
Time
Cycle
Time
Cycle
CPI
stall
Pipeline
CPI
Ideal
depth
Pipeline
CPI
Ideal
Speedup
×
×
=
pipelined
d
unpipeline
Time
Cycle
Time
Cycle
CPI
stall
Pipeline
1
depth
Pipeline
Speedup
×
=
Inst
per
cycles
Stall
Average
CPI
Ideal
CPI
pipelined
=
For simple RISC pipeline, CPI = 1: