Professional Documents
Culture Documents
Computer Arch
Computer Arch
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
Overvie
w
Intro to Computer Architecture
Administrative Matters
Course Style, Philosophy and Structure
Organization and Anatomy of a Computer
cs 152 L1 Intro.2
Computer Architecture =
Instruction Set Architecture +
Machine Organization
cs 152 L1 Intro.3
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
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
Organizatio
n
Example
Organization
TI SuperSPARCtm TMS390Z50 in Sun SPARCstation20
MBus Module
SuperSPARC
Floating-point Unit
L2
$
Integer Unit
Inst
Cache
Ref
MMU
Data
Cache
Store
Buffer
Bus Interface
cs 152 L1 Intro.9
CC
MBus
SBus
SBus
DMA
SBus
Cards
SCSI
Ethernet
DRAM
Controller
STDIO
serial
kbd
mouse
audio
RTC
Boot PROM
Floppy
Firmware
Instruction Set
Architecture
cs 152 L1 Intro.10
Technology
Programming
Languages
Applications
Computer
Architecture
Operating
Systems
cs 152 L1 Intro.11
History
Technology
DRAM chip capacity
100000000
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
So larger memory => more challenging applications (e.g.,
atmospheric modeling, astrophysics modeling)
Disk
capacity: about 60% per year
So huge disk capacities => large data storage (video, music
files, large data for various applications)
cs 152 L1 Intro.13
Performance Trends
Log of Performance
Supercomputers
Mainframes
Minicomputers
Microprocessors
Year
1970
cs 152 L1 Intro.14
1975
1980
1985
1990
1995
Performance
RISC
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
Applications and
Languages
CAD, CAM, CAE, . . .
Lotus, DOS, . . .
Multimedia, . . .
The Web, . . .
JAVA, . . .
Large Scientific Computations
???
cs 152 L1 Intro.16
Measurement and
Evaluation
Design
Analysis
Creativity
Cost /
Performance
Analysis
Good Ideas
Bad Ideas
cs 152 L1 Intro.17
Mediocre Ideas
Patterson Fall 97 UCB
cs 152 L1 Intro.18
-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
Gradin
g
Grade breakdown
Final Exam:
Midterm Exam
40%
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
Work must be your own
Common examples of cheating: running out of time on a
assignment and then pick up output, take homework from box and
copy, person asks to borrow solution just to take a look, copying
an exam question, ...
Better off to do the assignment for your own understanding
Cheating on assignment, projects will be seriously detrimental to
your understanding of material and thus on your midterm & final
exam performance
Plus penalties
cs 152
Do not do it; it is unethical, dishonest and not good for anyone, the
perpetrator in particular
L1 Intro.23
Patterson Fall 97
UCB
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
0($2)
4($2)
$16, 0($2)
$15, 4($2)
0110
1000
1111
1001
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
cs 152 L1 Intro.28
Computer
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
MBus
Slot 1
MBus
Slot 0
MSBI
cs 152 L1 Intro.30
Disk
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
MBus
Slot 1
MBus
Slot 0
Registers
Datapath
Internal
Cache
Control
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
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
Standard I/O
Devices
SPARCstation 20
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