Upload
roger-small
View
226
Download
3
Tags:
Embed Size (px)
Citation preview
04/21/23 445_01 1
Computer Organization
EEC-213
Computer Organization
Electrical and Computer Engineering
04/21/23 445_01 2
Grading
Homework 10% Midterm Exam 10% Oral Exam 20% Final Exam 60%
04/21/23 445_01 3
Honor Code
You are encouraged to discuss homework problems with other students and/or obtain the assistance of the instructor. Nevertheless, homework submissions should be
the work of you and your partner.
Exams are closed book, closed notes, no use of calculators, and the normal honor code applies to all exams.
04/21/23 445_01 4
Textbooks
Computer Organization, 5th ed. Carl Hamacher, et al., ISBN 0-07-232086-9 2002
04/21/23 445_01 5
Questions?
Basic structure of Computers
04/21/23 445_02 6
04/21/23 445_01 7
Processor
Computer Functional Units
Memory
Arithmetic& Logic
Control
I/O
Input
Output
04/21/23 445_01 8
Course Organization
Computer Structure (Ch 1) Instruction Sets & Addressing Modes (Ch 2) Example Computer: Motorola 68000 (Ch 3) Control Unit Design (Ch 7)
Computer Arithmetic (Ch 6) Memory (Ch 5) Input/Output (Ch 4) Pipelining (Ch 8)
04/21/23 445_01 9
Computer Information (Binary)
(Machine) Instructions (Machine Language) Programs
Data 2's complement BCD ASCII
04/21/23 445_01 10
Output Display Printer Speakers
I/O
Input Keyboard Mouse Microphone Camera Scanner
Serial Communications Network Modem
04/21/23 445_01 11
Memory
Primary Random Access
Memory (RAM) Read Only
Memory (ROM)
Organization Word Address Read/Write
Secondary Magnetic
Disks Tape
Optical Disks
Hierarchy Cache Main Virtual
04/21/23 445_01 12
ALU
Arithmetic Addition Subtraction Multiplication Division Comparison
Logic AND OR NOT XOR
Registers Store Shift
04/21/23 445_01 13
Control Unit
Coordinates/Directs other Units
Computer Operation Input
Program/Data stored in Memory Processing
Information fetched into RegistersProcessed by ALU
Output
04/21/23 445_02 14
Computer Instructions
Assembly Language
MOVE NUM1,R1
MOVE #1,R2
ADD #1,R1
ADD R1,R2
Register Transfer Notation
R1 [NUM1]
R2 1
R1 1 + [R1]
R2 [R1] + [R2]
04/21/23 445_02 15
Processor and Memory
ALUIR
MAR
MEM
PC
MDR
R0
R1
.
.
.
Rn-1
Control
Processor
MAR - Memory Address Register
MDR - Memory Data Register
PC - Program Counter
IR - Instruction Register
04/21/23 445_02 16
Example Instruction
Fetch MAR [PC] PC [PC] + 1 MDR [MEM(MAR)] IR [MDR]
Execute MAR NUM1 MDR [MEM(MAR)] R1 [MDR]
MOVE NUM1,R1
04/21/23 445_02 17
Another Example
Fetch MAR [PC] PC [PC] + 1 MDR [MEM(MAR)] IR [MDR]
Execute R1 1 + R1
ADD #1,R1
04/21/23 445_02 18
Single-Bus Structure
•The computer parts must be connected in some way
•A group of lines that serves as a connecting path for several devices is called bus
•Only one transfer at a time can occurs between 2 units
•Devices includes a buffer register to hold information during transfer
Memory ProcessorInput Output
04/21/23 445_02 19
Single-Bus Architecture (HW1)
A B
RALU
MDR
MAR
MEM
BUS A
Y
Z
04/21/23 445_02 20
System Software
Compiler High-level Language Machine Language
Assembler Assembly Language Machine Language
Text Editor Keyboard Input File
Operating System Control Sharing & Interaction Assign & Manage Resources
Memory Disk Space
Handle I/O
Memory Performance Programs and data are stored in memory Instruction are fetched one by one over the bus to the processor, and a
copy is placed in the cache. When a data is executed by an instruction a copy is placed in the cache Later if the same instruction or data item is needed a second time , it’s
red directly from the cache. Execution of instruction and data from the cache is faster than the main
memory
04/21/23 445_02 21
MainMemory
ProcessorCacheMemory
04/21/23 445_02 22
Processor Clock
Period (P)
Rate (R)
CLK
R = 1/P
1 GHz = 1/1ns
04/21/23 445_02 23
Performance Equation
Processor Execution Time (T) Number of Machine Language Instructions (N) Average Steps per Machine Instruction (S) Clock Rate (R)
Performance of a processor of 2.4 GHz & a processor of 2.8 GHz of another type.
T N S
R
04/21/23 445_02 24
Pipelining
F1 E1
I1
F2 E2
I2
F3 E3
I3
Sequential Execution
F1 E1I1
F2 E2I2
F3 E3I3
Pipelined Execution
04/21/23 445_02 25
Parallel Processing
Parallel Execution Superscalar (execution of several instructions in every clock cycle)
Multiprocessors Shared-Memory
Multicomputers Message-Passing
04/21/23 445_02 26
CISC vs RISC
Complex Instruction Set Computers (CISC) Smaller N Larger S
Reduced Instruction Set Computers (RISC) Larger N Smaller S Easier to Pipeline
04/21/23 445_01 27
History
First Generation (miliseconds) von Neumann (stored program) Vacuum Tubes Magnetic Core Memory Teletypes/Magnetic Tapes
Second Generation (microseconds) Transistor High-level Languages (C++, Pascal, Fortran)
Compilers (translate HHL to M/C instruction)
I/O Processors
04/21/23 445_01 28
History
Third Generation Integrated Circuits Microprogramming Parallelism/Pipelining Operating Systems (sharing) Cache/VM
Fourth Generation (nanoseconds) VLSI (Single Chip Microprocessor) Personal Computers Networks
Problem 1-3
Load A,R0 Load B,R1 Add R0,R1 Store R1,C
(b) Yes; Move B,C Add A,C
04/21/23 445_02 29
04/21/23 445_02 30
Review
Binary Hex 2's-complement Overflow