chapter1 - Intro

Chapter 1 Introduction

  • The chapter provides an overview of the foundations of computer organization and architecture.

Chapter 1 Objectives

  • Know the concentration of computer organization and computer architecture
  • Understand units of measure common to computer systems
  • Understand the computer as a layered system
  • Be able to explain the von Neumann architecture and the function of basic computer components.

Computer Organization and Architecture

Definition and Focus

  • Computer Organization

    • Focuses on the working mechanism of all physical aspects of computer systems.
    • Examples include circuit design, control signals, and memory types.
    • Essential question: How does a computer work?
  • Computer Architecture

    • Focuses on the structure and behavior of computer systems.
    • Affects logical execution of programs.
    • Examples include instruction sets, instruction formats, data types, and addressing modes.
    • Essential question: How do I design a computer?

Diagram:

  • Hierarchical organization of computer architecture.
  • Includes:
    • High-Level Application Program
    • Application Design
    • Software
    • Computer Architecture
    • System Design
    • Computer Design
    • Computer Organization
    • Logic Design
    • Circuit Design
    • Low-Level Computer Components (Hardware)

Consider This Advertisement

  • Review of specifications of different laptop models:

Acer Aspire S3-951

  • Price: $899.00
  • Display: 13.3 inches, LED backlit, resolution 1366-by-768
  • Processor: 1.66 GHz Intel Core i5
  • Graphics: Intel HD Graphics 3000
  • Storage: 20GB SSD (OS), 320 GB HDD
  • Memory: 4GB, 1066 MHz DDR3
  • Battery Life: Up to 6 hours, 50 days standby
  • Connectivity: 802.11 b/g/n Wi-Fi; Bluetooth 4.0
  • Webcam: 1.3 Megapixel
  • Operating System: Windows 7 Home Premium

MacBook Air (13.3 inch)

  • Price: $1,299.00
  • Display: 13.3 inches, LED backlit, resolution 1440-by-900
  • Processor: 1.7 GHz Intel Core i5
  • Graphics: Intel HD Graphics 3000
  • Storage: 128GB flash storage
  • Memory: 4GB, 1333 MHz DDR3
  • Battery Life: Up to 7 hours, 30 days standby
  • Connectivity: 802.11 a/b/g/n Wi-Fi; Bluetooth 4.0
  • Webcam: FaceTime camera (MP undisclosed)
  • Ports: USB 2.0 (2); Thunderbolt (1); SD Card reader (1)
  • Operating System: Mac OS X 10.7, Lion

Units of Measure

Data Measurement Units

  • Kilo- (K): 1 thousand = 10310^3, 2102^{10}
  • Mega- (M): 1 million = 10610^6, 2202^{20}
  • Giga- (G): 1 billion = 10910^9, 2302^{30}
  • Tera- (T): 1 trillion = 101210^{12}, 2402^{40}
  • Peta- (P): 1 quadrillion = 101510^{15}, 2502^{50}
  • Exa- (E): 1 quintillion = 101810^{18}, 2602^{60}
  • Zetta- (Z): 1 sextillion = 102110^{21}, 2702^{70}
  • Yotta- (Y): 1 septillion = 102410^{24}, 2802^{80}
  • Notation may refer to either powers of ten or powers of two depending on the measurement context.

Byte and Data Units

  • Byte: A unit of storage.
    • 1extKB=210=1024extBytes1 ext{KB} = 2^{10} = 1024 ext{ Bytes}
    • 1extMB=220=1,048,576extBytes1 ext{MB} = 2^{20} = 1,048,576 ext{ Bytes}
  • Clarification:
    • $1 ext{KB}
      eq 1000 ext{ Bytes}$
    • 1extKB=1024extBytes1 ext{KB} = 1024 ext{ Bytes}

Measures of Speed and Capacity

Hertz

  • Unit of frequency defined as one cycle per second.
  • Time is the reciprocal of frequency.
    • 1extMHz=1,000,000extHz1 ext{MHz} = 1,000,000 ext{Hz}, representing 1 million cycles per second.
    • Processor speeds are generally measured in MHz or GHz.

CPU Cycle Duration

  • Example Calculation: A CPU operates at 133MHz.
  • Duration of one cycle:
    1133,000,000extcycles/second=7.52extns/cycle\frac{1}{133,000,000 ext{ cycles/second}} = 7.52 ext{ ns/cycle}

Measures of Time and Space

Prefix Units

  • Milli- (m): 10−310^{-3} (1 thousandth)
  • Micro- (μ): 10−610^{-6} (1 millionth)
  • Nano- (n): 10−910^{-9} (1 billionth)
  • Pico- (p): 10−1210^{-12} (1 trillionth)
  • Femto- (f): 10−1510^{-15} (1 quadrillionth)
  • Atto- (a): 10−1810^{-18} (1 quintillionth)
  • Zepto- (z): 10−2110^{-21} (1 sextillionth)
  • Yocto- (y): 10−2410^{-24} (1 septillionth)

Examples of Time Measures

  • Millisecond: 1/1000th of a second.
    • Example: Hard disk drive access times are typically 10 to 20 milliseconds.
  • Nanosecond: 1 billionth of a second.
    • Example: Main memory access times are usually around 50 to 70 nanoseconds.
  • Micron (Micrometer): 1imes10−61 imes 10^{-6} meters.
    • Used to measure circuits on computer chips.

The Computer Level Hierarchy

Overview

  • A computer system consists of both hardware and software.
  • Building complex systems requires a “divide and conquer” strategy.
  • Each program module solves a smaller problem.
  • Complex computer systems operate through a series of virtual machine layers.

Virtual Machine Concept

  • Assume a computer executes programs written in its native machine language (denoted as L0).
  • A higher-level human-friendly language (denoted as L1) can simplify program development.
  • If a program is written in L1, it can be transformed into L0.
  • Virtual machines are designated as follows:
    • VM0 runs L0
    • VM1 runs L1

Conversion Technologies

  • Interpretation: Allows L1 programs to run by decoding and executing each instruction with L0.
  • Translation/Compilation: Converts the entire L1 program into an L0 program at once.

Levels of Computer Architecture

  • The computer architecture can be divided into at least 7 distinct levels, each executing specific instructions and invoking lower-level machines for tasks.
  • Level 6: User Level
    • Involves program execution and user interface; the most familiar level.
  • Level 5: High-Level Language Level
    • Interaction level for programming in languages such as C, Java, SQL, etc.
  • Level 4: Assembly Language Level
    • Engages with assembly language produced by Level 5 and directly programmed instructions.
  • Level 3: System Software Level
    • Manages executing processes and protects system resources; assembly instructions may pass to Level 3 without alteration.
  • Level 2: Machine Level
    • Also called Instruction Set Architecture (ISA) Level, consists of unique instructions designed for the machine's architecture.
    • Machine language programs do not require compilers, interpreters, or assemblers.
  • Level 1: Control Level
    • Decodes and executes instructions through a control unit.
    • Two types of control units exist:
    • Microprogrammed Control Units: Programs written in low-level language implementing the control.
    • Hardwired Control Units: Hardware components that directly execute machine instructions.
  • Level 0: Digital Logic Level
    • Composed of digital circuits, such as gates and wires that implement mathematical logic for all levels.

The von Neumann Model

Overview

  • The first generation of computers operated entirely at the digital logic level, requiring manual manipulation of hardware connections.
  • Known as "stored-program" computers, these systems adhere to the von Neumann architecture characteristics.

Characteristics of von Neumann Computers

  • Consist of three hardware systems:
    • CPU (Central Processing Unit):
    • Control Unit (CU)
    • Arithmetic and Logic Unit (ALU)
    • Registers
    • Main Memory
    • I/O Sub-system
  • Utilize a single data path (the Bus) between the CPU and main memory for data transfer.

Example of von Neumann Functionality

  1. Watch a movie (Input/Output)
  2. Memorize the content of the movie (Memory)
  3. Organize your thoughts (Control Unit & ALU)
  4. Type your ideas (I/O)

Fetch-Decode-Execute Cycle

Phases

  1. Fetch: Control Unit (CU) retrieves the next instruction from memory using the Program Counter (PC).
  2. Decode: CU decodes the instruction into a machine language form the ALU can process.
  3. Operand Fetch: Any necessary data operands are fetched from memory and placed in CPU registers.
  4. Execute: ALU executes the instruction, storing results in registers or returning them to memory.

Summary of the Fetch-Decode-Execute Cycle

  • The fundamental cycle for CPU program execution involves:
    • CU fetching the next instruction via PC.
    • CU decoding it for ALU processing.
    • Fetching required operands into CPU.
    • ALU executing the instruction and storing results appropriately.

Conclusion

  • This chapter has provided a comprehensive overview of computer architecture, establishing a foundational understanding for further studies in the course.
  • Subsequent chapters will delve into these topics in greater detail.
  • Homework assignments (HW1) have been posted for students to begin their studies.