SCA chap 1

Embed Size (px)

Citation preview

  • 8/4/2019 SCA chap 1

    1/25

    CDA 4102

    StructuredComputer Architecture

    Abhijit Pandya, Ph.D.

    Professor

    Department of Computer Science and EngineeringFlorida Atlantic University

    Boca Raton, FL 33431

  • 8/4/2019 SCA chap 1

    2/25

    Introduction (Chapter 1)Introduction (Chapter 1)

    READING ASSIGNMENT CH2 (2.1-2.4)

    A digital computer solves problems by carryingout instructions.

    A program is a sequence of instructionsdescribing how to perform a certain task.

    Machine language is a limited set of primitive

    instructions. They can be used by people to communicate

    with the computer.

  • 8/4/2019 SCA chap 1

    3/25

    Introduction (Chapter 1)Introduction (Chapter 1)

    PROBLEMS

    We want the machine language to be verysimple

    so as to reduce the complexity and the cost of electronics

    tedious for people.

    We want to make it convenient for people touse the computer

    => complex electronics.

  • 8/4/2019 SCA chap 1

    4/25

    POSSIBLE SOLUTION

    the built-in machine language is L1 but is

    tedious.

    So form a language (L2) of instructions

    that is more convenient to use by people

    How can a program written in L2 beexecuted by the computer?

  • 8/4/2019 SCA chap 1

    5/25

    TRANSLATION

    Replace each instruction in the L2

    program by an equivalent sequence of

    instructions in L1.

    The new L1 program is then executed by

    the computer.

  • 8/4/2019 SCA chap 1

    6/25

    INTERPRETATION

    An L1 program examines the L2 program

    instruction by instruction.

    Then it executes the equivalent sequence

    of L1 instruction directly.

  • 8/4/2019 SCA chap 1

    7/25

    TRANSLATION

    VS.INTERPRETATION

    Similarity

    Difference

  • 8/4/2019 SCA chap 1

    8/25

    It is convenient to imagine the existence

    of a virtual machine whose machine

    language L2.

    L1 and L2 must not be too different

    =>L2 is far from ideal for mostapplications.

  • 8/4/2019 SCA chap 1

    9/25

    Invent another set of instructions that is

    more people-oriented.

    Call the language formed by this set L3.

    This can be extended to as many levels as

    needed so as to make it convenient for

    most application programmers.

  • 8/4/2019 SCA chap 1

    10/25

    We are mainly concerned with the

    concepts and techniques of constructingmachines as a series of levels

    We also need to define the details for

    some important levels.

  • 8/4/2019 SCA chap 1

    11/25

    WHY STURCTURED COMPUTER

    ORGANIZATION?

    Viewing a computer as a hierarch of levelsprovides a good structure.

    It is a good framework for understandinghow computers are organized.

    Designing a computer system as a seriesof levels helps to ensure that the resultingproduct will be well structured.

  • 8/4/2019 SCA chap 1

    12/25

  • 8/4/2019 SCA chap 1

    13/25

    HISTORICAL EVOLUTION OF

    MULTILEVEL MACHINES

    Two Level Machines : (1940)

    Conventional machine level

    Digital logic level (complicated)

  • 8/4/2019 SCA chap 1

    14/25

    Three Level Machines :(1950)s

    Conventional machine level

    Microprogramming level (limited instructionset)

    Digital logic level (reduce the # of tubes)

  • 8/4/2019 SCA chap 1

    15/25

    The programmer has to operate the

    machine personally.

    To run a FORTRAN program the

    programmer had to do the following:

    Read in the FORTRAN COMLIER (CARD

    READER).

    READ in the FORTRAN PROGRAM

    (CARD READER).

  • 8/4/2019 SCA chap 1

    16/25

    No errors => the complier successfully

    translated the machine language

    programs punched out on cards.

    Errors=> Correct them and start all over

    again.

  • 8/4/2019 SCA chap 1

    17/25

    Read in the machine language program

    and the subroutine library deck (card

    reader).

    Execute program.

    Errors=> find them, correct them and start

    all over again.

  • 8/4/2019 SCA chap 1

    18/25

    FOUR-LEVEL MACHINES

    (1960)S

    O/S level (automate the operators job) Conventional M/C level

    Microprogramming level

    Digital logic level

  • 8/4/2019 SCA chap 1

    19/25

    O/S got more sophisticated

    =>new instructions facilities and features.

    Some new instructions are equivalent to

    conventional m/c language instructions.

    Some different (i/o instructions)

  • 8/4/2019 SCA chap 1

    20/25

    BATCH SYSTEMS

    Time-Sharing (1960)s

  • 8/4/2019 SCA chap 1

    21/25

    Hardware: tangible objects

    Software: Algorithms and their computerrepresentations (programs).

    Firmware: Intermediate form betweenhardware and software

    It consists of software embedded in electronicdevices during their manufacture(microprogram).

  • 8/4/2019 SCA chap 1

    22/25

    Hardware and software are

    logically equivalent

    Any operation performed by software can

    also be build directly into the hardware

    Moreover any instruction executed by thehardware can be simulated in software.

  • 8/4/2019 SCA chap 1

    23/25

    Process

    A program in execution.

    At any instant in time a process is in acertain state.

    The state tells how far the process is in itscomputation.

  • 8/4/2019 SCA chap 1

    24/25

    THE PROCESS STATE

    CONSISTS OFAT LEAST THE FOLLOWING

    INFORMATION.

    The program.

    Indication of next instruction to be

    executed. The values of all the programs variables

    and data.

  • 8/4/2019 SCA chap 1

    25/25

    STATE VECTOR IS THE GROUPING

    OF ALL THE CHANGEABLE PARTS

    OF A PROCESS:

    The effect of a process is independent of itsexecution speed

    If a process executes again with the same

    data, it goes through the same sequence of

    states and gives the same results.