02a_The Components of a System Unit

download 02a_The Components of a System Unit

of 28

Transcript of 02a_The Components of a System Unit

  • 8/16/2019 02a_The Components of a System Unit

    1/28

    IT 1: Information Technology

    Literacy

    Second Semester 2013-2014

  • 8/16/2019 02a_The Components of a System Unit

    2/28

    Computer Hardware

  • 8/16/2019 02a_The Components of a System Unit

    3/28

    MACHINE ORGANIZATION

    Components of the System Unit

  • 8/16/2019 02a_The Components of a System Unit

    4/28

    Fetch

    DecodeExecute

    The Machine Cycle

    1. Retrieve the next

    instruction from memory

    (as indicated by the

    program counter) and

    then increment the

    program counter.2. Decode the bit pattern in

    the instruction register.

    3. Perform the instruction

    required by the

    instruction in the

    instruction register

  • 8/16/2019 02a_The Components of a System Unit

    5/28

    Basic Organization of

    Microcomputers

    MEMORY

    INPUT

    OUTPUT

    ALU

    CPU

    CU

    REGISTER

    FILE

  • 8/16/2019 02a_The Components of a System Unit

    6/28

    • Central Processing Unit

     – The heart of a computer 

     – The circuitry that controls the

    manipulation of data and execution of

    instructions

    CPU

  • 8/16/2019 02a_The Components of a System Unit

    7/28

    • Central Processing Unit

     – Performs control, logical and arithmetic

    operations

     – Contains the Arithmetic and Logic Unit,

    register sets and the Control Unit

    CPU

  • 8/16/2019 02a_The Components of a System Unit

    8/28

    • Central Processing Unit

     – The CPU communicates with the storage

    system (memories) and the input-output

    (I/O) system using buses

    CPU

  • 8/16/2019 02a_The Components of a System Unit

    9/28

    • The CPU is amazinglysmall given theimmense amount of

    circuitry it contains

     – Circuits of a computer

    are made of gates

    Gates

  • 8/16/2019 02a_The Components of a System Unit

    10/28

    • The CPU is amazingly small given theimmense amount of circuitry itcontains.

     – Gates, however are also made of another

    tiny component called a transistor, and a

    modern CPU has millions of transistors in its

    circuitry.

    Transistor

  • 8/16/2019 02a_The Components of a System Unit

    11/28

    • According to Moore’s Law, thetransistor count of the integratedcircuits doubles every year

    Moore’s Law

  • 8/16/2019 02a_The Components of a System Unit

    12/28

    Processor Transistor Count  Date of

    Introduction  Manufacturer

    16-Core SPARC T3 1,000,000,000 2010 Sun/Oracle

    Six-Core Core i7 1,170,000,000 2010 Intel

    8-Core POWER7 1,200,000,000 2010 IBM

    Quad-Core z196 1,400,000,000 2010 IBM

    Dual-Core Itanium 2 1,700,000,000 2006 Intel

    Quad-Core Itanium Tukwila 2,000,000,000 2010 Intel

    8-Core Xeon Nehalem-EX 2,300,000,000 2010 Intel10-Core Xeon Westmere-Ex 2,600,000,000 2011 Intel

    Transistor Count

    Source: http://en.wikipedia.org/wiki/Transistor_count

  • 8/16/2019 02a_The Components of a System Unit

    13/28

    • Arithmetic and Logic Unit

     – Performs the arithmetic, logical and shift

    operations

     – Contains status registers (carry flag,

    overflow flag, negative result flag, non-

    zero flag) and associated logic

    ALU

  • 8/16/2019 02a_The Components of a System Unit

    14/28

    • Control Unit

     – Generates control signals that regulate

    the computer 

     – Sends microorders, individual signals sent

    over control lines, to control individual

    components and devices

    CU

  • 8/16/2019 02a_The Components of a System Unit

    15/28

    • A set of wires or lines to which components

    of the computer (processor, memory, I/O

    devices, etc.) are connected

    Bus

  • 8/16/2019 02a_The Components of a System Unit

    16/28

    • Temporary storage inside the CPU

     – General-purpose registers serve as

    temporary holding places for data being

    manipulated by the CPU

     – Special purpose registers

    Registers

  • 8/16/2019 02a_The Components of a System Unit

    17/28

    Computer Architecture

    .

    .

    .

    Arithmetic

    and Logic

    unit

    Control Unit

    Central Processing Unit Main Memory

    Bus

    Registers

    CPU and Main Memory Connected via Bus

  • 8/16/2019 02a_The Components of a System Unit

    18/28

    • Program Counter (PC)

     – Holds the address of the next instruction to

    be executed

    • Instruction Register (IR)

     – Holds the instruction being executed

    Special-Purpose Registers

  • 8/16/2019 02a_The Components of a System Unit

    19/28

    Computer Architecture

    .

    .

    .

    Arithmetic

    and Logic

    unit

    Control Unit

    Central Processing Unit Main Memory

    Bus

    Registers

    Instruction Register

    Program Counter

    .

    .

    .

    Address Cells

    00

    0102

    FE

    FF

    .

    .

    .

  • 8/16/2019 02a_The Components of a System Unit

    20/28

    • Memory Address Register (MAR)

     – Holds the location in memory of the next

    piece of data or program to be fetched

    • Memory Data Register (MDR)

     – Holds the data for store operation and

    receive the data during load operation

     – Also called Memory Buffer Register (MBR)

    Special-Purpose Registers

  • 8/16/2019 02a_The Components of a System Unit

    21/28

    http://www.teach-ict.com/as_as_computing/ocr/H447/F453/3_3_3/vonn_neuman/miniweb/pg4.htm

    http://www.teach-ict.com/as_as_computing/ocr/H447/F453/3_3_3/vonn_neuman/miniweb/pg4.htmhttp://www.teach-ict.com/as_as_computing/ocr/H447/F453/3_3_3/vonn_neuman/miniweb/pg4.htm

  • 8/16/2019 02a_The Components of a System Unit

    22/28

    Fetch

    DecodeExecute

    The Machine Cycle

    1. Retrieve the next

    instruction from memory

    (as indicated by the

    program counter) and

    then increment the

    program counter.2. Decode the bit pattern in

    the instruction register.

    3. Perform the instruction

    required by the

    instruction in the

    instruction register

  • 8/16/2019 02a_The Components of a System Unit

    23/28

    • Each machine instruction is composedof two parts:

     – Opcode

     – Operand

    Machine Instruction

    Middle Bit

    OperandOpcode

  • 8/16/2019 02a_The Components of a System Unit

    24/28

    • Opcode field indicates which of the elementaryoperations, such as STORE or JUMP, is requested bythe instruction

    • Operand field provide detailed information about

    the operation specified by the opcode

    • The middle bit distinguishes between operands thatare memory addresses and operands that arenumbers. When the bit is set to '1', the operand

    represents a number.

    Machine Instruction

  • 8/16/2019 02a_The Components of a System Unit

    25/28

    • The op-codes are given an Englishmnemonic to simplify programming.Together these mnemonics are called

    an assembly language.

    Assembly Language

  • 8/16/2019 02a_The Components of a System Unit

    26/28

    Op-code Mnemonic Function Example001 LOAD Load the value of the operand into the

    accumulator

    LOAD 10

    010 STORE Store the value of the accumulator at

    the address specified by the operand

    STORE 8

    011 ADD Add the value of the operand from theaccumulator

    ADD #5

    100 SUB Subtract the value of the operand from

    the accumulator

    SUB #1

    101 EQUAL If the value of the operand equals the

    value of the accumulator, skip the nextinstruction

    EQUAL #20

    110 JUMP Jump to a specified instruction by setting

    the program counter to the value of the

    operand

    JUMP 6

    111 HALT Stop execution HALT

    A Simple Machine Language

  • 8/16/2019 02a_The Components of a System Unit

    27/28

    # Machine Code Assembly Code Description

    0 001 1 000010 LOAD #2 Load the value 2 into the Accumulator

    1 010 0 001101 STORE 13 Store the value of the Accumulator in memory

    location 13

    2 001 1 000101 LOAD #5 Load the value 5 into the Accumulator

    3 010 0 001110 STORE 14 Store the value of the Accumulator in

    memory location 14

    4 001 0 001101 LOAD 13 Load the value of memory location 13 into the

    Accumulator

    5 011 0 001110 ADD 14 Add the value of memory location 14 to the

    Accumulator

    6 010 0 001111 STORE 15 Store the value of the Accumulator in memory

    location 15

    7 111 0 000000 HALT Stop execution

    Sum Program

  • 8/16/2019 02a_The Components of a System Unit

    28/28

    • According to Moore’s Law, thetransistor count of the integratedcircuits

     ____________________________.

    • What is the temporary storage insidethe CPU?

    • What are the three stages of themachine cycle?

    Quiz