Documente Academic
Documente Profesional
Documente Cultură
DSP markets
active suspension,
closed-loop engine control systems,
intelligent cruise control radar systems,
anti-skid braking systems and
car entertainment systems.
ALU
I/O
Address bus
ALU
I/O
Data bus
instructions
and
instructions
data
data
RISC trades-off
instruction set complexity for instruction execution timing.
RISC Features
Large register set: having more registers allows memory
access to be minimized.
Load/Store architecture: operating data in memory
directly is one of the most expensive in terms of clock
cycle.
Fixed length instruction encoding: This simplifies
instruction fetching and decoding logic and allows easy
implementation of pipelining.
All instructions are register-to-register format
except Load/Store which access memory
All instructions execute in a single cycle
save branch instructions which require two.
Almost all single instruction size & same format.
Comparison
CISC
RISC
Less to no pipelining
Highly pipelined
Which is better
RISC
Or
CISC
Pipelining is Natural!
Laundry Example
Ann, Brian, Cathy, Dave
each have one load of clothes
to wash, dry, and fold
Washer takes 30 minutes
Dryer takes 30 minutes
Folder takes 30 minutes
Stasher takes 30 minutes
to put clothes into drawers
Sequential Laundry
6 PM 7
T
a
s
k
O
r
d
e
r
10
11
12
2 AM
B
C
D
3030 30 30 30 3030
10
11
12
Time
A
B
C
D
2 AM
Pipelining Lessons
6 PM
T
a
s
k
9
Time
3030 30 30 30 3030
A
B
O
r
d
e
r
C
D
Pipelining doesnt
help latency of single
task, it helps
throughput of entire
workload
Multiple tasks
operating
simultaneously using
different resources
Potential speedup =
Number pipe stages
Pipeline rate limited
by slowest pipeline
stage
Unbalanced lengths
of pipe stages
reduces speedup
Time to fill pipeline
and time to drain it
Memory Hierarchy
Pipelining
Pipelining
Cache
Cachememory
memory
Primary
Primaryreal
realmemory
memory
Virtual
Virtual memory
memory(Disk,
(Disk,swapping)
swapping)
Cheaper
More Capacity
Faster
Registers
Registers
Ideal Pipelining
Assume instructions
are completely independent!
IF
DCD
IF
EX
DCD
IF
MEM
WB
EX
MEM
WB
EX
MEM
WB
EX
MEM
WB
EX
MEM
DCD
IF
DCD
IF
DCD
WB