Monday, September 8, 2008

Lecture 2

Lecture 2


 

  • Calculator example
    • Hardware
      • Was the calculator
    • Software
      • The user
  • Virtual machine
    • Virtual concept came to being in the 60's when machines started to get more complex
  • Translator
    • Is written in L1
      • The lower level language
    • And translates L2 into L1 so that it is understandable by the machine
    • The difference between L2 and L1 should not be that big
    • L2 should be easier for the users to write in
    • L1 is typically called 'machine language'
  • Layers
    • Packages ( level 6 ) -> problem oriented languages -> assembly language -> OS -> conventional machine -> micro programming -> digital logic (level 0)
  • Levels of representation
    • High level language
      • C programming language
    • Assembly language
      • MIPS
    • Machine Language
      • MIPS
      • 0's and 1's
    • Machine interpretation
      • Hardware architecture description
    • Architecture implementation
      • Logic circuit description

Layered Computer Design


 

  • Series of layers built on the predecessor
    • Allows
      • Independence of design
        • Reduced complexity
        • Easier to understand
        • Easier to design and analyze
    • Hierarchical nature of computer system
    • Essential to design and description
    • Only need to deal with one level at a time
    • Each level has structure and function

Understanding architecture and organization

  • Architecture
    • Set of
      • Data types
      • Operations
      • Features at each level
    • What is visible to the user
      • As memory available
      • We don't care about how the memory is constructed
        • What we care about is that it's available
    • Implementation aspects
      • Such as what kind of chip technology are not part of the architecture
  • Computer architecture
    • The study of how to design parts of a computer that are visible to the programmers
  • Definition for Tanenbaum
    • Computer architecture IS computer organization
  • Definition for Stalling
    • Computer architecture
      • Attributes of a system visible to the programmer
        • Instruction set
        • Data types
        • I/O mechanisms
        • Memory addressing techniques
    • Computer organization
      • Operational units and interconnections that realize that architecture
      • Transparent to the user
        • Control signals
        • Interfaces
        • Memory technology
    • Families of computers
      • Architecture remains the same organization differs

Instruction Set Architecture


 

  • A very important abstraction
    • Interface between hardware and low-level software
    • ISA
      • Acronym: Instruction set architecture
    • Standardizes instructions, machine language bit patterns, etc.
    • Advantage: different implementations of the same architecture
    • Disadvantage: sometimes prevents using new innovations


     

  • Microsoft will do anything to get features and go around structural issues that might prevent new innovation. However there is a price to be paid: it prevents using new innovations and software breaks down regularly
  • The Instruction Set
    • Attributes of a computing system as seen by the programmer, the conceptual structure and functional behaviour, as distinct from the organization of the data flows and controls the logic design and the physical implementation
  • Computer Function
    • Data processing
      • Something that actually changes and transforms the data
    • Data storage
      • Places to store before after and during the data processing
    • Data movement
      • The movement of the data
    • Control
      • Control mechanism found in the center of all these functions
  • Functioning at the lowest level virtual machine
    • No compiling
    • Like interpreter
    • Sequential
  • Main memory
    • Works as a loop    
      • Loop
        • Fetch instruction
        • Execute instruction
      • End loop
  • Datapath
    • Are cyclic
    • Fetch
      • From main memory
      • Through the `datapath`
      • From a set of instructions
    • Sends to registers
      • Which goes to the register memory
      • And is passed off the ALU
        • ALU –acronym: arithmetic logic unit

MIPS language


 

  • Assembly language
    • Higher level than machine language
    • (one step higher than machine language)
  • RISC
    • Acronym: reduced instruction set computer
    • A minimum set of machine or assembly language instruction
    • Minimum set of isa instructions
    • Make each run very fast
    • Concentrate effort
  • Instruction representation
    • Add 4 variables
    • Solution
      • Add a,b,c
        • # a ßb+c
      • Add a,a,d
        • #aßa+d
      • Add a,a,e
        • #aßa+e

s

No comments: