RISC Architecture and Super Computer: Prof. Sin-Min Lee Department of Computer Science San Jose State University
RISC Architecture and Super Computer: Prof. Sin-Min Lee Department of Computer Science San Jose State University
Computer
Prof. Sin-Min Lee
Department of Computer Science
San Jose State University
The Basis for RISC
• Use of simple instructions
• One of their key realizations was that a
sequence of simple instructions produces
the same results as a sequence of complex
instructions, but can be implemented with a
simpler (and faster) hardware design.
Reduced Instruction Set Computers---RISC
machines---were the result.
Addressing modes
• Limited number of addressing modes
• The effective address is computed in a
single clock cycle.
Instruction Pipeline
• Similar to a manufacturing assembly line
1. Fetch an instruction
2. Decode the instruction
3. Execute the instruction
4. Store results
• Each stage processes simultaneously (after
initial latency)
• Execute one instruction per clock cycle
Pipeline Stages
• Some processors use 3, 4, or 5 stages
RISC characteristics
• Simple instruction set.
• In a RISC machine, the instruction set
contains simple, basic instructions, from
which more complex instructions can be
composed.
• Same length instructions.
RISC characteristics
• Each instruction is the same length, so that
it may be fetched in a single operation.
• 1 machine-cycle instructions.
• Most instructions complete in one machine
cycle, which allows the processor to handle
several instructions at the same time. This
pipelining is a key technique used to speed
up RISC machines.
Instructions Pipelines
• It is to prepare the next instruction while
the current instruction is still executing.
• A Three states RISC pipelines is :
1. Fetch instruction
2. Decode and select registers
3. Execute the instruction
Clock 1 2 3 4 5 6 7
Stage
1 i1 i2 i3 i4 i5 i6 i7
2 - i1 i2 i3 i4 i5 i6
3 - - i1 i2 i3 i4 i5
RISC vs. CISC
• RISC have fewer and simpler instructions,
therefore, they are less complex and easier to
design. Also, it allow higher clock speed than
CISC. However, When we compiled high-level
language. RISC CPU need more instructions than
CISC CPU.
• CISC are complex but it doesn’t necessarily
increase the cost. CISC processors are backward
compactable.
Why RISC is better
Clock 1 2 3 4 5 6 7
Stage
1 i1 i2 i3 i4 i5 i6 i7
2 - i1 i2 i3 i4 i5 i6
3 - - i1 i2 i3 i4 i5
What is the speedup obtained from pipelining?
Solution:
Speedup is the ratio of the average instruction
time without pipelining to the average
instruction time with pipelining.
Average instruction time not pipelined = 320 ns
• Pocket PC’s like the Palm Pilot and Compaq’s Ipaq series
also use small RISC processors. Again, a machine like this is
basically single purpose. Yes, you can do lot of things with
them, but often you use a calendar, MP3 player, and maybe a
word processor.
So, why don’t I have a RISC processor at
home? (Continued)
• RISC based PC processors are still quite a bit more
expensive than their CISC counterparts.