SlideShare a Scribd company logo
1 of 33
Chapter 1. Basic
Structure of Computers
Functional Units
Functional Units
                                                 Arithmetic
    Input                                            and
                                                   logic

                          Memory


    Output                                        Control



             I/O                                        Processor




       Figure 1.1.  Basic functional units of a computer.
Information Handled by a
Computer
 Instructions/machine         instructions
   Govern the transfer of information within a computer as
    well as between the computer and its I/O devices
   Specify the arithmetic and logic operations to be
    performed
   Program
 Data
   Used as operands by the instructions
   Source program
 Encoded       in binary code – 0 and 1
Memory Unit
 Storeprograms and data
 Two classes of storage
   Primary storage
   Fast
   Programs must be stored in memory while they are being executed
   Large number of semiconductor storage cells
   Processed in words
   Address
   RAM and memory access time
   Memory hierarchy – cache, main memory
   Secondary storage – larger and cheaper
Arithmetic and Logic Unit
(ALU)
 Most  computer operations are executed in
  ALU of the processor.
 Load the operands into memory – bring them
  to the processor – perform operation in ALU
  – store the result back to memory or retain in
  the processor.
 Registers

 Fast control of ALU
Control Unit
   All computer operations are controlled by the control
    unit.
   The timing signals that govern the I/O transfers are
    also generated by the control unit.
   Control unit is usually distributed throughout the
    machine instead of standing alone.
   Operations of a computer:
   Accept information in the form of programs and data through an
    input unit and store it in the memory
   Fetch the information stored in the memory, under program control,
    into an ALU, where the information is processed
   Output the processed information through an output unit
   Control all activities inside the machine through a control unit
The processor : Data Path and
Control




Two types of functional units:
   elements that operate on data values (combinational)
    elements that contain state (state elements)
Five Execution Steps
        Step name              Action for R-type         Action for Memory-        Action for    Action for
                                 instructions          reference Instructions      branches       jumps

     Instruction fetch                                          IR = MEM[PC]
                                                                 PC = PC + 4

Instruction decode/ register                                 A = Reg[IR[25-21]]
            fetch                                            B = Reg[IR[20-16]]
                                                   ALUOut = PC + (sign extend (IR[15-0])<<2)

   Execution, address          ALUOut = A op B           ALUOut = A+sign         IF(A==B) Then   PC=PC[31-
computation, branch/jump                                 extend(IR[15-0])         PC=ALUOut      28]||(IR[25-
      completion                                                                                   0]<<2)

 Memory access or R-type       Reg[IR[15-11]] =      Load:MDR =Mem[ALUOut]
      completion                  ALUOut                       or
                                                      Store:Mem[ALUOut] = B


 Memory read completion                                Load: Reg[IR[20-16]] =
                                                               MDR
Basic Operational
       Concepts
Review
   Activity in a computer is governed by instructions.
   To perform a task, an appropriate program
    consisting of a list of instructions is stored in the
    memory.
   Individual instructions are brought from the memory
    into the processor, which executes the specified
    operations.
   Data to be used as operands are also stored in the
    memory.
A Typical Instruction
   Add LOCA, R0
   Add the operand at memory location LOCA to the
    operand in a register R0 in the processor.
   Place the sum into register R0.
   The original contents of LOCA are preserved.
   The original contents of R0 is overwritten.
   Instruction is fetched from the memory into the
    processor – the operand at LOCA is fetched and
    added to the contents of R0 – the resulting sum is
    stored in register R0.
Separate Memory Access and
ALU Operation
 Load LOCA, R1
 Add R1, R0

 Whose contents will be overwritten?
Connection Between the
Processor and the Memory
                                 Memory




           MAR                    MDR
                                                        Control

            PC                     R0

                                   R1
                                                                        Processor
            IR


                                                         ALU
                                  Rn ­   1

                             n general purpose
                                 registers




     Figure 1.2.   Connections between the processor and the  memory.
Registers
 Instruction
            register (IR)
 Program counter (PC)

 General-purpose register (R – R )
                             0   n-1

 Memory address register (MAR)
 Memory data register (MDR)
Typical Operating Steps
 Programs   reside in the memory through input
  devices
 PC is set to point to the first instruction
 The contents of PC are transferred to MAR
 A Read signal is sent to the memory
 The first instruction is read out and loaded
  into MDR
 The contents of MDR are transferred to IR
 Decode and execute the instruction
Typical Operating Steps
(Cont’)
 Get   operands for ALU
    General-purpose register
    Memory (address to MAR – Read – MDR to ALU)
 Perform  operation in ALU
 Store the result back
    To general-purpose register
    To memory (address to MAR, result to MDR – Write)
 During
       the execution, PC is
 incremented to the next instruction
Interrupt
   Normal execution of programs may be preempted if
    some device requires urgent servicing.
   The normal execution of the current program must
    be interrupted – the device raises an interrupt
    signal.
   Interrupt-service routine
   Current system information backup and restore (PC,
    general-purpose registers, control information,
    specific information)
Bus Structures
 There  are many ways to connect different
  parts inside a computer together.
 A group of lines that serves as a connecting
  path for several devices is called a bus.
 Address/data/control
Bus Structure
 Single-bus



      Input         Output              Memory        Processor




               Figure 1.3.    Single­bus structure.
Speed Issue
 Different devices have different
  transfer/operate speed.
 If the speed of bus is bounded by the slowest
  device connected to it, the efficiency will be
  very low.
 How to solve this?

 A common approach – use buffers.
Performance
Performance
 The most important measure of a computer is
  how quickly it can execute programs.
 Three factors affect performance:
   Hardware design
   Instruction set
   Compiler
Performance
   Processor time to execute a program depends on the hardware
    involved in the execution of individual machine instructions.


              Main                        Cache
             memory                      memory      Processor




                                 Bus



                   Figure 1.5.    The processor cache.
Performance
 The  processor and a relatively small cache
  memory can be fabricated on a single
  integrated circuit chip.
 Speed

 Cost

 Memory management
Processor Clock
 Clock, clock cycle, and clock rate
 The execution of each instruction is divided
  into several steps, each of which completes
  in one clock cycle.
 Hertz – cycles per second
Basic Performance Equation
   T – processor time required to execute a program that has been
    prepared in high-level language
   N – number of actual machine language instructions needed to
    complete the execution (note: loop)
   S – average number of basic steps needed to execute one
    machine instruction. Each step completes in one clock cycle
   R – clock rate
   Note: these are not independent to each other

                              N×S
                           T=
                               R
       How to improve T?
Pipeline and Superscalar
Operation
   Instructions are not necessarily executed one after
    another.
   The value of S doesn’t have to be the number of
    clock cycles to execute one instruction.
   Pipelining – overlapping the execution of successive
    instructions.
   Add R1, R2, R3
   Superscalar operation – multiple instruction
    pipelines are implemented in the processor.
   Goal – reduce S (could become <1!)
Clock Rate
 Increase    clock rate
   Improve the integrated-circuit (IC) technology to make
    the circuits faster
   Reduce the amount of processing done in one basic step
    (however, this may increase the number of basic steps
    needed)
 Increases   in R that are entirely caused by
    improvements in IC technology affect all
    aspects of the processor’s operation equally
    except the time to access the main memory.
CISC and RISC
 Tradeoffbetween N and S
 A key consideration is the use of pipelining
   S is close to 1 even though the number of basic steps
    per instruction may be considerably larger
   It is much easier to implement efficient pipelining in
    processor with simple instruction sets
 Reduced Instruction Set Computers (RISC)
 Complex Instruction Set Computers (CISC)
Compiler
   A compiler translates a high-level language program
    into a sequence of machine instructions.
   To reduce N, we need a suitable machine
    instruction set and a compiler that makes good use
    of it.
   Goal – reduce N×S
   A compiler may not be designed for a specific
    processor; however, a high-quality compiler is
    usually designed for, and with, a specific processor.
Performance Measurement
   T is difficult to compute.
   Measure computer performance using benchmark programs.
   System Performance Evaluation Corporation (SPEC) selects and
    publishes representative application programs for different application
    domains, together with test results for many commercially available
    computers.
   Compile and run (no simulation)
   Reference computer

              Running time on the reference computer
SPEC rating =
              Running time on the computer under test
                         n            1
SPEC rating = (∏SPECi )               n

                        i =1
Multiprocessors and
Multicomputers
   Multiprocessor computer
   Execute a number of different application tasks in parallel
   Execute subtasks of a single large task in parallel
   All processors have access to all of the memory – shared-memory
    multiprocessor
   Cost – processors, memory units, complex interconnection networks
   Multicomputers
   Each computer only have access to its own memory
   Exchange message via a communication network – message-
    passing multicomputers

More Related Content

What's hot

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer ArchitectureYong Heui Cho
 
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTREBASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTREjatin batra
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.CS_GDRCST
 
Computer Structure Slides
Computer Structure SlidesComputer Structure Slides
Computer Structure Slidesiarthur
 
Introduction to Embedded System: Chapter 2 (4th portion)
Introduction to Embedded System:  Chapter 2 (4th portion)Introduction to Embedded System:  Chapter 2 (4th portion)
Introduction to Embedded System: Chapter 2 (4th portion)Moe Moe Myint
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of compgaurav jain
 
Unit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionUnit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionDr. Pankaj Zope
 
Flynns classification
Flynns classificationFlynns classification
Flynns classificationYasir Khan
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unitchidabdu
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An IntroductionDilum Bandara
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Moe Moe Myint
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsHariharan Ganesan
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRishabha Garg
 

What's hot (20)

Basic Computer Architecture
Basic Computer ArchitectureBasic Computer Architecture
Basic Computer Architecture
 
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTREBASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Storage Structure in OS
Storage Structure in OSStorage Structure in OS
Storage Structure in OS
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Computer Structure Slides
Computer Structure SlidesComputer Structure Slides
Computer Structure Slides
 
peripheral interfacing
peripheral interfacingperipheral interfacing
peripheral interfacing
 
Pipelining slides
Pipelining slides Pipelining slides
Pipelining slides
 
Introduction to Embedded System: Chapter 2 (4th portion)
Introduction to Embedded System:  Chapter 2 (4th portion)Introduction to Embedded System:  Chapter 2 (4th portion)
Introduction to Embedded System: Chapter 2 (4th portion)
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of comp
 
Unit II Arm7 Thumb Instruction
Unit II Arm7 Thumb InstructionUnit II Arm7 Thumb Instruction
Unit II Arm7 Thumb Instruction
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Input & Output
Input & OutputInput & Output
Input & Output
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unit
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An Introduction
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
Memory management
Memory managementMemory management
Memory management
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 

Viewers also liked

Computer Structures
Computer StructuresComputer Structures
Computer Structuresguestfc2f62
 
Chapter 1 basic structure of computers
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computersGurpreet Singh
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computerZTE Nepal
 
2 history of computers
2 history of computers2 history of computers
2 history of computersVedpal Yadav
 
Model View Controller(MVC)
Model View Controller(MVC)Model View Controller(MVC)
Model View Controller(MVC)Himanshu Chawla
 
01 basic computer structure(20070122)
01 basic computer structure(20070122)01 basic computer structure(20070122)
01 basic computer structure(20070122)Prasanna Das
 
Wikipedia presentation full
Wikipedia presentation fullWikipedia presentation full
Wikipedia presentation fullRanjith Siji
 
iOS Memory Management Basics
iOS Memory Management BasicsiOS Memory Management Basics
iOS Memory Management BasicsBilue
 
Bai giang cau truc may tinh
Bai giang cau truc may tinhBai giang cau truc may tinh
Bai giang cau truc may tinhDong Van
 
Fundamentals of Computers & Information System
Fundamentals of Computers & Information System  Fundamentals of Computers & Information System
Fundamentals of Computers & Information System Hitesh Srivastava
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 
Assemble a desktop pc
Assemble a desktop pcAssemble a desktop pc
Assemble a desktop pcRajat Gupta
 
Accounting information system
Accounting information systemAccounting information system
Accounting information systemSAKET KASHYAP
 
Computer networking wire color powerpoint templates
Computer networking wire color powerpoint templatesComputer networking wire color powerpoint templates
Computer networking wire color powerpoint templateshttp://www.slideworld.com/
 
Characteristics of a computer
Characteristics of a computerCharacteristics of a computer
Characteristics of a computerSulaman Jamil
 
All about shortcut keys
All about shortcut keysAll about shortcut keys
All about shortcut keysNilabh Verma
 

Viewers also liked (20)

Computer Structures
Computer StructuresComputer Structures
Computer Structures
 
Chapter 1 basic structure of computers
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computers
 
Block diagram of a computer
Block diagram of a computerBlock diagram of a computer
Block diagram of a computer
 
2 history of computers
2 history of computers2 history of computers
2 history of computers
 
Model View Controller(MVC)
Model View Controller(MVC)Model View Controller(MVC)
Model View Controller(MVC)
 
01 basic computer structure(20070122)
01 basic computer structure(20070122)01 basic computer structure(20070122)
01 basic computer structure(20070122)
 
Wikipedia presentation full
Wikipedia presentation fullWikipedia presentation full
Wikipedia presentation full
 
Use of Keyboard Function keys (F1 - F12) -hmftj
Use of Keyboard Function keys (F1 - F12) -hmftjUse of Keyboard Function keys (F1 - F12) -hmftj
Use of Keyboard Function keys (F1 - F12) -hmftj
 
iOS Memory Management Basics
iOS Memory Management BasicsiOS Memory Management Basics
iOS Memory Management Basics
 
Why we use computer and need it
Why we use computer and need itWhy we use computer and need it
Why we use computer and need it
 
Bai giang cau truc may tinh
Bai giang cau truc may tinhBai giang cau truc may tinh
Bai giang cau truc may tinh
 
Fundamentals of Computers & Information System
Fundamentals of Computers & Information System  Fundamentals of Computers & Information System
Fundamentals of Computers & Information System
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Assemble a desktop pc
Assemble a desktop pcAssemble a desktop pc
Assemble a desktop pc
 
Internal audit
Internal auditInternal audit
Internal audit
 
Accounting information system
Accounting information systemAccounting information system
Accounting information system
 
Computer networking wire color powerpoint templates
Computer networking wire color powerpoint templatesComputer networking wire color powerpoint templates
Computer networking wire color powerpoint templates
 
Keyboard Shortcuts
Keyboard ShortcutsKeyboard Shortcuts
Keyboard Shortcuts
 
Characteristics of a computer
Characteristics of a computerCharacteristics of a computer
Characteristics of a computer
 
All about shortcut keys
All about shortcut keysAll about shortcut keys
All about shortcut keys
 

Similar to basic structure of computers

comp. org Chapter 1
comp. org Chapter 1comp. org Chapter 1
comp. org Chapter 1Rajat Sharma
 
Basic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteAniket Bhute
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computersKumar
 
chapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptsandeepPingili1
 
chapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.pptchapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.pptKarrarIbrahimAbdAlam
 
Chapter1 basic structure of computers
Chapter1  basic structure of computersChapter1  basic structure of computers
Chapter1 basic structure of computersjismymathew
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.pptSoulReaper21
 
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaabms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaaarshadahmedkkp
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basicsLucky Sithole
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma Manoharan Ragavan
 
COMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESCOMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESDr.MAYA NAYAK
 
chapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxchapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxjanani603976
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptRuhul Amin
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer ArchitectureVolodymyr Ushenko
 

Similar to basic structure of computers (20)

comp. org Chapter 1
comp. org Chapter 1comp. org Chapter 1
comp. org Chapter 1
 
Basic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhute
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computers
 
chapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.ppt
 
chapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.pptchapter1-basicstructureofcomputers.ppt
chapter1-basicstructureofcomputers.ppt
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
 
Chapter1 basic structure of computers
Chapter1  basic structure of computersChapter1  basic structure of computers
Chapter1 basic structure of computers
 
Computer organisation Module 1.ppt
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
 
lecture 1(1).ppt
lecture 1(1).pptlecture 1(1).ppt
lecture 1(1).ppt
 
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaabms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
bms_complete_co_ppt.aaaaaaaaaaaaaaaaaaaaa
 
Computer Organization and Architechuture basics
Computer Organization and Architechuture basicsComputer Organization and Architechuture basics
Computer Organization and Architechuture basics
 
unit-i.pdf
unit-i.pdfunit-i.pdf
unit-i.pdf
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
CAO.pptx
CAO.pptxCAO.pptx
CAO.pptx
 
COMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESCOMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTES
 
chapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptxchapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptx
 
Computer organization
Computer organizationComputer organization
Computer organization
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
 
Lecture1 - Computer Architecture
Lecture1 - Computer ArchitectureLecture1 - Computer Architecture
Lecture1 - Computer Architecture
 
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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 17Celine George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
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.pptxheathfieldcps1
 
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...Poonam Aher Patil
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
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.MaryamAhmad92
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).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
 
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...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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.
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

basic structure of computers

  • 3. Functional Units Arithmetic Input and logic Memory Output Control I/O Processor Figure 1.1.  Basic functional units of a computer.
  • 4. Information Handled by a Computer  Instructions/machine instructions  Govern the transfer of information within a computer as well as between the computer and its I/O devices  Specify the arithmetic and logic operations to be performed  Program  Data  Used as operands by the instructions  Source program  Encoded in binary code – 0 and 1
  • 5. Memory Unit  Storeprograms and data  Two classes of storage  Primary storage  Fast  Programs must be stored in memory while they are being executed  Large number of semiconductor storage cells  Processed in words  Address  RAM and memory access time  Memory hierarchy – cache, main memory  Secondary storage – larger and cheaper
  • 6. Arithmetic and Logic Unit (ALU)  Most computer operations are executed in ALU of the processor.  Load the operands into memory – bring them to the processor – perform operation in ALU – store the result back to memory or retain in the processor.  Registers  Fast control of ALU
  • 7. Control Unit  All computer operations are controlled by the control unit.  The timing signals that govern the I/O transfers are also generated by the control unit.  Control unit is usually distributed throughout the machine instead of standing alone.  Operations of a computer:  Accept information in the form of programs and data through an input unit and store it in the memory  Fetch the information stored in the memory, under program control, into an ALU, where the information is processed  Output the processed information through an output unit  Control all activities inside the machine through a control unit
  • 8. The processor : Data Path and Control Two types of functional units: elements that operate on data values (combinational)  elements that contain state (state elements)
  • 9. Five Execution Steps Step name Action for R-type Action for Memory- Action for Action for instructions reference Instructions branches jumps Instruction fetch IR = MEM[PC] PC = PC + 4 Instruction decode/ register A = Reg[IR[25-21]] fetch B = Reg[IR[20-16]] ALUOut = PC + (sign extend (IR[15-0])<<2) Execution, address ALUOut = A op B ALUOut = A+sign IF(A==B) Then PC=PC[31- computation, branch/jump extend(IR[15-0]) PC=ALUOut 28]||(IR[25- completion 0]<<2) Memory access or R-type Reg[IR[15-11]] = Load:MDR =Mem[ALUOut] completion ALUOut or Store:Mem[ALUOut] = B Memory read completion Load: Reg[IR[20-16]] = MDR
  • 10. Basic Operational Concepts
  • 11. Review  Activity in a computer is governed by instructions.  To perform a task, an appropriate program consisting of a list of instructions is stored in the memory.  Individual instructions are brought from the memory into the processor, which executes the specified operations.  Data to be used as operands are also stored in the memory.
  • 12. A Typical Instruction  Add LOCA, R0  Add the operand at memory location LOCA to the operand in a register R0 in the processor.  Place the sum into register R0.  The original contents of LOCA are preserved.  The original contents of R0 is overwritten.  Instruction is fetched from the memory into the processor – the operand at LOCA is fetched and added to the contents of R0 – the resulting sum is stored in register R0.
  • 13. Separate Memory Access and ALU Operation  Load LOCA, R1  Add R1, R0  Whose contents will be overwritten?
  • 14. Connection Between the Processor and the Memory Memory MAR MDR Control PC R0 R1 Processor IR ALU Rn ­ 1 n general purpose registers Figure 1.2.   Connections between the processor and the  memory.
  • 15. Registers  Instruction register (IR)  Program counter (PC)  General-purpose register (R – R ) 0 n-1  Memory address register (MAR)  Memory data register (MDR)
  • 16. Typical Operating Steps  Programs reside in the memory through input devices  PC is set to point to the first instruction  The contents of PC are transferred to MAR  A Read signal is sent to the memory  The first instruction is read out and loaded into MDR  The contents of MDR are transferred to IR  Decode and execute the instruction
  • 17. Typical Operating Steps (Cont’)  Get operands for ALU  General-purpose register  Memory (address to MAR – Read – MDR to ALU)  Perform operation in ALU  Store the result back  To general-purpose register  To memory (address to MAR, result to MDR – Write)  During the execution, PC is incremented to the next instruction
  • 18. Interrupt  Normal execution of programs may be preempted if some device requires urgent servicing.  The normal execution of the current program must be interrupted – the device raises an interrupt signal.  Interrupt-service routine  Current system information backup and restore (PC, general-purpose registers, control information, specific information)
  • 19. Bus Structures  There are many ways to connect different parts inside a computer together.  A group of lines that serves as a connecting path for several devices is called a bus.  Address/data/control
  • 20. Bus Structure  Single-bus Input Output Memory Processor Figure 1.3.    Single­bus structure.
  • 21. Speed Issue  Different devices have different transfer/operate speed.  If the speed of bus is bounded by the slowest device connected to it, the efficiency will be very low.  How to solve this?  A common approach – use buffers.
  • 23. Performance  The most important measure of a computer is how quickly it can execute programs.  Three factors affect performance:  Hardware design  Instruction set  Compiler
  • 24. Performance  Processor time to execute a program depends on the hardware involved in the execution of individual machine instructions. Main Cache memory memory Processor Bus Figure 1.5. The processor cache.
  • 25. Performance  The processor and a relatively small cache memory can be fabricated on a single integrated circuit chip.  Speed  Cost  Memory management
  • 26. Processor Clock  Clock, clock cycle, and clock rate  The execution of each instruction is divided into several steps, each of which completes in one clock cycle.  Hertz – cycles per second
  • 27. Basic Performance Equation  T – processor time required to execute a program that has been prepared in high-level language  N – number of actual machine language instructions needed to complete the execution (note: loop)  S – average number of basic steps needed to execute one machine instruction. Each step completes in one clock cycle  R – clock rate  Note: these are not independent to each other N×S T= R How to improve T?
  • 28. Pipeline and Superscalar Operation  Instructions are not necessarily executed one after another.  The value of S doesn’t have to be the number of clock cycles to execute one instruction.  Pipelining – overlapping the execution of successive instructions.  Add R1, R2, R3  Superscalar operation – multiple instruction pipelines are implemented in the processor.  Goal – reduce S (could become <1!)
  • 29. Clock Rate  Increase clock rate  Improve the integrated-circuit (IC) technology to make the circuits faster  Reduce the amount of processing done in one basic step (however, this may increase the number of basic steps needed)  Increases in R that are entirely caused by improvements in IC technology affect all aspects of the processor’s operation equally except the time to access the main memory.
  • 30. CISC and RISC  Tradeoffbetween N and S  A key consideration is the use of pipelining  S is close to 1 even though the number of basic steps per instruction may be considerably larger  It is much easier to implement efficient pipelining in processor with simple instruction sets  Reduced Instruction Set Computers (RISC)  Complex Instruction Set Computers (CISC)
  • 31. Compiler  A compiler translates a high-level language program into a sequence of machine instructions.  To reduce N, we need a suitable machine instruction set and a compiler that makes good use of it.  Goal – reduce N×S  A compiler may not be designed for a specific processor; however, a high-quality compiler is usually designed for, and with, a specific processor.
  • 32. Performance Measurement  T is difficult to compute.  Measure computer performance using benchmark programs.  System Performance Evaluation Corporation (SPEC) selects and publishes representative application programs for different application domains, together with test results for many commercially available computers.  Compile and run (no simulation)  Reference computer Running time on the reference computer SPEC rating = Running time on the computer under test n 1 SPEC rating = (∏SPECi ) n i =1
  • 33. Multiprocessors and Multicomputers  Multiprocessor computer  Execute a number of different application tasks in parallel  Execute subtasks of a single large task in parallel  All processors have access to all of the memory – shared-memory multiprocessor  Cost – processors, memory units, complex interconnection networks  Multicomputers  Each computer only have access to its own memory  Exchange message via a communication network – message- passing multicomputers