01 Introduction
01 Introduction
01 Introduction
COE 308 Computer Architecture Prof. Muhamed Mudawar Computer Engineering Department King Fahd University of Petroleum and Minerals
Email:
mudawar@kfupm.edu.sa
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 2
Grading Policy
Homework and Quizzes MIPS Programming Project CPU Design Project Midterm Exam I Midterm Exam II Final Exam 10% 10% 15% 20% 20% 25%
Slide 3
Software Tools
MIPS Simulators
MARS: MIPS Assembly and Runtime Simulator
Runs MIPS-32 assembly language programs Website: http://courses.missouristate.edu/KenVollmar/MARS/
SPIM
Also Runs MIPS-32 assembly language programs Website: http://www.cs.wisc.edu/~larus/spim.html
Course webpage
http://faculty.kfupm.edu.sa/coe/mudawar/coe308/
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 7
Course Objectives
Understand modern computers, their evolution, and tradeoffs at the HW/SW interface
Instruction Set Architecture Computer Arithmetic Performance and Metrics Pipelining
Output devices
Display, printer,
Input Output
Storage devices
Volatile memory devices: DRAM, SRAM, Permanent storage devices: Magnetic, Optical, and Flash disks,
Datapath Together, they are called the Processor Control Newly added 6th component: Network
Essential component for communication in any computer system
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 9
Instruction Decode
Execute
Memory Access
Writeback Result
Introduction to Computer Architecture
CPU Clocking
Operation of digital hardware is governed by a clock
Clock period Clock (cycles) Data transfer and computation Update state
e.g., 250 ps = 0.25 ns = 0.25 109 sec e.g., 1/ 0.25 109 sec = 4.0109 Hz = 4.0 GHz
Muhamed Mudawar, CSE 308 KFUPM Slide 11
Computer Organization
HOW the ISA is implemented (physical view)
An ISA encompasses
Instructions and Instruction Formats Data Types, Encodings, and Representations Programmable Storage: Registers and Memory Addressing Modes: Accessing Instructions and Data Handling Exceptional Conditions
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 13
Examples
Intel IBM Power HP PA-RISC MIPS Sun Sparc Digital Alpha PowerPC
Introduction to Computer Architecture
(versions)
(8086, 80386, Pentium, ...) (Power 2, 3, 4, 5) (v1.1, v2.0) (MIPS I, II, III, IV, V) (v8, v9) (v1, v3) (601, 604, )
Muhamed Mudawar, CSE 308 KFUPM
Introduced in
1978 1985 1986 1986 1987 1992 1993
Slide 14
Registers
R0 - R31
funct6
immediate16
Computer Organization
Realization of the Instruction Set Architecture Characteristics of principal components
Registers, ALUs, FPUs, Caches, ...
Ways in which these components are interconnected Information flow between components Means by which such information flow is controlled Register Transfer Level (RTL) description
Slide 16
Microprocessor Organization
Front Side Bus
D-Cache
4-way
Trace Cache
Microcode ROM
Execution
Out-of-Order Core Branch History Update
Retirement
Slide 17
Abstraction Layers
Software
Compiler Assembler Linker Processor Application Operating System Loader Scheduler Device Drivers Memory Digital Logic Design Circuit Design Physical (IC Layout) Design I/O System
Hardware
Abstraction hides implementation details between levels Helps us cope with enormous complexity ISA is at the interface between software and hardware
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 18
Technology Improvements
Year 1951 1965 1975 1995 2005 Technology Vacuum tube Transistor Integrated circuit (IC) Very large scale IC (VLSI) Ultra large scale IC Relative performance/cost 1 35 900 2,400,000 6,200,000,000
Processor transistor count: about 30% to 40% per year Memory capacity: about 60% per year (4x every 3 years) Disk capacity: about 60% per year Opportunities for new applications Better organizations and designs
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 19
Slide 20
Slide 21
Classes of Computers
Desktop / Notebook Computers
General purpose, variety of software Subject to cost/performance tradeoff
Server Computers
Network based High capacity, performance, reliability Range from small servers to building sized
Embedded Computers
Hidden as components of systems Stringent power/performance/cost constraints
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 23
Slide 24
Slide 25
Blank wafers
20 to 30 processing steps
Tested dies
Die Tester
Individual dies
Dicer
Patterned wafer
Packaged dies
Bond die to package Part Tester
Slide 26
26 dies, 15 good
Slide 29
Slide 30
Course Roadmap
Instruction set architecture (Chapter 2) Computer arithmetic (Chapter 3) Performance issues (Chapter 4) Constructing a processor (Chapter 5) Pipelining to improve performance (Chapter 6) Memory: caches and virtual memory (Chapter 7) Introduction to Parallel Architectures Key to obtain a good grade: read the textbook!
Introduction to Computer Architecture Muhamed Mudawar, CSE 308 KFUPM Slide 31