SlideShare ist ein Scribd-Unternehmen logo
1 von 20
EE5440
COMPUTER ARCHITECTURE
Mr. Dilawar
Lecturer,
Computer Science Faculty,
Bakhtar University
Kabul, Afghanistan.
Previous Lecture
• Memory Locations and Addresses
• Memory Operations
• Instructions and Instruction Sequencing
• Addressing Modes
Instruction Set Architecture
Chapter 2
Lecture Outline
• Assembly Language
• CISC Instruction Sets
• Characteristics of RISC
• RISC and CISC Styles
• Encoding of Machine Instructions
Assembly Language
• So far, we used normal words for instruction
operations
• Replaced by acronyms called mnemonics such as LD, ST,
ADD, and BR.
• These mnemonics and rules for their use – assembly
language.
• Set of rules and specification of a complete instruction –
Syntax.
• Assembler – In memory and processes the user
program.
• Source program and object program.
CISC Instruction Sets
• They are not constrained to load/store architecture.
• Instructions do not necessarily have to fit into a single word.
• Most AL operations use two-address format.
• Modern CISC processors typically do not use a three-address format.
CISC Instruction Sets
• An Add instruction of this type is
• Consider again the task of adding two numbers
CISC Instruction Sets
• Contains the functionally of Load and Store instructions, with a
different approach
CISC Instruction Sets
Additional Addressing Modes
• Auto-increment mode
• EA is the content of register; Value is incremented automatically
when used.
• Auto-decrement mode
• Access the memory location reverse order.
• First decremented and then they are used as EA.
• EA is determined by the index mode using the PC in place
of general purpose register – Relative Addressing.
CISC Instruction Sets
Additional Addressing Modes
CISC Instruction Sets
Condition Codes
• Accomplished by recording the required information in individual bits,
often call condition code flags.
• Grouped together inside condition code register or status register.
CISC Instruction Sets
Condition Codes
RISC and CISC Styles
• RISC and CISC are two different styles of instruction sets.
• RISC style is characterized by:
• Simple addressing modes and all instruction fitting in a single word.
• AL operations are performed in processor registers.
• Load/Store architecture.
• Fewer instructions in the instruction set, as a consequences of simple
addressing modes.
• Fast execution by the processing unit using techniques such as pipelining.
• Programs larger in size, but more, but simpler instructions are needed to
perform complex tasks.
RISC and CISC Styles
• CISC style is characterized by:
• More complex addressing modes.
• More complex instructions, where an instruction may span multiple words.
• Many instructions that implement complex tasks.
• AL operations both on memory and register operands.
• Single MOV instruction.
• Programs smaller in size, but fewer, but more complex instructions are
needed to perform complex tasks.
RISC and CISC Styles
• Before the 1970s, all computer were of CISC type.
• To simplify the development of software by making the hardware capable of
performing justly complex tasks.
• To move the complexity from the software level to the hardware level.
• Makes the programs simpler and shorter.
• Computer memory was smaller and more expensive to provide.
RISC and CISC Styles
• RISC-style designs – High performance by making the hardware
simple
• Instructions executed in pipelined fashion.
• Move complexity from the hardware level to software level.
• Sophisticated compilers were developed to optimize the code consisting of
simple instructions.
• The size of the code became less important as memory capacities increased.
RISC and CISC Styles
• While the RISC and CISC styles are two different approaches
• Add some non-RISC instructions to a RISC processor.
• To reduce the number of instructions executed, as long as the execution of these new
instructions is fast.
Encoding of Machine Instructions
Summery
• Assembly Language
• CISC Instruction Sets
• Characteristics of RISC
• RISC and CISC Styles
• Encoding of Machine Instructions
Thank You
For your Patience

Weitere ähnliche Inhalte

Was ist angesagt?

10 instruction sets characteristics
10 instruction sets characteristics10 instruction sets characteristics
10 instruction sets characteristics
Sher Shah Merkhel
 
Part II: Assembly Fundamentals
Part II: Assembly FundamentalsPart II: Assembly Fundamentals
Part II: Assembly Fundamentals
Ahmed M. Abed
 
Paralle programming 2
Paralle programming 2Paralle programming 2
Paralle programming 2
Anshul Sharma
 
12 processor structure and function
12 processor structure and function12 processor structure and function
12 processor structure and function
Sher Shah Merkhel
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
Shaveta Banda
 

Was ist angesagt? (20)

Top schools in gudgao
Top schools in gudgaoTop schools in gudgao
Top schools in gudgao
 
10 instruction sets characteristics
10 instruction sets characteristics10 instruction sets characteristics
10 instruction sets characteristics
 
13 risc
13 risc13 risc
13 risc
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
Introduction to Simplified instruction computer or SIC/XE
Introduction to Simplified instruction computer or SIC/XEIntroduction to Simplified instruction computer or SIC/XE
Introduction to Simplified instruction computer or SIC/XE
 
Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)Lec 2 (parallel design and programming)
Lec 2 (parallel design and programming)
 
08 operating system support
08 operating system support08 operating system support
08 operating system support
 
10 instruction sets characteristics
10 instruction sets characteristics10 instruction sets characteristics
10 instruction sets characteristics
 
Part II: Assembly Fundamentals
Part II: Assembly FundamentalsPart II: Assembly Fundamentals
Part II: Assembly Fundamentals
 
Paralle programming 2
Paralle programming 2Paralle programming 2
Paralle programming 2
 
Unit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsUnit 1 Computer organization and Instructions
Unit 1 Computer organization and Instructions
 
system-software-tools
system-software-toolssystem-software-tools
system-software-tools
 
12 processor structure and function
12 processor structure and function12 processor structure and function
12 processor structure and function
 
Parallel architecture-programming
Parallel architecture-programmingParallel architecture-programming
Parallel architecture-programming
 
Window ce
Window ceWindow ce
Window ce
 
Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.Parallel programming model, language and compiler in ACA.
Parallel programming model, language and compiler in ACA.
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
 
2 parallel processing presentation ph d 1st semester
2 parallel processing presentation ph d 1st semester2 parallel processing presentation ph d 1st semester
2 parallel processing presentation ph d 1st semester
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O Organization
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
 

Ähnlich wie EE5440 – Computer Architecture - Lecture 3

Ähnlich wie EE5440 – Computer Architecture - Lecture 3 (20)

Risc and cisc computers
Risc and cisc computersRisc and cisc computers
Risc and cisc computers
 
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
 
Risc & cisk
Risc & ciskRisc & cisk
Risc & cisk
 
RISC AND CISC.pptx
RISC AND CISC.pptxRISC AND CISC.pptx
RISC AND CISC.pptx
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Processors used in System on chip
Processors used in System on chip Processors used in System on chip
Processors used in System on chip
 
R&c
R&cR&c
R&c
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
 
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
 
13 risc
13 risc13 risc
13 risc
 
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
 
Advanced Processor Power Point Presentation
Advanced Processor  Power Point  PresentationAdvanced Processor  Power Point  Presentation
Advanced Processor Power Point Presentation
 
Risc and cisc eugene clewlow
Risc and cisc   eugene clewlowRisc and cisc   eugene clewlow
Risc and cisc eugene clewlow
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
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
 
CISC.pptx
CISC.pptxCISC.pptx
CISC.pptx
 
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
 
Reduced instruction set computers
Reduced instruction set computersReduced instruction set computers
Reduced instruction set computers
 
ITFT_Risc
ITFT_RiscITFT_Risc
ITFT_Risc
 

Mehr von Dilawar Khan

EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course Outline
Dilawar Khan
 

Mehr von Dilawar Khan (8)

CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)CS7330 - Electronic Commerce - lecture (3)
CS7330 - Electronic Commerce - lecture (3)
 
CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)CS7330 - Electronic Commerce - lecture (2)
CS7330 - Electronic Commerce - lecture (2)
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
EE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course OutlineEE5440 – Computer Architecture Course Outline
EE5440 – Computer Architecture Course Outline
 
CS4443 - Modern Programming Language I
CS4443 - Modern Programming Language ICS4443 - Modern Programming Language I
CS4443 - Modern Programming Language I
 
CS3270 – Database Systems Course Outline
CS3270 – Database Systems Course OutlineCS3270 – Database Systems Course Outline
CS3270 – Database Systems Course Outline
 
CS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course OutlineCS7330 Electronic Commerce Course Outline
CS7330 Electronic Commerce Course Outline
 
CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)CS7330 - Electronic Commerce - lecture (1)
CS7330 - Electronic Commerce - lecture (1)
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

EE5440 – Computer Architecture - Lecture 3

  • 1. EE5440 COMPUTER ARCHITECTURE Mr. Dilawar Lecturer, Computer Science Faculty, Bakhtar University Kabul, Afghanistan.
  • 2. Previous Lecture • Memory Locations and Addresses • Memory Operations • Instructions and Instruction Sequencing • Addressing Modes
  • 4. Lecture Outline • Assembly Language • CISC Instruction Sets • Characteristics of RISC • RISC and CISC Styles • Encoding of Machine Instructions
  • 5. Assembly Language • So far, we used normal words for instruction operations • Replaced by acronyms called mnemonics such as LD, ST, ADD, and BR. • These mnemonics and rules for their use – assembly language. • Set of rules and specification of a complete instruction – Syntax. • Assembler – In memory and processes the user program. • Source program and object program.
  • 6. CISC Instruction Sets • They are not constrained to load/store architecture. • Instructions do not necessarily have to fit into a single word. • Most AL operations use two-address format. • Modern CISC processors typically do not use a three-address format.
  • 7. CISC Instruction Sets • An Add instruction of this type is • Consider again the task of adding two numbers
  • 8. CISC Instruction Sets • Contains the functionally of Load and Store instructions, with a different approach
  • 9. CISC Instruction Sets Additional Addressing Modes • Auto-increment mode • EA is the content of register; Value is incremented automatically when used. • Auto-decrement mode • Access the memory location reverse order. • First decremented and then they are used as EA. • EA is determined by the index mode using the PC in place of general purpose register – Relative Addressing.
  • 11. CISC Instruction Sets Condition Codes • Accomplished by recording the required information in individual bits, often call condition code flags. • Grouped together inside condition code register or status register.
  • 13. RISC and CISC Styles • RISC and CISC are two different styles of instruction sets. • RISC style is characterized by: • Simple addressing modes and all instruction fitting in a single word. • AL operations are performed in processor registers. • Load/Store architecture. • Fewer instructions in the instruction set, as a consequences of simple addressing modes. • Fast execution by the processing unit using techniques such as pipelining. • Programs larger in size, but more, but simpler instructions are needed to perform complex tasks.
  • 14. RISC and CISC Styles • CISC style is characterized by: • More complex addressing modes. • More complex instructions, where an instruction may span multiple words. • Many instructions that implement complex tasks. • AL operations both on memory and register operands. • Single MOV instruction. • Programs smaller in size, but fewer, but more complex instructions are needed to perform complex tasks.
  • 15. RISC and CISC Styles • Before the 1970s, all computer were of CISC type. • To simplify the development of software by making the hardware capable of performing justly complex tasks. • To move the complexity from the software level to the hardware level. • Makes the programs simpler and shorter. • Computer memory was smaller and more expensive to provide.
  • 16. RISC and CISC Styles • RISC-style designs – High performance by making the hardware simple • Instructions executed in pipelined fashion. • Move complexity from the hardware level to software level. • Sophisticated compilers were developed to optimize the code consisting of simple instructions. • The size of the code became less important as memory capacities increased.
  • 17. RISC and CISC Styles • While the RISC and CISC styles are two different approaches • Add some non-RISC instructions to a RISC processor. • To reduce the number of instructions executed, as long as the execution of these new instructions is fast.
  • 18. Encoding of Machine Instructions
  • 19. Summery • Assembly Language • CISC Instruction Sets • Characteristics of RISC • RISC and CISC Styles • Encoding of Machine Instructions
  • 20. Thank You For your Patience

Hinweis der Redaktion

  1. Machine instructions are represented by patterns of 0s and 1s. Such patterns are awkward to deal with when discussing or preparing programs. Therefore, we use symbolic names to represent the patterns.
  2. None of the locations are overwritten.
  3. In some CISC processors one operand may be in the memory but the other must be in a register.
  4. Useful for accessing successive memory location or for stack implementation.
  5. Operations performed by the processor typically generate results such as numbers that are positive, negative, or zero. The processor can maintain the information about these results for use by subsequent conditional branch instructions.
  6. Load/store architecture that does not allow direct transfers from one memory location to another; such transfers must take place via a processor register.
  7. Today, memory is inexpensive and most computers have large amounts of it.
  8. RISC-style designs emerged as an attempt to achieve very high performance by making the hardware very simple, so that instructions can be executed very quickly in pipelined fashion.
  9. In this section, we introduced the basic concept of encoding the machine instructions. Different commercial processors have instruction sets that vary in the details of implementation. Appendices B to E present the instruction sets of four processors that we have chosen as examples.