You are on page 1of 25

Introduction to RISC processor

Introduction to RISC processor


RISC
• Reduced Instruction Set Computer

• Key features
• Large number of general purpose registers
• or use of compiler technology to optimize register use
• Limited and simple instruction set
• Emphasis on optimising the instruction pipeline
CISC and RISC
Comparison of processors
Why RISC?
CISC and RISC
RISC Pipelining
• Most instructions are register to register
• Two phases of execution
• I: Instruction fetch
• E: Execute
• ALU operation with register input and output
• For load and store
• I: Instruction fetch
• E: Execute
• Calculate memory address
• D: Memory
• Register to memory or memory to register operation
CISC and RISC
Introduction
֍ Based on the architecture i.e. Instruction Set of the microprocessor. 

Classification of Microprocessor

CISC RISC
Complex Instruction Set Computer Reduced Instruction Set Computer

09/17/2021 Asutosh Patnaik, Dept. of EEE, CGU, Odisha 6


Difference between CISC and RISC
CISC RISC
large number of instructions. Very fewer instructions

Some instructions with long execution times No instruction with a long execution time 

Multiple formats are supported for specifying operands Simple addressing formats are supported

CISC supports array. RISC does not supports array.

Arithmetic and logical operations can be applied to both Arithmetic and logical operations only use register 
memory and register

Implementation programs are hidden from machine level Implementation programs exposed to machine
programs level programs

09/17/2021 Asutosh Patnaik, Dept. of EEE, CGU, Odisha 7


CISC and RISC
ARM

09/17/2021 9
ARM

09/17/2021 10
ARM

09/17/2021 11
ARM

09/17/2021 12
ARM

09/17/2021 13
ARM

09/17/2021 14
ARM

Large registers set R0 – R15. Each is of 32 bit wide.

09/17/2021 15
ARM Family

09/17/2021 16
ARM

09/17/2021 17
ARM

ARM is a load-store architecture:


Values must be loaded into registers in order to operate upon
them.
No instructions directly operate on values in memory.

09/17/2021 18
ARM Registers
(1) ARM has sixteen registers. All are 32 bits wide.

All of the registers are general purpose.


R13 / SP which holds the stack pointer.
R14 / LR the link register which holds the callers'
return address.
R15 / PC which holds the program counter.

(2) CPSR is the current program status register. This holds


flags: results of arithmetic and logical operations.

09/17/2021 19
ARM
Barrel Shifter
It is a functional unit testing that is used to perform the Shift and
Rotate Operations.
It provides five types of shifts and rotates
LSL – Logical Shift Left
LSR – Logical Shift Right
SR – Arithmetic Shift Right
ROR – Rotate Right
RRX – Rotate Right Extended

09/17/2021 20
ARM

09/17/2021 21
ARM

09/17/2021 22
ARM

09/17/2021 23
ARM

09/17/2021 24
ARM

09/17/2021 25

You might also like