Documente Academic
Documente Profesional
Documente Cultură
Computer Architecture
Lecture 1-2
Shantanu Dutt (http://www.ece.uic.edu/~dutt)
Adapted from (with adds and deletes):
CS152
Computer Architecture and Engineering
Lecture 1
August 27, 1997
Dave Patterson (http.cs.berkeley.edu/~patterson)
lecture slides: http://www-inst.eecs.berkeley.edu/~cs152/
cs 152 L1 Intro.1
Overview
Intro to Computer Architecture
Administrative Matters
Course Style, Philosophy and Structure
Organization and Anatomy of a Computer
cs 152 L1 Intro.2
Computer Architecture =
cs 152 L1 Intro.3
SOFTWARE
-- Instruction Formats
-- Modes of Addressing and Accessing Data Items and Instructions
-- Exceptional Conditions
cs 152 L1 Intro.4
software
instruction set
hardware
cs 152 L1 Intro.5
(v1, v3)
1992-97
HP PA-RISC
(v1.1, v2.0)
1986-96
Sun Sparc
(v8, v9)
1987-95
SGI MIPS
1986-96
Intel
(8086,80286,80386,
80486,Pentium, MMX, ...)
1978-96
cs 152 L1 Intro.6
Instruction Categories
Load/Store
Computational
Jump and Branch
Floating Point
- coprocessor
Memory Management
Special
R0 - R31
PC
HI
LO
rs
rt
OP
rs
rt
OP
cs 152 L1 Intro.7
rd
sa
funct
immediate
jump target
Organization
Capabilities & Performance
Characteristics of Principal
Functional Units (FUs)
(e.g., Registers, ALU, Shifters, Logic
Units, ...)
ISA Level
FUs & Interconnect
Example Organization
TI SuperSPARCtm TMS390Z50 in Sun SPARCstation20
MBus Module
SuperSPARC
Floating-point Unit
L2
$
Integer Unit
Inst
Cache
Ref
MMU
Data
Cache
CC
MBus
SBus
Store
Buffer
Bus Interface
cs 152 L1 Intro.9
DRAM
Controller
SBus
DMA
SBus
Cards
SCSI
Ethernet
STDIO
serial
kbd
mouse
audio
RTC
Boot PROM
Floppy
Firmware
Instruction Set
Architecture
Technology
Programming
Languages
Applications
Computer
Architecture
Operating
Systems
History
cs 152 L1 Intro.11
Technology
DRAM chip capacity
DRAM
Size
1980
64 Kb
1983
256 Kb
1986
1 Mb
1989
4 Mb
1992
16 Mb
1996
64 Mb
1999
256 Mb
2002
1 Gb
10000000
R10000
Pentium
R4400
i80486
1000000
Transistors
Year
i80386
i80286
100000
R3010
i8086
SU MIPS
i80x86
M68K
MIP S
Alpha
10000
i4004
1000
1970
1975
1980
1985
1990
1995
2000
2005
Memory
DRAM capacity: about 60% per year (4x every 3 years)
Memory speed: about 10% per year
Cost per bit: improves about 25% per year
Disk
capacity: about 60% per year
Log of Performance
Performance Trends
Supercomputers
Mainframes
Minicomputers
Microprocessors
Year
1970
cs 152 L1 Intro.14
1975
1980
1985
1990
1995
Performance
200
150
Intel x86
RISC
introduction
100
50
35%/yr
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
Year
Did RISC win the technology battle and lose the market war?
cs 152 L1 Intro.15
Lotus, DOS, . . .
Multimedia, . . .
The Web, . . .
JAVA, . . .
Large Scientific Computations
???
cs 152 L1 Intro.16
Design
Analysis
Creativity
Cost /
Performance
Analysis
Good Ideas
Bad Ideas
cs 152 L1 Intro.17
Mediocre Ideas
Its exciting!
It has never been more exciting!
It impacts every other aspect of electrical
engineering and computer science
cs 152 L1 Intro.18
-Instruction Set
-Computer Organization
cs 152 L1 Intro.19
cs 152 L1 Intro.20
My Goal
Show you how to understand modern computer
architecture in its rapidly changing form.
Show you how to design by leading you through
the process on challenging design problems
Show you how and why (rationale) of designs--v.
important
Hopefully, be able to guide you to think about and
analyze designs and alternatives
so...
ask questions
come to office hours
go back and fully understand past lectures
be prepared for the next lecture
...
cs 152 L1 Intro.21
Grading
Grade breakdown
Final Exam:
40%
Midterm Exam
CU Design Projects:
Homework Assignments
20%
20%
20%
cs 152 L1 Intro.22
Course Problems
Cant make midterm
only for before-the-fact demonstrable emergency
What is cheating?
Studying together in groups is encouraged
0 for problem
0 for homework assignment
subtract full value for assignment
subtract 2X full value for assignment
Exams
0 for problem
0 for exam
cs 152 L1 Intro.24
cs 152 L1 Intro.26
Levels of Representation
temp = v[k];
High Level Language
Program
v[k] = v[k+1];
v[k+1] = temp;
Compiler
lw $15,
lw $16,
sw
sw
Assembly Language
Program
Assembler
Machine Language
Program
0000
1010
1100
0101
1001
1111
0110
1000
1100
0101
1010
0000
0110
1000
1111
1001
0($2)
4($2)
$16, 0($2)
$15, 4($2)
1010
0000
0101
1100
1111
1001
1000
0110
0101
1100
0000
1010
1000
0110
1001
1111
Machine Interpretation
Control Signal
Specification
cs 152 L1 Intro.27
Levels of Organization
SPARCstation 20
Computer
Workstation Design Target:
25% of cost on Processor
25% of cost on Memory
(minimum memory size)
Rest on I/O devices,
power supplies, box
cs 152 L1 Intro.28
Processor
Memory
Devices
Control
Input
Datapath
Output
Execution Cycle
Instruction
Fetch
Instruction
Decode
Operand
Fetch
Execute
Result
Store
Next
Instruction
cs 152 L1 Intro.29
Determine
successor
instruction;
generally be combined w/ Decode
can
The SPARCstation 20
SPARCstation 20
Memory SIMMs
Memory
Controller
SIMM Bus
MBus
MBu
s
MBu
s
Disk
Slot 1
Slot 0
MSBI
cs 152 L1 Intro.30
SBus
Slot 1
SBus
Slot 3
SBus
Slot 0
SBus
Slot 2
SEC
MACIO
SBus
Keyboard
Floppy
& Mouse
Disk
Tape
SCSI
Bus
External Bus
SIMM Bus
Memory
Controller
Processor/Mem Bus:
MBus
MSBI
SEC
MACIO
cs 152 L1 Intro.31
MBus
Module
Processor
MBus
MBu
s
MBu
s
Slot 1
Registers
Datapath
Internal
Cache
Control
Slot 0
External Cache
cs 152 L1 Intro.32
Memory
SIMM Slot 7
SIMM Slot 6
SIMM Slot 5
SIMM Slot 4
SIMM Slot 3
SIMM Slot 2
SIMM Slot 1
Memory
Controller
SIMM Slot 0
SPARCstation 20
DRAM SIMM
cs 152 L1 Intro.33
DRAM
DRAM
DRAM
DRAM
DRAM
DRAM
DRAM
DRAM
DRAM
DRAM
Disk
SBus
Slot 1
SBus
Slot 3
SBus
Slot 0
SBus
Slot 2
Tape
SBus
SEC
cs 152 L1 Intro.34
MACIO
Keyboard
Floppy
& Mouse
Disk
SCSI
Bus
External Bus
cs 152 L1 Intro.35
Disk
Tape
SCSI
Bus
SBus
Slot 1
SBus
Slot 3
SBus
Slot 0
SBus
Slot 2
SBus
cs 152 L1 Intro.36
cs 152 L1 Intro.37
Keyboard
Floppy
& Mouse
Disk
External Bus