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 = ,
- Mega- (M): 1 million = ,
- Giga- (G): 1 billion = ,
- Tera- (T): 1 trillion = ,
- Peta- (P): 1 quadrillion = ,
- Exa- (E): 1 quintillion = ,
- Zetta- (Z): 1 sextillion = ,
- Yotta- (Y): 1 septillion = ,
- 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.
- Clarification:
- $1 ext{KB}
eq 1000 ext{ Bytes}$
- $1 ext{KB}
Measures of Speed and Capacity
Hertz
- Unit of frequency defined as one cycle per second.
- Time is the reciprocal of frequency.
- , 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:
Measures of Time and Space
Prefix Units
- Milli- (m): (1 thousandth)
- Micro- (μ): (1 millionth)
- Nano- (n): (1 billionth)
- Pico- (p): (1 trillionth)
- Femto- (f): (1 quadrillionth)
- Atto- (a): (1 quintillionth)
- Zepto- (z): (1 sextillionth)
- Yocto- (y): (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): 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
- Watch a movie (Input/Output)
- Memorize the content of the movie (Memory)
- Organize your thoughts (Control Unit & ALU)
- Type your ideas (I/O)
Fetch-Decode-Execute Cycle
Phases
- Fetch: Control Unit (CU) retrieves the next instruction from memory using the Program Counter (PC).
- Decode: CU decodes the instruction into a machine language form the ALU can process.
- Operand Fetch: Any necessary data operands are fetched from memory and placed in CPU registers.
- 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.