SlideShare a Scribd company logo
RISC vs CISC
Submitted to: Submitted by:
Mrs. Priyanka Soni Krati Katyal
MCA 2nd
Sem
2
Topics Covered
•INTRODUCTION
•CISC ARCHITECTURE
•CHARACTERSTICS & PROPERTIES OF CISC
•ADVANTAGES & DISADVANTAGES OF CISC
• CISC INSTRUCTION EXAMPLE
•RISC ARCHITECTURE
•CHARACTERSTICS & PROPERTIES OF RISC
•ADVANTAGES & DISADVANTAGES OF RISC
•RISC INSTRUCTION EXAMPLE
•RISC 5 STAGE PIPELINING
•COMPARISON BETWEEN RISC & CISC PROCESSOR
3
•A processor is the logic circuitry that responds to and processes
the basic instructions that drive a computer.
•CPU instructions are numbers stored in memory.
•Instruction set is a set of instructions a programmer can give to a
machine to perform operations.
•The instructions are specific to CPU architecture.
•Basic operations: read instruction from memory, decode,
execute ,write back.
Introduction
4
Fundamentals
From the architecture point of view, the microprocessor chips can
be classified into two categories:
1. Complex Instruction Set Computers (CISC) and
2. Reduce Instruction Set Computers (RISC) .
5
CISC: Complex Instruction Set Computers
History
•CISC existed close to the beginning of general computing.
•Since the earliest machines were programmed in assembly language
and memory was slow and expensive, IBM designed an instruction set to
allow early programmer to easily program a hundred complex instruction
rather than thousands of individual instructions.
•CISC was developed to make compiler development simpler. It shifts
most of the burden of generating machine instructions to the processor.
• For example, instead of having to make a compiler write long machine
instructions to calculate a square-root, a CISC processor would have a
built-in ability to do this.
6
CISC Architecture
• Complex instruction set computing is a CPU design where
single instructions can execute several low-level operations (such
as a load from memory, an arithmetic operation, and a memory
store) or are capable of multi-step operations or addressing
modes within single instructions.
• Called “complex” because of the complex work performed per
instruction.
• Concept: Encode the intention directly.
• Eg:” add X and Y and put the result in Z” (for X,Y,Z memory
address)
• Problem: Some instruction take more time then others.
• Examples: x86, s390.
• Small number of general purpose registers
7
cont….
• Computers typically use CISC while tablets, smartphones and other devices
use RISC.
• So, the higher efficiency of the RISC architecture makes it desirable in these
applications where cycles and power are usually in short supply.
• In CISC instructions are executed by microcode.
• A CISC instruction set typically includes many instructions
with different sizes and execution cycles, which makes CISC
instructions harder to pipeline.
8
Characteristic of CISC Processors
•A CISC instruction can be thought to contain many different type of
instructions bundled into one simple instruction.
•A large number of instructions - typically from 100 to 250 instructions.
•Some instructions that perform specialized tasks and are used
infrequently.
•A large variety of addressing modes - typically 5 to 20 different modes.
•Variable-length instruction formats
•Instructions that manipulate operands in memory.
9
Properties of a CISC Processor
1. Richer instruction set, some simple, some very complex.
2. Instructions generally take more than 1 clock to execute.
3. Instructions of a variable size.
4. Instructions is an interface with memory in multiple
mechanisms with complex addressing modes.
5. No pipelining.
6. Microcode control make CISC instruction set possible &
flexible.
7. Work well with simpler compiler.
10
Advantage
• Microprogramming is as easy as assembly language to
implement, and much less expensive than hardwiring a control
unit.
• As each instruction became more capable, fewer instructions
could be used to implement a given task. This made more
efficient use of the relatively slow main memory.
• Because micro-program instruction sets can be written to match
the constructs of high-level languages, the compiler does not
have to be as complicated.
11
Disadvantage
• Complex instructions are infrequently used by programmers and
compilers.
• Memory references, loads and stores, are slow and account for a
significant fraction of all instructions.
• Procedure and function calls are a major bottleneck
Passing arguments
Storing and retrieving values in registers.
• Instruction set & chip of new genration hardware become more complex
with each generation of computers.
12
A CISC could multiply 5 by 10 as follows:
Mov ax,10
Mov bx,5
Mul bx
CISC Instruction Example
13
RISC: Reduced Instruction Set Computer
History
The first RISC projects came from IBM, Stanford, and UC-Berkeley in the
late 70s and early 80s.
The IBM 801, Stanford MIPS, and Berkeley RISC 1 and 2 were all
designed with a similar philosophy which has become known as RISC.
When designers create a new generation of processors, improving
performance is the key goal. There are three main factors that affect
performance; they are :
• How fast you can crank up the clock.
• How much work you can do per cycle.
• How many instructions you need to perform a task.
14
RISC Architecture
• Called “reduced” because of the reduction of work performed by an
instructions.
• It is a type of microprocessor architecture that utilizes a small, highly-
optimized set of instructions, rather than a more specialized set of
instructions often found in other types of architectures.
• RISC's original goals was to limit the number of instructions on the chip
so that each could be allocated enough transistors to make it execute
in one cycle.
• Small set of instructions of a typical RISC processor consists mostly of
register-to-register operations, with only simple load and store
operations for memory access.
.
15
• Thus each operand is brought into a processor register with
a load instruction
• All computations are done among the data stored in
processor registers.
• Results are transferred to memory by means of store
instructions.
• Concepts: Break operation into simpler sub operation.
• Eg: instruction: load X, load Y, add X and Y, store Z
cont….
16
Characteristic of RISC Processors
• Simplifies the instruction set..
• The use of only a few addressing modes results from the fact
that almost all instructions have simple register addressing.
• Other addressing modes may be included, such as immediate
operands.
• By using a relatively simple instruction format, the instruction
length can be fixed and aligned on word boundaries.
• An important aspect of RISC instruction format is that it is easy
to decode.
• Shorter Instructions - Breaking the complex instruction into
several short simpler instructions
17
cont….
• It has the ability to execute one instruction per clock cycle.
 This is done by overlapping the fetch, decode and execute
phases of two or three instructions by using a procedure referred to
as pipelining.
• The advantage of register storage as opposed to memory storage
is that registers can transfer information to other registers much
faster than the transfer of information to and from memory.
• Relatively few instructions
• Relatively few addressing modes.
• Memory access limited to load and store instructions
• Can run several instructions simultaneously.
18
Properties of a RISC Processor
1. Simple primitive instructions and addressing modes.
2. Instructions execute in one clock cycle.
3. Uniformed length instructions and fixed instruction format.
4. Instructions interface with memory via fixed
mechanisms(load/store).
5. Pipelining.
6. Hardwired control.
7. Complexity pushed to the compiler.
19
Advantage
• Speed: RISC processors often achieve 2 to 4 times the
performance of CISC processors using comparable
semiconductor technology and the same clock rates.
• Simpler hardware. Because the instruction set of a RISC
processor is so simple, it uses up much less chip space and
simple hardware requirements.
• Shorter design cycle. Since RISC processors are simpler than
corresponding CISC processors, they can be designed more
quickly, and can complete there work in 1 clock cycle
20
Disadvantage
• Code Quality: The performance of a RISC processor depends greatly
on the code that it is executing. If the programmer (or compiler) does a
poor job of instruction scheduling, the processor can spend quite a bit of
time stalling: waiting for the result of one instruction before it can
proceed with a subsequent instruction.
• Code expansion: Since CISC machines perform complex actions with
a single instruction, where RISC machines may require multiple
instructions for the same action, code expansion can be a problem.
• System Design: Another problem that faces RISC machines is that
they require very fast memory systems to feed them instructions. RISC-
based systems typically contain large memory caches, usually on the
chip itself. This is known as a first-level cache.
21
RISC Instruction Example
• In RISC the microprocessor's designers might make sure that add
executes in one clock.
• Then a compiler could multiply a and b by adding a to itself b times
or b to itself a times.
Mov ax,0
Mov bx,10
Mov cx,5
Begin:
Add ax,bx
Loop Begin
loop cx times
22
RISC 5 Stage Pipeling
• Fivestage “RISC” load- store architecture‐
1. Instruction fetch (IF)
• Get instruction from memory, increment PC.
2. Instruction Decode (ID)
• Translate opcode into control signals and read registers.
3. Execute (EX)
• Perform ALU operation, compute jump/branch target
4. Memory (MEM)
• Access memory if needed
5. Writeback (WB)
• Update register file
23
RISC 5 Stage Pipeling
24
• Instructions utilize more cycles than RISC.
• CISC has way more complex instructions than RISC.
• CISC typically has fewer instructions than RISC.
• CISC implementations tend to be slower than RISC
implementations.
• RISC design is approximately twice as cost-effective as CISC.
• RISC architectures are designed for a good cost/performance,
whereas CISC architectures are designed for a good
performance on slow memories.
Comparisons between CISC and RISC
Processors
25
CISC RISC
Emphasis on hardware Emphasis on software
Includes multi-clock,
complex instructions
Single-clock, reduced instruction
only
Memory-to-memory:
"LOAD" and "STORE"
incorporated in instructions
Register to register:
"LOAD" and "STORE"
are independent instructions
Slower since instruction can take
more than 1 cycle
Faster since instructions usually
take 1 instruction cycle
Main objective is less code. Main objective is speed.
cont….
26
CISC RISC
More hardware oriented.
More software oriented since the
compiler deals with
translations.
Instruction size is mostly varied
in size.
Instruction size is always a set
size.
Addressing Modes can be
complex
Addressing Modes are simple.
cont….
27
Examples of CISC and RISC Processors
28
Comparisons between CISC and RISC
Instructions
• Lets consider a simple example: addition of x and y
 RISC Reduced Instruction Set Computers
– Break Operation into Simple Sub-Operation.
Load X,
Load Y,
add X and Y,
Store Z
 CISC Complex Instruction Set Computers
– Encode the Instruction Directly
Add X & Y Put the Result in Z.
29
30
Reference
• www.google.com
• www.wikipidea.com
• www.youtube.com
• Andrew S.Tanenbaum
MLSU UNIVERSITY

More Related Content

What's hot

Interrupts
InterruptsInterrupts
Interrupts
Albin Panakkal
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
Roshan kumar sahu
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
ihsanjamil
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Sandesh Jonchhe
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
Asif Iqbal
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
Kamal Acharya
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly languageAhmed M. Abed
 
CISC VS CISC
CISC VS CISCCISC VS CISC
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecture
fika sweety
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
vishnu murthy
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
Mr. Vikram Singh Slathia
 
Pipelining powerpoint presentation
Pipelining powerpoint presentationPipelining powerpoint presentation
Pipelining powerpoint presentation
bhavanadonthi
 
Parallel processing
Parallel processingParallel processing
Parallel processing
rajshreemuthiah
 
Interrupt
InterruptInterrupt
Interrupt
Siddique Ibrahim
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
System on chip architectures
System on chip architecturesSystem on chip architectures
System on chip architectures
A B Shinde
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
Neel Patel
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
Dr.YNM
 
Superscalar & superpipeline processor
Superscalar & superpipeline processorSuperscalar & superpipeline processor
Superscalar & superpipeline processorMuhammad Ishaq
 

What's hot (20)

Interrupts
InterruptsInterrupts
Interrupts
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
CISC VS CISC
CISC VS CISCCISC VS CISC
CISC VS CISC
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecture
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Pipelining powerpoint presentation
Pipelining powerpoint presentationPipelining powerpoint presentation
Pipelining powerpoint presentation
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Interrupt
InterruptInterrupt
Interrupt
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
Direct Memory Access ppt
 
System on chip architectures
System on chip architecturesSystem on chip architectures
System on chip architectures
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
 
Superscalar & superpipeline processor
Superscalar & superpipeline processorSuperscalar & superpipeline processor
Superscalar & superpipeline processor
 

Viewers also liked

Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Mohanlal Sukhadia University (MLSU)
 
Polygon filling
Polygon fillingPolygon filling
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
Mohanlal Sukhadia University (MLSU)
 
Modular programming
Modular programmingModular programming
Protection
ProtectionProtection
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
Mohanlal Sukhadia University (MLSU)
 

Viewers also liked (6)

Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
Shortest path (Dijkistra's Algorithm) & Spanning Tree (Prim's Algorithm)
 
Polygon filling
Polygon fillingPolygon filling
Polygon filling
 
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
 
Modular programming
Modular programmingModular programming
Modular programming
 
Protection
ProtectionProtection
Protection
 
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
 

Similar to Risc & cisk

RISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and designRISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and design
yousefzahdeh
 
R&c
R&cR&c
R&c
haider1986
 
Risc and cisc computers
Risc and cisc computersRisc and cisc computers
Risc and cisc computers
ankita mundhra
 
Dsdco IE: RISC and CISC architectures and design issues
Dsdco IE: RISC and CISC architectures and design issuesDsdco IE: RISC and CISC architectures and design issues
Dsdco IE: RISC and CISC architectures and design issues
Home
 
RISC AND CISC.pptx
RISC AND CISC.pptxRISC AND CISC.pptx
RISC AND CISC.pptx
AtharvaPathak28
 
Unit I_MT2301.pdf
Unit I_MT2301.pdfUnit I_MT2301.pdf
Unit I_MT2301.pdf
Kannan Kanagaraj
 
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdfCS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
Asst.prof M.Gokilavani
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
Manish Prajapati
 
Processors used in System on chip
Processors used in System on chip Processors used in System on chip
Processors used in System on chip
A B Shinde
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
karan saini
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
Chaudhary Manzoor
 
CISC.pptx
CISC.pptxCISC.pptx
CISC.pptx
UmaimaAsif3
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
Kamal Acharya
 
risc_and_cisc.ppt
risc_and_cisc.pptrisc_and_cisc.ppt
risc_and_cisc.ppt
Ruhul Amin
 
Embedded System IoT_4.pptx ppt presentation
Embedded System  IoT_4.pptx ppt presentationEmbedded System  IoT_4.pptx ppt presentation
Embedded System IoT_4.pptx ppt presentation
MITS
 
PPT ON RISC
PPT ON RISC PPT ON RISC
PPT ON RISC
ASHISH LATWAL
 
ITFT_Risc
ITFT_RiscITFT_Risc
ITFT_Risc
Shilpa Sharma
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
Abash shah
 
Advanced processor principles
Advanced processor principlesAdvanced processor principles
Advanced processor principles
Dhaval Bagal
 

Similar to Risc & cisk (20)

RISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and designRISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and design
 
R&c
R&cR&c
R&c
 
Risc and cisc computers
Risc and cisc computersRisc and cisc computers
Risc and cisc computers
 
Dsdco IE: RISC and CISC architectures and design issues
Dsdco IE: RISC and CISC architectures and design issuesDsdco IE: RISC and CISC architectures and design issues
Dsdco IE: RISC and CISC architectures and design issues
 
RISC AND CISC.pptx
RISC AND CISC.pptxRISC AND CISC.pptx
RISC AND CISC.pptx
 
Unit I_MT2301.pdf
Unit I_MT2301.pdfUnit I_MT2301.pdf
Unit I_MT2301.pdf
 
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdfCS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
CS304PC:Computer Organization and Architecture UNIT V_merged_merged.pdf
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
Processors used in System on chip
Processors used in System on chip Processors used in System on chip
Processors used in System on chip
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
CISC.pptx
CISC.pptxCISC.pptx
CISC.pptx
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
risc_and_cisc.ppt
risc_and_cisc.pptrisc_and_cisc.ppt
risc_and_cisc.ppt
 
Embedded System IoT_4.pptx ppt presentation
Embedded System  IoT_4.pptx ppt presentationEmbedded System  IoT_4.pptx ppt presentation
Embedded System IoT_4.pptx ppt presentation
 
PPT ON RISC
PPT ON RISC PPT ON RISC
PPT ON RISC
 
ITFT_Risc
ITFT_RiscITFT_Risc
ITFT_Risc
 
Risc
RiscRisc
Risc
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Advanced processor principles
Advanced processor principlesAdvanced processor principles
Advanced processor principles
 

Recently uploaded

AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 

Recently uploaded (20)

AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 

Risc & cisk

  • 1. RISC vs CISC Submitted to: Submitted by: Mrs. Priyanka Soni Krati Katyal MCA 2nd Sem
  • 2. 2 Topics Covered •INTRODUCTION •CISC ARCHITECTURE •CHARACTERSTICS & PROPERTIES OF CISC •ADVANTAGES & DISADVANTAGES OF CISC • CISC INSTRUCTION EXAMPLE •RISC ARCHITECTURE •CHARACTERSTICS & PROPERTIES OF RISC •ADVANTAGES & DISADVANTAGES OF RISC •RISC INSTRUCTION EXAMPLE •RISC 5 STAGE PIPELINING •COMPARISON BETWEEN RISC & CISC PROCESSOR
  • 3. 3 •A processor is the logic circuitry that responds to and processes the basic instructions that drive a computer. •CPU instructions are numbers stored in memory. •Instruction set is a set of instructions a programmer can give to a machine to perform operations. •The instructions are specific to CPU architecture. •Basic operations: read instruction from memory, decode, execute ,write back. Introduction
  • 4. 4 Fundamentals From the architecture point of view, the microprocessor chips can be classified into two categories: 1. Complex Instruction Set Computers (CISC) and 2. Reduce Instruction Set Computers (RISC) .
  • 5. 5 CISC: Complex Instruction Set Computers History •CISC existed close to the beginning of general computing. •Since the earliest machines were programmed in assembly language and memory was slow and expensive, IBM designed an instruction set to allow early programmer to easily program a hundred complex instruction rather than thousands of individual instructions. •CISC was developed to make compiler development simpler. It shifts most of the burden of generating machine instructions to the processor. • For example, instead of having to make a compiler write long machine instructions to calculate a square-root, a CISC processor would have a built-in ability to do this.
  • 6. 6 CISC Architecture • Complex instruction set computing is a CPU design where single instructions can execute several low-level operations (such as a load from memory, an arithmetic operation, and a memory store) or are capable of multi-step operations or addressing modes within single instructions. • Called “complex” because of the complex work performed per instruction. • Concept: Encode the intention directly. • Eg:” add X and Y and put the result in Z” (for X,Y,Z memory address) • Problem: Some instruction take more time then others. • Examples: x86, s390. • Small number of general purpose registers
  • 7. 7 cont…. • Computers typically use CISC while tablets, smartphones and other devices use RISC. • So, the higher efficiency of the RISC architecture makes it desirable in these applications where cycles and power are usually in short supply. • In CISC instructions are executed by microcode. • A CISC instruction set typically includes many instructions with different sizes and execution cycles, which makes CISC instructions harder to pipeline.
  • 8. 8 Characteristic of CISC Processors •A CISC instruction can be thought to contain many different type of instructions bundled into one simple instruction. •A large number of instructions - typically from 100 to 250 instructions. •Some instructions that perform specialized tasks and are used infrequently. •A large variety of addressing modes - typically 5 to 20 different modes. •Variable-length instruction formats •Instructions that manipulate operands in memory.
  • 9. 9 Properties of a CISC Processor 1. Richer instruction set, some simple, some very complex. 2. Instructions generally take more than 1 clock to execute. 3. Instructions of a variable size. 4. Instructions is an interface with memory in multiple mechanisms with complex addressing modes. 5. No pipelining. 6. Microcode control make CISC instruction set possible & flexible. 7. Work well with simpler compiler.
  • 10. 10 Advantage • Microprogramming is as easy as assembly language to implement, and much less expensive than hardwiring a control unit. • As each instruction became more capable, fewer instructions could be used to implement a given task. This made more efficient use of the relatively slow main memory. • Because micro-program instruction sets can be written to match the constructs of high-level languages, the compiler does not have to be as complicated.
  • 11. 11 Disadvantage • Complex instructions are infrequently used by programmers and compilers. • Memory references, loads and stores, are slow and account for a significant fraction of all instructions. • Procedure and function calls are a major bottleneck Passing arguments Storing and retrieving values in registers. • Instruction set & chip of new genration hardware become more complex with each generation of computers.
  • 12. 12 A CISC could multiply 5 by 10 as follows: Mov ax,10 Mov bx,5 Mul bx CISC Instruction Example
  • 13. 13 RISC: Reduced Instruction Set Computer History The first RISC projects came from IBM, Stanford, and UC-Berkeley in the late 70s and early 80s. The IBM 801, Stanford MIPS, and Berkeley RISC 1 and 2 were all designed with a similar philosophy which has become known as RISC. When designers create a new generation of processors, improving performance is the key goal. There are three main factors that affect performance; they are : • How fast you can crank up the clock. • How much work you can do per cycle. • How many instructions you need to perform a task.
  • 14. 14 RISC Architecture • Called “reduced” because of the reduction of work performed by an instructions. • It is a type of microprocessor architecture that utilizes a small, highly- optimized set of instructions, rather than a more specialized set of instructions often found in other types of architectures. • RISC's original goals was to limit the number of instructions on the chip so that each could be allocated enough transistors to make it execute in one cycle. • Small set of instructions of a typical RISC processor consists mostly of register-to-register operations, with only simple load and store operations for memory access. .
  • 15. 15 • Thus each operand is brought into a processor register with a load instruction • All computations are done among the data stored in processor registers. • Results are transferred to memory by means of store instructions. • Concepts: Break operation into simpler sub operation. • Eg: instruction: load X, load Y, add X and Y, store Z cont….
  • 16. 16 Characteristic of RISC Processors • Simplifies the instruction set.. • The use of only a few addressing modes results from the fact that almost all instructions have simple register addressing. • Other addressing modes may be included, such as immediate operands. • By using a relatively simple instruction format, the instruction length can be fixed and aligned on word boundaries. • An important aspect of RISC instruction format is that it is easy to decode. • Shorter Instructions - Breaking the complex instruction into several short simpler instructions
  • 17. 17 cont…. • It has the ability to execute one instruction per clock cycle.  This is done by overlapping the fetch, decode and execute phases of two or three instructions by using a procedure referred to as pipelining. • The advantage of register storage as opposed to memory storage is that registers can transfer information to other registers much faster than the transfer of information to and from memory. • Relatively few instructions • Relatively few addressing modes. • Memory access limited to load and store instructions • Can run several instructions simultaneously.
  • 18. 18 Properties of a RISC Processor 1. Simple primitive instructions and addressing modes. 2. Instructions execute in one clock cycle. 3. Uniformed length instructions and fixed instruction format. 4. Instructions interface with memory via fixed mechanisms(load/store). 5. Pipelining. 6. Hardwired control. 7. Complexity pushed to the compiler.
  • 19. 19 Advantage • Speed: RISC processors often achieve 2 to 4 times the performance of CISC processors using comparable semiconductor technology and the same clock rates. • Simpler hardware. Because the instruction set of a RISC processor is so simple, it uses up much less chip space and simple hardware requirements. • Shorter design cycle. Since RISC processors are simpler than corresponding CISC processors, they can be designed more quickly, and can complete there work in 1 clock cycle
  • 20. 20 Disadvantage • Code Quality: The performance of a RISC processor depends greatly on the code that it is executing. If the programmer (or compiler) does a poor job of instruction scheduling, the processor can spend quite a bit of time stalling: waiting for the result of one instruction before it can proceed with a subsequent instruction. • Code expansion: Since CISC machines perform complex actions with a single instruction, where RISC machines may require multiple instructions for the same action, code expansion can be a problem. • System Design: Another problem that faces RISC machines is that they require very fast memory systems to feed them instructions. RISC- based systems typically contain large memory caches, usually on the chip itself. This is known as a first-level cache.
  • 21. 21 RISC Instruction Example • In RISC the microprocessor's designers might make sure that add executes in one clock. • Then a compiler could multiply a and b by adding a to itself b times or b to itself a times. Mov ax,0 Mov bx,10 Mov cx,5 Begin: Add ax,bx Loop Begin loop cx times
  • 22. 22 RISC 5 Stage Pipeling • Fivestage “RISC” load- store architecture‐ 1. Instruction fetch (IF) • Get instruction from memory, increment PC. 2. Instruction Decode (ID) • Translate opcode into control signals and read registers. 3. Execute (EX) • Perform ALU operation, compute jump/branch target 4. Memory (MEM) • Access memory if needed 5. Writeback (WB) • Update register file
  • 23. 23 RISC 5 Stage Pipeling
  • 24. 24 • Instructions utilize more cycles than RISC. • CISC has way more complex instructions than RISC. • CISC typically has fewer instructions than RISC. • CISC implementations tend to be slower than RISC implementations. • RISC design is approximately twice as cost-effective as CISC. • RISC architectures are designed for a good cost/performance, whereas CISC architectures are designed for a good performance on slow memories. Comparisons between CISC and RISC Processors
  • 25. 25 CISC RISC Emphasis on hardware Emphasis on software Includes multi-clock, complex instructions Single-clock, reduced instruction only Memory-to-memory: "LOAD" and "STORE" incorporated in instructions Register to register: "LOAD" and "STORE" are independent instructions Slower since instruction can take more than 1 cycle Faster since instructions usually take 1 instruction cycle Main objective is less code. Main objective is speed. cont….
  • 26. 26 CISC RISC More hardware oriented. More software oriented since the compiler deals with translations. Instruction size is mostly varied in size. Instruction size is always a set size. Addressing Modes can be complex Addressing Modes are simple. cont….
  • 27. 27 Examples of CISC and RISC Processors
  • 28. 28 Comparisons between CISC and RISC Instructions • Lets consider a simple example: addition of x and y  RISC Reduced Instruction Set Computers – Break Operation into Simple Sub-Operation. Load X, Load Y, add X and Y, Store Z  CISC Complex Instruction Set Computers – Encode the Instruction Directly Add X & Y Put the Result in Z.
  • 29. 29
  • 30. 30 Reference • www.google.com • www.wikipidea.com • www.youtube.com • Andrew S.Tanenbaum