Top Banner

of 21

Basic Building Block

Apr 10, 2018

Download

Documents

vdparode
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/8/2019 Basic Building Block

    1/21

    All possible questions ofAll Unit.

    Question set I & II with

    all who likely to get failedin Exam.

    Objective Questions 10

    each Day.

  • 8/8/2019 Basic Building Block

    2/21

    CPU Organization

  • 8/8/2019 Basic Building Block

    3/21

    Functional Units

    Input

    Output

    CentralProcessing

    Unit (CPU)

    Memory

    Inter-connect

  • 8/8/2019 Basic Building Block

    4/21

    ALU

    ControlUnit

    Registers

    Internal Bus

    CPU

  • 8/8/2019 Basic Building Block

    5/21

  • 8/8/2019 Basic Building Block

    6/21

    CPU Function:

    To rfor th followin ov r and ov r

    a ain fro th o nt ow r is turn d on

    to th o nt it is r ov d:

    Fetch an instruction from memory

    Execute that instruction

    Thats it. Period.

  • 8/8/2019 Basic Building Block

    7/21

    Operation

    There are four steps all CPU use in the operation.

    Fetch Retrieving Instruction from program memory by PC.

    Decode

    Instruction broken up in to parts. Opcode state which operation to perform.

    Execute Various portion of CPU are combine foroperation.

    Write back Writeresult in eitherregisterOrin Main Memory.

  • 8/8/2019 Basic Building Block

    8/21

    CPU - ALU

    Flags

    (Z,N,C,V)

    Function:+,-,OR,AND,

    OperandA

    Operand Result

  • 8/8/2019 Basic Building Block

    9/21

  • 8/8/2019 Basic Building Block

    10/21

    CPU - IR The instruction is typically brought in from a

    place in memory (more later) and stor ed

    temporarily in the CPU in a r egister called the

    Instruction Register.

    The controlblock can then read the IR and

    figure out where to get the operands for the

    ALU, what to do with them (the function), andthen where to put the results.

    How does the CPU know where to get the

    next instruction from?

  • 8/8/2019 Basic Building Block

    11/21

    CPU - PC There is a r egister in the CPU called the

    Program Counter orPC.

    When yourprogram is first executed, the PCholds the address in memory of the first

    instruction.

    nce the instruction has been fetched from

    memory, the PC is incremented to point to thenext instruction.

  • 8/8/2019 Basic Building Block

    12/21

    CPU - Updated

    ALU

    Status Reg

    IR

    PCControl andTiming

  • 8/8/2019 Basic Building Block

    13/21

    CPU: Control Unit

    It is thebrain orcoordinator of theISP(instruction set processor) as it ensures that theprocessor will behaveexactly as defined by itsinstruction set.

    Theprocessor repeatedly fetches an instruction from thememory,

    interprets its functionality, and

    executes it.

    This activity is carried out in an InstructionFetch/ExecuteCycle and is repeated once thesystempower is turned on.

  • 8/8/2019 Basic Building Block

    14/21

    CPU - Updated

    ALU

    Status Reg

    IR

    Control andTiming

    D1

    D2

    D3D4

    D5

    D6

    D7

    D0

    PC

  • 8/8/2019 Basic Building Block

    15/21

    CPU - emory The CPU interacts with the external

    memory through a pair of buff ers that ar e

    usually hidden from the programmer. These are the Memory Address Register

    (MAR) and the Memory Data Register

    (MDR).

    These buffers ar e connected dir ectly to thepins on the chip that carry the address and

    data signals to the external memory.

  • 8/8/2019 Basic Building Block

    16/21

    CPU - Updated

    ALU

    Status Reg

    IR

    Control andTiming

    D1

    D2

    D3

    D4

    D5

    D6

    D7

    D0

    PC

    MDRMAR

    Data BusAddress

    Bus

  • 8/8/2019 Basic Building Block

    17/21

    Address registers provide flexibility by

    allowing indirect addr essing of memory

    locations.

  • 8/8/2019 Basic Building Block

    18/21

    CPU - Updated

    ALU

    IR

    Control andTiming

    D1

    D2

    D3

    D4D5

    D6

    D7

    D0

    MDRMAR

    Data usA ress

    us

    0781532 16

    A1

    A2

    A3

    A4A5

    A6

    USP

    A0

    PC

    SSP

    01532 16

    0 01622

    UserSystem

    07815

    Status

  • 8/8/2019 Basic Building Block

    19/21

    Instruction Cycle

    IncrementPC

    FetchInstructionatPC intoIR

    ExecutetheInstruction

    Halt

    Start

    DecodeIR

    FetchOperands(asrequired)

    FetchCycle

  • 8/8/2019 Basic Building Block

    20/21

  • 8/8/2019 Basic Building Block

    21/21

    FPU - IEEE Standard

    SIGN EXPONENT MANTISSA

    1 8 23