SlideShare a Scribd company logo
1 of 56
Badrinath M. Kadam
Department of Computer Science,
 Yogeshwari Colloge, Ambajogai.
Electronic                                                          Desired
 Devices                                                            Behavior


 … a very wide semantic gap between the intended behavior and the
    workings of the underlying electronic devices that will actually do all
    the work.

 The forerunners to modern computers attempted to assemble the raw
    devices (mechanical, electrical, or electronic) into a separate purpose-
    built machine for each desired behavior.

http://www.badrinathkadam.com
computer
                                            software
               organization


                                  General
Electronic                                               Desired
                                 Purpose
 Devices                                                 Behavior
                                 Computer




  A general purpose computer is like an island that helps span
  the gap between the desired behavior (application) and the
  basic building blocks (electronic devices).



 http://www.badrinathkadam.com
   Computer Architecture = ISA + MO

      Instruction Set Architecture
          What the executable can “see” as underlying
           hardware
          Logical View


      Machine Organization
          How the hardware implements ISA ?
          Physical View
http://www.badrinathkadam.com
   Early 1990’s Apple switched instruction set
       architecture of the Macintosh
          From Motorola 68000-based machines
          To PowerPC architecture

      Intel 80x86 Family: many implementations of
       same architecture
          program written in 1978 for 8086 can be run on latest
           Pentium chip



http://www.badrinathkadam.com
Technology              Programming
                                           Languages

         Applications
                                 Computer
                                Architecture



                Operating
                Systems
                                                  History


http://www.badrinathkadam.com
software



                                instruction set



     hardware




                Examples: 80x86 50,000,000 vs. MIPS 5500,000 ???


http://www.badrinathkadam.com
Designing Computers
  • All computers more or less based on the same
    basic design, the Von Neumann Architecture!




http://www.badrinathkadam.com
The Von Neumann Architecture
  •     Model for designing and building computers,
        based on the following three characteristics:
      1) The computer consists of four main sub-systems:
           •   Memory
           •   ALU (Arithmetic/Logic Unit)
           •   Control Unit
           •   Input / Output System (I/O)
      2) Program is stored in memory during execution.
      3) Program instructions are executed sequentially.

http://www.badrinathkadam.com
The Von Neumann Architecture
                                                            Bus


                                        Processor (CPU)

                Memory                                         Input-Output
                                           Control Unit



                                              ALU
                                                          Communicate with
    Store data and program
                                                          "outside world", e.g.
                                                          • Screen
        Execute program                                   • Keyboard
                                                          • Storage devices
                                                          • ...
                     Do arithmetic/logic operations
                     requested by program
http://www.badrinathkadam.com
Simplified Architecture




                                     Source: Wikipedia
http://www.badrinathkadam.com
http://www.badrinathkadam.com
Memory Subsystem
  • Memory, also called RAM (Random Access
    Memory),
      – Consists of many memory cells (storage units) of a fixed size.
        Each cell has an address associated with it: 0, 1, …
      – All accesses to memory are to a specified address.
        A cell is the minimum unit of access (fetch/store a complete
        cell).
      – The time it takes to fetch/store a cell is the same for all cells.
  • When the computer is running, both
      – Program
      – Data (variables)
     are stored in the memory.
http://www.badrinathkadam.com
RAM
                                                       N
 • Need to distinguish between
                                            0000000000000001
     – the address of a memory cell and
                                                                 1 bit
       the content of a memory cell
                                                 0
 • Memory width (W):
     – How many bits is each memory              1
       cell, typically one byte (=8 bits)        2
 • Address width (N):                                              2N
     – How many bits used to represent
       each address, determines the                        ...
       maximum memory size = address
       space
     – If address width is N-bits, then         2N-1
       address space is 2N (0,1,...,2N-1)
                                                           W        14
http://www.badrinathkadam.com
Memory Size / Speed
    • Typical memory in a personal computer (PC):
        – 64MB - 256MB
    • Memory sizes:
        – Kilobyte (KB) = 210 =       1,024 bytes ~ 1 thousand
        – Megabyte(MB) = 220 =    1,048,576 bytes ~ 1 million
        – Gigabyte      (GB) = 230 = 1,073,741,824 bytes ~ 1
          billion
    • Memory Access Time (read from/ write to memory)
        – 50-75 nanoseconds (1 nsec. = 0.000000001 sec.)
    • RAM is
        – volatile (can only store when power is on)
        – relatively expensive
http://www.badrinathkadam.com
Operations on Memory
 • Fetch (address):
      – Fetch a copy of the content of memory cell with the specified
        address.
      – Non-destructive, copies value in memory cell.
 • Store (address, value):
      – Store the specified value into the memory cell specified by
        address.
      – Destructive, overwrites the previous value of the memory cell.
 • The memory system is interfaced via:
      – Memory Address Register (MAR)
      – Memory Data Register (MDR)
      – Fetch/Store signal
http://www.badrinathkadam.com
Structure of the Memory Subsystem
                                • Fetch(address)
                                   – Load address into MAR.
                                   – Decode the address in MAR.
                                   – Copy the content of memory cell
                                     with specified address into MDR.
                                • Store(address, value)
                                   –   Load the address into MAR.
                                   –   Load the value into MDR.
                                   –   Decode the address in MAR
                                   –   Copy the content of MDR into
                                       memory cell with the specified
                                       address.
http://www.badrinathkadam.com
Input / Output Subsystem
 • Handles devices that allow the computer system
   to:
      – Communicate and interact with the outside world
         •Screen, keyboard, printer, ...
      – Store information (mass-storage)
         •Hard-drives, floppies, CD, tapes, …
 • Mass-Storage Device Access Methods:
      – Direct Access Storage Devices (DASDs)
          •Hard-drives, floppy-disks, CD-ROMs, ...
      – Sequential Access Storage Devices (SASDs)
          •Tapes (for example, used as backup devices)
http://www.badrinathkadam.com
I/O Controllers
 • Speed of I/O devices is slow compared to RAM
    – RAM        ~ 50 nsec.
    – Hard-Drive ~ 10msec. = (10,000,000 nsec)
 • Solution:
    – I/O Controller, a special purpose processor:
          •Has a small memory buffer, and a control logic to control
          I/O device (e.g. move disk arm).
          •Sends an interrupt signal to CPU when done read/write.
      – Data transferred between RAM and memory buffer.
      – Processor free to do something else while I/O
        controller reads/writes data from/to device into I/O
        buffer.

http://www.badrinathkadam.com
Structure of the I/O Subsystem




http://www.badrinathkadam.com
The ALU Subsystem
 • The ALU (Arithmetic/Logic Unit) performs
      – mathematical operations (+, -, x, /, …)
      – logic operations (=, <, >, and, or, not, ...)
 • In today's computers integrated into the CPU
 • Consists of:
      – Circuits to do the arithmetic/logic operations.
      – Registers (fast storage units) to store intermediate
        computational results.
      – Bus that connects the two.

http://www.badrinathkadam.com
Structure of the ALU
• Registers:
   – Very fast local memory cells, that
     store operands of operations and
     intermediate results.
   – CCR (condition code register), a
     special purpose register that stores
     the result of <, = , > operations
• ALU circuitry:
   – Contains an array of circuits to do
     mathematical/logic operations.
• Bus:
   – Data path interconnecting the
     registers to the ALU circuitry.
http://www.badrinathkadam.com
The Control Unit
   • Program is stored in memory
       – as machine language instructions, in binary
   • The task of the control unit is to execute
     programs by repeatedly:
       – Fetch from memory the next instruction to be
         executed.
       – Decode it, that is, determine what is to be done.
       – Execute it by issuing the appropriate signals to
         the ALU, memory, and I/O subsystems.
       – Continues until the HALT instruction
http://www.badrinathkadam.com
Machine Language Instructions
    • A machine language instruction consists of:
        – Operation code, telling which operation to
          perform
        – Address field(s), telling the memory addresses
          of the values on which the operation works.
    • Example: ADD X, Y            (Add content of memory
      locations X and Y, and store back in memory location Y).
    • Assume: opcode for ADD is 9, and addresses X=99, Y=100
            Opcode (8 bits)     Address 1 (16 bits)   Address 2 (16 bits)

              00001001          0000000001100011       0000000001100100


http://www.badrinathkadam.com
Instruction Set Design

    • Two different approaches:
        – Reduced Instruction Set Computers (RISC)
            •Instruction set as small and simple as possible.
            •Minimizes amount of circuitry --> faster computers
        – Complex Instruction Set Computers (CISC)
            •More instructions, many very complex
            •Each instruction can do more work, but require more
            circuitry.



http://www.badrinathkadam.com
Typical Machine Instructions
    • Notation:
        – We use X, Y, Z to denote RAM cells
        – Assume only one register R (for simplicity)
        – Use English-like descriptions (should be binary)
    • Data Transfer Instructions
        – LOAD X                Load content of memory location X to R
        – STORE X               Load content of R to memory location X
        – MOVE X, Y             Copy content of memory location X to
                                loc. Y (not absolutely necessary)


http://www.badrinathkadam.com
Machine Instructions (cont.)
    • Arithmetic
        –   ADD X, Y, Z       CON(Z) = CON(X) + CON(Y)
        –   ADD X, Y          CON(Y) = CON(X) + CON(Y)
        –   ADD X             R = CON(X) + R
        –   similar instructions for other operators, e.g. SUBTR,OR, ...
    • Compare
        – COMPARE X, Y
            Compare the content of memory cell X to the content of
            memory cell Y and set the condition codes (CCR)
            accordingly.
        – E.g. If CON(X) = R then set EQ=1, GT=0, LT=0

http://www.badrinathkadam.com
Machine Instructions (cont.)
 • Branch
      – JUMP X             Load next instruction from memory loc. X
      – JUMPGT X      Load next instruction from memory loc. X
                      only if GT flag in CCR is set, otherwise load
                      statement from next sequence loc. as
                              usual.
          •JUMPEQ, JUMPLT, JUMPGE, JUMPLE,JUMPNEQ
 • Control
      – HALT               Stop program execution.


http://www.badrinathkadam.com
Example
    • Pseudo-code: Set A to B + C
    • Assuming variable:
      – A stored in memory cell 100, B stored in
        memory cell 150, C stored in memory cell 151
    • Machine language (really in binary)
        –   LOAD     150
        –   ADD      151
        –   STORE   100
        –   or
        –   (ADD    150, 151, 100)
http://www.badrinathkadam.com
Structure of the Control Unit
     • PC (Program Counter):
        – stores the address of next instruction to fetch
     • IR (Instruction Register):
        – stores the instruction fetched from memory
     • Instruction Decoder:
        – Decodes instruction and activates necessary circuitry



                       PC                 IR


               +1
                                      Instruction
                                        Decoder

http://www.badrinathkadam.com
von Neumann
Architecture
How does this all work together?

    • Program Execution:
        – PC is set to the address where the first
          program instruction is stored in memory.
        – Repeat until HALT instruction or fatal error
     Fetch instruction
     Decode instruction
     Execute instruction
      End of loop
http://www.badrinathkadam.com
Program Execution (cont.)
   • Fetch phase
       – PC --> MAR         (put address in PC into MAR)
       – Fetch signal       (signal memory to fetch value into
         MDR)
       – MDR --> IR          (move value to Instruction Register)
       – PC + 1 --> PC     (Increase address in program counter)
   • Decode Phase
       – IR -> Instruction decoder (decode instruction in IR)
       – Instruction decoder will then generate the signals to
         activate the circuitry to carry out the instruction
http://www.badrinathkadam.com
Program Execution (cont.)
    • Execute Phase
        – Differs from one instruction to the next.
    • Example:
        – LOAD X (load value in addr. X into register)
            •IR_address -> MAR
            •Fetch signal
            •MDR --> R
        – ADD X
            •left as an exercise

http://www.badrinathkadam.com
Instruction Set for Our Von Neumann Machine
  Opcode    Operation           Meaning
  0000      LOAD X              CON(X) --> R
  0001      STORE X             R --> CON(X)
  0010      CLEAR X             0 --> CON(X)
  0011      ADD X               R + CON(X) --> R
  0100      INCREMENT X         CON(X) + 1 --> CON(X)
  0101      SUBTRACT X          R - CON(X) --> R
  0101      DECREMENT X         CON(X) - 1 --> CON(X)
  0111      COMPARE X           If CON(X) > R then GT = 1 else 0
                                If CON(X) = R then EQ = 1 else 0
                                If CON(X) < R then LT = 1 else 0

  1000      JUMP X              Get next instruction from memory location X
  1001      JUMPGT X            Get next instruction from memory loc. X if GT=1
  ...       JUMPxx X            xx = LT / EQ / NEQ
  1101      IN X                Input an integer value and store in X
  1110      OUT X               Output, in decimal notation, content of mem. loc. X
  1111      HALT                Stop program execution

http://www.badrinathkadam.com
    The CPU (ALU, Control Unit, Registers)
         The Memory Subsystem (Stored Data)
         The I/O subsystem (I/O devices)
                    Address Bus
                    Data Bus                   Memory
         CPU
                                               Subsystem
                    Control Bus




                                  I/O Device
                                  Subsystem

http://www.badrinathkadam.com
   BUS - Physically a set of wires. The
       components of the Computer are connected to
       these buses.
      Address Bus
      Data Bus
      Control Bus




http://www.badrinathkadam.com
   Used to specify the address of the memory
       location to access.
      Each I/O devices has a unique address.
       (monitor, mouse, cd-rom)
      CPU reads data or instructions from other
       locations by specifying the address of its
       location.
      CPU always outputs to the address bus and
       never reads from it.

http://www.badrinathkadam.com
   Actual data is transferred via the data bus.
      When the cpu sends an address to memory, the
       memory will send data via the data bus in
       return to the cpu.




http://www.badrinathkadam.com
   Collection of individual control signals.
      Whether the cpu will read or write data.
      CPU is accessing memory or an I/O device
      Memory or I/O is ready to transfer data




http://www.badrinathkadam.com
   In today’s computers the the I/O controller
       will have an extra bus called the I/O bus.
      The I/O bus will be used to access all other I/O
       devices connected to the system.
      Example: PCI bus




http://www.badrinathkadam.com
Bus



             Processor          Memory   Devices

               Control
                                Cache     Input

               Datapath
                                         Output

               Registers



http://www.badrinathkadam.com
 Processor (CPU): the active part of the
         computer, which does all the work (data
         manipulation and decision-making).
        Datapath: portion of the processor which
         contains hardware necessary to perform all
         operations required by the computer (the
         brawn).
        Control: portion of the processor (also in
         hardware) which tells the datapath what
         needs to be done (the brain).

http://www.badrinathkadam.com
 Instruction execution        Instruction
           cycle: fetch, decode,      Fetch

           execute.                   Instruction
            Fetch: fetch next        Decode
             instruction (using PC)
                                      Operand
             from memory into IR.     Fetch
            Decode: decode the
             instruction.             Execute
            Execute: execute         Result
             instruction.             Store

                                      Next
                                      Instruction

http://www.badrinathkadam.com
 Fetch: Fetch next instruction into IR
         (Instruction Register).
          Assume each word is 4 bytes and each
           instruction is stored in a word, and that the
           memory is byte addressable.
          PC (Program Counter) contains address of next
           instruction.
                  IR  [[PC]]
                  PC [PC] + 4




http://www.badrinathkadam.com
Internal
                                                            processor bus
                                                                            Control signals
                                           PC
                                                                                 ...
                        Address line                                          Instruction
                                           MAR                                decoder and
                                                                              control logic

                                           MDR
                          Data line
                                                                              IR
                                           Y
                        Constant 4
                                  MUX                                         RO
               Select                                                              :
                                                                                   :
                        Add
     ALU                  Sub         A          B                            R(n–1)
     control                :             ALU
     lines                                           Carry-in
                          XOR
                                                                              TEMP

                                                 Z

http://www.badrinathkadam.com
   Procedure the CPU goes through to process an
       instruction.
      1. Fetch - get instruction
      2. Decode - interperate the instruction
      3. Execute - run the instruction.




http://www.badrinathkadam.com
   Address is placed at beginning of clock
          after one clock cycle the CPU asserts the read.
          Causes the memory to place its data onto the data bus.
          CLK : System Clock used to synchronize




                CLK

                Bus             Address

                Bus                   Data

                Read
http://www.badrinathkadam.com
   CPU places the Address and data on the first clock cycle.
        At the start of the second clock the CPU will assert the
         write control signal.
        This will then start memory to store data.
        After some time the write is then deasserted by the CPU
         after removing the address and data from the
         subsystem.

                      CLK

           Address Bus             Address

               Data Bus            Data


                       Read
http://www.badrinathkadam.com
   The I/O read and Write cycles are similar to
       the memory read and write.
      Memory mapped I/O : Same sequences as
       input output to read and write.
      The processor treats an I/O port as a memory
       location.
      This results in the same treatment as a memory
       access.


http://www.badrinathkadam.com
   Processor
          logic capacity: about 30% per year
          clock rate:     about 20% per year
        Memory
          DRAM capacity: about 60% per year (4x every 3 years)
          Memory speed: about 10% per year
          Cost per bit: improves about 25% per year
        Disk
          capacity: about 60% per year
          Total use of data: 100% per 9 months!
        Network Bandwidth
          Bandwidth increasing more than 100% per year!

http://www.badrinathkadam.com
Microprocessor Logic Density
       DRAM chip capacity                        100000000




              DRAM
         Year    Size
                                                  10000000
                                                                              uP-Name
                                                                                                                    R10000


         1980    64 Kb
                                                                                                                 Pentium
                                                                                                                 R4400


         1983    256 Kb
                                                                                                        i80486
                                                  1000000




                                   Transistors
         1986    1 Mb                                                                          i80386


         1989    4 Mb                              100000
                                                                                          i80286
                                                                                                   R3010

         1992    16 Mb                                                                       SU MIPS                    i80x86
                                                                                  i8086
         1996    64 Mb                              10000
                                                                                                                        M68K
                                                                                                                        MIPS

         1999    256 Mb                                                                                                 Alpha


         2002    1 Gb
                                                                      i4004

                                                     1000
                                                        1965   1970      1975     1980     1985    1990          1995      2000   2005



   °   In ~1985 the single-chip processor (32-bit) and the single-board
       computer emerged

   °    In the 2002+ timeframe, these may well look like mainframes compared
        single-chip computer (maybe 2 chips)
http://www.badrinathkadam.com
Smaller feature sizes – higher speed, density

http://www.badrinathkadam.com
Number of transistors doubles every 18 months
               (amended to 24 months)


http://www.badrinathkadam.com
• Computer Organization and Architecture, Designing
      for performance by William Stallings, Prentice Hall of
      India.
    • Modern Computer Architecture, by Morris Mano,
      Prentice Hall of India.
    • Computer Architecture and Organization by John P.
      Hayes, McGraw Hill Publishing Company.
    • Computer Organization by V. Carl Hamacher, Zvonko
      G. Vranesic, Safwat G. Zaky, McGraw Hill Publishing
      Company.


http://www.badrinathkadam.com
http://www.badrinathkadam.com

More Related Content

What's hot

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRishabha Garg
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Computer organization &amp; architecture chapter-1
Computer organization &amp; architecture chapter-1Computer organization &amp; architecture chapter-1
Computer organization &amp; architecture chapter-1Shah Rukh Rayaz
 
Motherboard and its components
Motherboard and its componentsMotherboard and its components
Motherboard and its componentsJishnu Pradeep
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationNitesh Singh
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organizationanishgoel
 
Processor organization &amp; register organization
Processor organization &amp; register organizationProcessor organization &amp; register organization
Processor organization &amp; register organizationGhanshyam Patel
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interruptsShubham Jain
 
Memory management
Memory managementMemory management
Memory managementcpjcollege
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecturefika sweety
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureVinit Raut
 
Computer architecture
Computer architectureComputer architecture
Computer architectureZuhaib Zaroon
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecturePOOJA MEHTA
 
COA-Unit 1 Introduction.pptx
COA-Unit 1 Introduction.pptxCOA-Unit 1 Introduction.pptx
COA-Unit 1 Introduction.pptxOmGadekar2
 

What's hot (20)

Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer registers
Computer registersComputer registers
Computer registers
 
Computer organization &amp; architecture chapter-1
Computer organization &amp; architecture chapter-1Computer organization &amp; architecture chapter-1
Computer organization &amp; architecture chapter-1
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Motherboard and its components
Motherboard and its componentsMotherboard and its components
Motherboard and its components
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Memory System
Memory SystemMemory System
Memory System
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Processor organization &amp; register organization
Processor organization &amp; register organizationProcessor organization &amp; register organization
Processor organization &amp; register organization
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
 
Memory management
Memory managementMemory management
Memory management
 
1 Computer Architecture
1 Computer Architecture1 Computer Architecture
1 Computer Architecture
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
computer Architecture
computer Architecturecomputer Architecture
computer Architecture
 
COA-Unit 1 Introduction.pptx
COA-Unit 1 Introduction.pptxCOA-Unit 1 Introduction.pptx
COA-Unit 1 Introduction.pptx
 

Viewers also liked

Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computersTushar B Kute
 
Ppt part 6 passive component
Ppt part 6 passive componentPpt part 6 passive component
Ppt part 6 passive componentAhmad Omar
 
Internal components of PC
Internal components of PCInternal components of PC
Internal components of PCTushar B Kute
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5Umang Gupta
 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation designSanjeev Patel
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessorGeorge Thomas
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
Electronic Components
Electronic ComponentsElectronic Components
Electronic Componentsdevikkang
 

Viewers also liked (9)

Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Ppt part 6 passive component
Ppt part 6 passive componentPpt part 6 passive component
Ppt part 6 passive component
 
Internal components of PC
Internal components of PCInternal components of PC
Internal components of PC
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5
 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation design
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Ntroduction to computer architecture and organization
Ntroduction to computer architecture and organizationNtroduction to computer architecture and organization
Ntroduction to computer architecture and organization
 
Electronic Components
Electronic ComponentsElectronic Components
Electronic Components
 

Similar to Computer Architecture and organization

digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital componentRai University
 
Embedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_MicrocontrollersEmbedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_Microcontrollersdundappabhangari
 
PC hardware components ppt slide_week2.ppt
PC hardware components ppt slide_week2.pptPC hardware components ppt slide_week2.ppt
PC hardware components ppt slide_week2.pptvimala elumalai
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Designoudesign
 
Presentacion pujol
Presentacion pujolPresentacion pujol
Presentacion pujolDylan Real G
 
Bca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentBca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentRai University
 
Intro to computer system
Intro to computer systemIntro to computer system
Intro to computer systembenchhood
 
B.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentB.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentRai University
 
hardware software basics
hardware software basicshardware software basics
hardware software basicsDeepa Rani
 
Short_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.pptShort_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.pptNaveeN547338
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation pptchandkec
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of ComputersAnkur Kumar
 

Similar to Computer Architecture and organization (20)

108week2
108week2108week2
108week2
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
Embedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_MicrocontrollersEmbedded_System_wireless_Technolgy_with_Microcontrollers
Embedded_System_wireless_Technolgy_with_Microcontrollers
 
PC hardware components ppt slide_week2.ppt
PC hardware components ppt slide_week2.pptPC hardware components ppt slide_week2.ppt
PC hardware components ppt slide_week2.ppt
 
12429908.ppt
12429908.ppt12429908.ppt
12429908.ppt
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
 
Presentacion pujol
Presentacion pujolPresentacion pujol
Presentacion pujol
 
Microcontroller
Microcontroller Microcontroller
Microcontroller
 
lb.pptx
lb.pptxlb.pptx
lb.pptx
 
Bca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital componentBca 2nd sem-u-1.2 digital logic circuits, digital component
Bca 2nd sem-u-1.2 digital logic circuits, digital component
 
Intro to computer system
Intro to computer systemIntro to computer system
Intro to computer system
 
B.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital componentB.sc cs-ii -u-1.2 digital logic circuits, digital component
B.sc cs-ii -u-1.2 digital logic circuits, digital component
 
Computer Hardware
Computer HardwareComputer Hardware
Computer Hardware
 
Lecture 02 hardware
Lecture 02 hardwareLecture 02 hardware
Lecture 02 hardware
 
hardware software basics
hardware software basicshardware software basics
hardware software basics
 
MODULE 2.pptx
MODULE 2.pptxMODULE 2.pptx
MODULE 2.pptx
 
Short_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.pptShort_Term_Course_on_Phoenix_and_its_App.ppt
Short_Term_Course_on_Phoenix_and_its_App.ppt
 
Computer organisation ppt
Computer organisation pptComputer organisation ppt
Computer organisation ppt
 
Fundamentals of Computers
Fundamentals of ComputersFundamentals of Computers
Fundamentals of Computers
 
Basic Computer 208 part 2
Basic Computer 208 part 2 Basic Computer 208 part 2
Basic Computer 208 part 2
 

Recently uploaded

(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)kojalkojal131
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...Suhani Kapoor
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Call Girls in Nagpur High Profile
 
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...Call Girls in Nagpur High Profile
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样qaffana
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一ga6c6bdl
 
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...Pooja Nehwal
 
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...Suhani Kapoor
 
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一ga6c6bdl
 
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...Pooja Nehwal
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...nagunakhan
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...Pooja Nehwal
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...Call Girls in Nagpur High Profile
 
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Pooja Nehwal
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaUnited Arab Emirates
 
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | DelhiFULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhisoniya singh
 

Recently uploaded (20)

(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
 
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
Call Girls in Thane 9892124323, Vashi cAll girls Serivces Juhu Escorts, powai...
 
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
VIP Call Girls Hitech City ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With R...
 
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一
定制宾州州立大学毕业证(PSU毕业证) 成绩单留信学历认证原版一比一
 
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
🔝 9953056974🔝 Delhi Call Girls in Ajmeri Gate
 
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...
9892124323, Call Girl in Juhu Call Girls Services (Rate ₹8.5K) 24×7 with Hote...
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
 
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
 
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | DelhiFULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
 

Computer Architecture and organization

  • 1. Badrinath M. Kadam Department of Computer Science, Yogeshwari Colloge, Ambajogai.
  • 2. Electronic Desired Devices Behavior … a very wide semantic gap between the intended behavior and the workings of the underlying electronic devices that will actually do all the work. The forerunners to modern computers attempted to assemble the raw devices (mechanical, electrical, or electronic) into a separate purpose- built machine for each desired behavior. http://www.badrinathkadam.com
  • 3. computer software organization General Electronic Desired Purpose Devices Behavior Computer A general purpose computer is like an island that helps span the gap between the desired behavior (application) and the basic building blocks (electronic devices). http://www.badrinathkadam.com
  • 4. Computer Architecture = ISA + MO  Instruction Set Architecture  What the executable can “see” as underlying hardware  Logical View  Machine Organization  How the hardware implements ISA ?  Physical View http://www.badrinathkadam.com
  • 5. Early 1990’s Apple switched instruction set architecture of the Macintosh  From Motorola 68000-based machines  To PowerPC architecture  Intel 80x86 Family: many implementations of same architecture  program written in 1978 for 8086 can be run on latest Pentium chip http://www.badrinathkadam.com
  • 6. Technology Programming Languages Applications Computer Architecture Operating Systems History http://www.badrinathkadam.com
  • 7. software instruction set hardware Examples: 80x86 50,000,000 vs. MIPS 5500,000 ??? http://www.badrinathkadam.com
  • 8. Designing Computers • All computers more or less based on the same basic design, the Von Neumann Architecture! http://www.badrinathkadam.com
  • 9. The Von Neumann Architecture • Model for designing and building computers, based on the following three characteristics: 1) The computer consists of four main sub-systems: • Memory • ALU (Arithmetic/Logic Unit) • Control Unit • Input / Output System (I/O) 2) Program is stored in memory during execution. 3) Program instructions are executed sequentially. http://www.badrinathkadam.com
  • 10. The Von Neumann Architecture Bus Processor (CPU) Memory Input-Output Control Unit ALU Communicate with Store data and program "outside world", e.g. • Screen Execute program • Keyboard • Storage devices • ... Do arithmetic/logic operations requested by program http://www.badrinathkadam.com
  • 11. Simplified Architecture Source: Wikipedia http://www.badrinathkadam.com
  • 13. Memory Subsystem • Memory, also called RAM (Random Access Memory), – Consists of many memory cells (storage units) of a fixed size. Each cell has an address associated with it: 0, 1, … – All accesses to memory are to a specified address. A cell is the minimum unit of access (fetch/store a complete cell). – The time it takes to fetch/store a cell is the same for all cells. • When the computer is running, both – Program – Data (variables) are stored in the memory. http://www.badrinathkadam.com
  • 14. RAM N • Need to distinguish between 0000000000000001 – the address of a memory cell and 1 bit the content of a memory cell 0 • Memory width (W): – How many bits is each memory 1 cell, typically one byte (=8 bits) 2 • Address width (N): 2N – How many bits used to represent each address, determines the ... maximum memory size = address space – If address width is N-bits, then 2N-1 address space is 2N (0,1,...,2N-1) W 14 http://www.badrinathkadam.com
  • 15. Memory Size / Speed • Typical memory in a personal computer (PC): – 64MB - 256MB • Memory sizes: – Kilobyte (KB) = 210 = 1,024 bytes ~ 1 thousand – Megabyte(MB) = 220 = 1,048,576 bytes ~ 1 million – Gigabyte (GB) = 230 = 1,073,741,824 bytes ~ 1 billion • Memory Access Time (read from/ write to memory) – 50-75 nanoseconds (1 nsec. = 0.000000001 sec.) • RAM is – volatile (can only store when power is on) – relatively expensive http://www.badrinathkadam.com
  • 16. Operations on Memory • Fetch (address): – Fetch a copy of the content of memory cell with the specified address. – Non-destructive, copies value in memory cell. • Store (address, value): – Store the specified value into the memory cell specified by address. – Destructive, overwrites the previous value of the memory cell. • The memory system is interfaced via: – Memory Address Register (MAR) – Memory Data Register (MDR) – Fetch/Store signal http://www.badrinathkadam.com
  • 17. Structure of the Memory Subsystem • Fetch(address) – Load address into MAR. – Decode the address in MAR. – Copy the content of memory cell with specified address into MDR. • Store(address, value) – Load the address into MAR. – Load the value into MDR. – Decode the address in MAR – Copy the content of MDR into memory cell with the specified address. http://www.badrinathkadam.com
  • 18. Input / Output Subsystem • Handles devices that allow the computer system to: – Communicate and interact with the outside world •Screen, keyboard, printer, ... – Store information (mass-storage) •Hard-drives, floppies, CD, tapes, … • Mass-Storage Device Access Methods: – Direct Access Storage Devices (DASDs) •Hard-drives, floppy-disks, CD-ROMs, ... – Sequential Access Storage Devices (SASDs) •Tapes (for example, used as backup devices) http://www.badrinathkadam.com
  • 19. I/O Controllers • Speed of I/O devices is slow compared to RAM – RAM ~ 50 nsec. – Hard-Drive ~ 10msec. = (10,000,000 nsec) • Solution: – I/O Controller, a special purpose processor: •Has a small memory buffer, and a control logic to control I/O device (e.g. move disk arm). •Sends an interrupt signal to CPU when done read/write. – Data transferred between RAM and memory buffer. – Processor free to do something else while I/O controller reads/writes data from/to device into I/O buffer. http://www.badrinathkadam.com
  • 20. Structure of the I/O Subsystem http://www.badrinathkadam.com
  • 21. The ALU Subsystem • The ALU (Arithmetic/Logic Unit) performs – mathematical operations (+, -, x, /, …) – logic operations (=, <, >, and, or, not, ...) • In today's computers integrated into the CPU • Consists of: – Circuits to do the arithmetic/logic operations. – Registers (fast storage units) to store intermediate computational results. – Bus that connects the two. http://www.badrinathkadam.com
  • 22. Structure of the ALU • Registers: – Very fast local memory cells, that store operands of operations and intermediate results. – CCR (condition code register), a special purpose register that stores the result of <, = , > operations • ALU circuitry: – Contains an array of circuits to do mathematical/logic operations. • Bus: – Data path interconnecting the registers to the ALU circuitry. http://www.badrinathkadam.com
  • 23. The Control Unit • Program is stored in memory – as machine language instructions, in binary • The task of the control unit is to execute programs by repeatedly: – Fetch from memory the next instruction to be executed. – Decode it, that is, determine what is to be done. – Execute it by issuing the appropriate signals to the ALU, memory, and I/O subsystems. – Continues until the HALT instruction http://www.badrinathkadam.com
  • 24. Machine Language Instructions • A machine language instruction consists of: – Operation code, telling which operation to perform – Address field(s), telling the memory addresses of the values on which the operation works. • Example: ADD X, Y (Add content of memory locations X and Y, and store back in memory location Y). • Assume: opcode for ADD is 9, and addresses X=99, Y=100 Opcode (8 bits) Address 1 (16 bits) Address 2 (16 bits) 00001001 0000000001100011 0000000001100100 http://www.badrinathkadam.com
  • 25. Instruction Set Design • Two different approaches: – Reduced Instruction Set Computers (RISC) •Instruction set as small and simple as possible. •Minimizes amount of circuitry --> faster computers – Complex Instruction Set Computers (CISC) •More instructions, many very complex •Each instruction can do more work, but require more circuitry. http://www.badrinathkadam.com
  • 26. Typical Machine Instructions • Notation: – We use X, Y, Z to denote RAM cells – Assume only one register R (for simplicity) – Use English-like descriptions (should be binary) • Data Transfer Instructions – LOAD X Load content of memory location X to R – STORE X Load content of R to memory location X – MOVE X, Y Copy content of memory location X to loc. Y (not absolutely necessary) http://www.badrinathkadam.com
  • 27. Machine Instructions (cont.) • Arithmetic – ADD X, Y, Z CON(Z) = CON(X) + CON(Y) – ADD X, Y CON(Y) = CON(X) + CON(Y) – ADD X R = CON(X) + R – similar instructions for other operators, e.g. SUBTR,OR, ... • Compare – COMPARE X, Y Compare the content of memory cell X to the content of memory cell Y and set the condition codes (CCR) accordingly. – E.g. If CON(X) = R then set EQ=1, GT=0, LT=0 http://www.badrinathkadam.com
  • 28. Machine Instructions (cont.) • Branch – JUMP X Load next instruction from memory loc. X – JUMPGT X Load next instruction from memory loc. X only if GT flag in CCR is set, otherwise load statement from next sequence loc. as usual. •JUMPEQ, JUMPLT, JUMPGE, JUMPLE,JUMPNEQ • Control – HALT Stop program execution. http://www.badrinathkadam.com
  • 29. Example • Pseudo-code: Set A to B + C • Assuming variable: – A stored in memory cell 100, B stored in memory cell 150, C stored in memory cell 151 • Machine language (really in binary) – LOAD 150 – ADD 151 – STORE 100 – or – (ADD 150, 151, 100) http://www.badrinathkadam.com
  • 30. Structure of the Control Unit • PC (Program Counter): – stores the address of next instruction to fetch • IR (Instruction Register): – stores the instruction fetched from memory • Instruction Decoder: – Decodes instruction and activates necessary circuitry PC IR +1 Instruction Decoder http://www.badrinathkadam.com
  • 32. How does this all work together? • Program Execution: – PC is set to the address where the first program instruction is stored in memory. – Repeat until HALT instruction or fatal error Fetch instruction Decode instruction Execute instruction End of loop http://www.badrinathkadam.com
  • 33. Program Execution (cont.) • Fetch phase – PC --> MAR (put address in PC into MAR) – Fetch signal (signal memory to fetch value into MDR) – MDR --> IR (move value to Instruction Register) – PC + 1 --> PC (Increase address in program counter) • Decode Phase – IR -> Instruction decoder (decode instruction in IR) – Instruction decoder will then generate the signals to activate the circuitry to carry out the instruction http://www.badrinathkadam.com
  • 34. Program Execution (cont.) • Execute Phase – Differs from one instruction to the next. • Example: – LOAD X (load value in addr. X into register) •IR_address -> MAR •Fetch signal •MDR --> R – ADD X •left as an exercise http://www.badrinathkadam.com
  • 35. Instruction Set for Our Von Neumann Machine Opcode Operation Meaning 0000 LOAD X CON(X) --> R 0001 STORE X R --> CON(X) 0010 CLEAR X 0 --> CON(X) 0011 ADD X R + CON(X) --> R 0100 INCREMENT X CON(X) + 1 --> CON(X) 0101 SUBTRACT X R - CON(X) --> R 0101 DECREMENT X CON(X) - 1 --> CON(X) 0111 COMPARE X If CON(X) > R then GT = 1 else 0 If CON(X) = R then EQ = 1 else 0 If CON(X) < R then LT = 1 else 0 1000 JUMP X Get next instruction from memory location X 1001 JUMPGT X Get next instruction from memory loc. X if GT=1 ... JUMPxx X xx = LT / EQ / NEQ 1101 IN X Input an integer value and store in X 1110 OUT X Output, in decimal notation, content of mem. loc. X 1111 HALT Stop program execution http://www.badrinathkadam.com
  • 36. The CPU (ALU, Control Unit, Registers)  The Memory Subsystem (Stored Data)  The I/O subsystem (I/O devices) Address Bus Data Bus Memory CPU Subsystem Control Bus I/O Device Subsystem http://www.badrinathkadam.com
  • 37. BUS - Physically a set of wires. The components of the Computer are connected to these buses.  Address Bus  Data Bus  Control Bus http://www.badrinathkadam.com
  • 38. Used to specify the address of the memory location to access.  Each I/O devices has a unique address. (monitor, mouse, cd-rom)  CPU reads data or instructions from other locations by specifying the address of its location.  CPU always outputs to the address bus and never reads from it. http://www.badrinathkadam.com
  • 39. Actual data is transferred via the data bus.  When the cpu sends an address to memory, the memory will send data via the data bus in return to the cpu. http://www.badrinathkadam.com
  • 40. Collection of individual control signals.  Whether the cpu will read or write data.  CPU is accessing memory or an I/O device  Memory or I/O is ready to transfer data http://www.badrinathkadam.com
  • 41. In today’s computers the the I/O controller will have an extra bus called the I/O bus.  The I/O bus will be used to access all other I/O devices connected to the system.  Example: PCI bus http://www.badrinathkadam.com
  • 42. Bus Processor Memory Devices Control Cache Input Datapath Output Registers http://www.badrinathkadam.com
  • 43.  Processor (CPU): the active part of the computer, which does all the work (data manipulation and decision-making).  Datapath: portion of the processor which contains hardware necessary to perform all operations required by the computer (the brawn).  Control: portion of the processor (also in hardware) which tells the datapath what needs to be done (the brain). http://www.badrinathkadam.com
  • 44.  Instruction execution Instruction cycle: fetch, decode, Fetch execute. Instruction  Fetch: fetch next Decode instruction (using PC) Operand from memory into IR. Fetch  Decode: decode the instruction. Execute  Execute: execute Result instruction. Store Next Instruction http://www.badrinathkadam.com
  • 45.  Fetch: Fetch next instruction into IR (Instruction Register).  Assume each word is 4 bytes and each instruction is stored in a word, and that the memory is byte addressable.  PC (Program Counter) contains address of next instruction. IR  [[PC]] PC [PC] + 4 http://www.badrinathkadam.com
  • 46. Internal processor bus Control signals PC ... Address line Instruction MAR decoder and control logic MDR Data line IR Y Constant 4 MUX RO Select : : Add ALU Sub A B R(n–1) control : ALU lines Carry-in XOR TEMP Z http://www.badrinathkadam.com
  • 47. Procedure the CPU goes through to process an instruction.  1. Fetch - get instruction  2. Decode - interperate the instruction  3. Execute - run the instruction. http://www.badrinathkadam.com
  • 48. Address is placed at beginning of clock  after one clock cycle the CPU asserts the read.  Causes the memory to place its data onto the data bus.  CLK : System Clock used to synchronize CLK Bus Address Bus Data Read http://www.badrinathkadam.com
  • 49. CPU places the Address and data on the first clock cycle.  At the start of the second clock the CPU will assert the write control signal.  This will then start memory to store data.  After some time the write is then deasserted by the CPU after removing the address and data from the subsystem. CLK Address Bus Address Data Bus Data Read http://www.badrinathkadam.com
  • 50. The I/O read and Write cycles are similar to the memory read and write.  Memory mapped I/O : Same sequences as input output to read and write.  The processor treats an I/O port as a memory location.  This results in the same treatment as a memory access. http://www.badrinathkadam.com
  • 51. Processor  logic capacity: about 30% per year  clock rate: about 20% per year  Memory  DRAM capacity: about 60% per year (4x every 3 years)  Memory speed: about 10% per year  Cost per bit: improves about 25% per year  Disk  capacity: about 60% per year  Total use of data: 100% per 9 months!  Network Bandwidth  Bandwidth increasing more than 100% per year! http://www.badrinathkadam.com
  • 52. Microprocessor Logic Density DRAM chip capacity 100000000 DRAM Year Size 10000000 uP-Name R10000 1980 64 Kb Pentium R4400 1983 256 Kb i80486 1000000 Transistors 1986 1 Mb i80386 1989 4 Mb 100000 i80286 R3010 1992 16 Mb SU MIPS i80x86 i8086 1996 64 Mb 10000 M68K MIPS 1999 256 Mb Alpha 2002 1 Gb i4004 1000 1965 1970 1975 1980 1985 1990 1995 2000 2005 ° In ~1985 the single-chip processor (32-bit) and the single-board computer emerged ° In the 2002+ timeframe, these may well look like mainframes compared single-chip computer (maybe 2 chips) http://www.badrinathkadam.com
  • 53. Smaller feature sizes – higher speed, density http://www.badrinathkadam.com
  • 54. Number of transistors doubles every 18 months (amended to 24 months) http://www.badrinathkadam.com
  • 55. • Computer Organization and Architecture, Designing for performance by William Stallings, Prentice Hall of India. • Modern Computer Architecture, by Morris Mano, Prentice Hall of India. • Computer Architecture and Organization by John P. Hayes, McGraw Hill Publishing Company. • Computer Organization by V. Carl Hamacher, Zvonko G. Vranesic, Safwat G. Zaky, McGraw Hill Publishing Company. http://www.badrinathkadam.com