Documente Academic
Documente Profesional
Documente Cultură
William Stallings
Computer Organization
and Architecture
10th Edition
Chapter
1
+
Computer Architecture
Computer Organization
Attributes of a system visible to
the programmer
Have a direct impact on the logical
execution of a program
Computer
Architecture
Architectural
attributes
include:
Organization
al attributes
include:
Computer
Organization
IBM System
370 Architecture
Hierarchical system
Set of interrelated
subsystems
Hierarchical nature of
complex systems is
essential to both their
design and their description
Structure
Function
The operation of
individual components as
part of the structure
Function
Data processing
Data storage
Short-term
Long-term
Data movement
Control
COMPUTER
Main
memory
I/O
System
Bus
CPU
CPU
Registers
Structure
Internal
Bus
Control
Unit
CONTROL
UNIT
Sequencing
Logic
Control Unit
Registers and
Decoders
Control
Memory
ALU
+
CPU controls the
System Interconnection
some mechanism that
provides for communication
among CPU, main memory,
and I/O
2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
CPU
Major structural
components:
Control Unit
Registers
CPU Interconnection
Core
Processor
Cache Memory
MOTHERBOARD
Main memory chips
Processor
chip
I/O chips
PROCESSOR CHIP
Core
Core
L3 cache
Core
Core
Core
Core
L3 cache
Core
Core
CORE
Arithmetic
Instruction and logic
logic
unit (ALU)
Load/
storelogic
L1 I-cache
L1 data cache
L2 instruction
cache
L2 data
cache
Figure 1.3
Motherboard with Two Intel Quad-Core Xeon
Processors
2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Figure 1.4
zEnterprise
EC12
Processor Unit
(PU)
Chip Diagram
Figure 1.5
zEnterprise
EC12
Core Layout
History of Computers
First Generation: Vacuum Tubes
IAS computer
Completed in 1952
MQ
Inputoutput
equipment
(I, O)
Arithmetic-logic
circuits
MBR
Instructions
and data
Instructions
and data
M(0)
M(1)
M(2)
M(3)
M(4)
PC
IBR
MAR
IR
Main
memory
(M)
Control
signals
M(4092)
M(4093)
M(4095)
Control
circuits
0 1
39
sign bit
opcode(8 bits)
20
28
opcode(8 bits)
39
Registers
Memory buffer
register (MBR)
Memory address
register (MAR)
Instruction register
(IR)
Instruction buffer
register (IBR)
Program counter
(PC)
Accumulator (AC)
and multiplier
quotient (MQ)
Start
Yes
No memory
access
required
Fetch
cycle
IR IBR (0:7)
MAR IBR (8:19)
Is next
instruction
in IBR?
No
MAR PC
MBR M(MAR)
IR MBR (20:27)
MAR MBR (28:39)
No
Left
instruction
required?
PC PC +1
Decodeinstruction in IR
AC
Go to M(X, 0:19)
M(X)
Yes
Execution
cycle
MBR M(MAR)
AC AC +M(X)
If AC >0 then
go to M(X, 0:19)
PC MAR
AC MBR
IsAC >0?
No
MBR M(MAR)
AC AC +MBR
Instruction Type
Opcode
00001010
00001001
00100001
Data transfer
00000001
00000010
00000011
Unconditional
branch
00000100
00001101
00001110
00001111
Conditional branch
00000101
00000111
00000110
00001000
00001011
Arithmetic
00001100
00010100
00010101
00010010
Address modify
00010011
Symbolic
Representation
LOAD MQ
Description
Transfer contents of register MQ to the
accumulator AC
LOAD MQ,M(X)
Transfer contents of memory location X to
MQ
STOR M(X)
Transfer contents of accumulator to memory
location X
LOAD M(X)
Transfer M(X) to the accumulator
LOAD M(X)
Transfer M(X) to the accumulator
LOAD |M(X)|
Transfer absolute value of M(X) to the
accumulator
LOAD |M(X)|
Transfer |M(X)| to the accumulator
JUMP M(X,0:19)
Take next instruction from left half of M(X)
JUMP M(X,20:39)
Take next instruction from right half of M(X)
JUMP+ M(X,0:19)
If number in the accumulator is nonnegative,
take next instruction from left half of M(X)
0
JU
If number in the
0
MP
accumulator is nonnegative,
0
+
take next instruction from
1
M(X
right half of M(X)
0
,20:
0
39)
0
0
ADD M(X)
Add M(X) to AC; put the result in AC
ADD |M(X)|
Add |M(X)| to AC; put the result in AC
SUB M(X)
Subtract M(X) from AC; put the result in AC
SUB |M(X)|
Subtract |M(X)| from AC; put the remainder
in AC
MUL M(X)
Multiply M(X) by MQ; put most significant
bits of result in AC, put least significant bits
in MQ
DIV M(X)
Divide AC by M(X); put the quotient in MQ
and the remainder in AC
LSH
Multiply accumulator by 2; i.e., shift left one
bit position
RSH
Divide accumulator by 2; i.e., shift right one
position
STOR M(X,8:19)
Replace left address field at M(X) by 12
rightmost bits of AC
STOR M(X,28:39)
Replace right address field at M(X) by 12
rightmost bits of AC
Table 1.1
The IAS
Instruction Set
History of Computers
Second Generation:
Transistors
Smaller
Cheaper
Table 1.2
Computer Generations
Generation
Approximate
Dates
19461957
Vacuum tube
2
3
19571964
19651971
4
5
6
19721977
19781991
1991-
Transistor
Small and medium scale
integration
Large scale integration
Very large scale integration
Ultra large scale integration
Technology
Typical Speed
(operations per second)
40,000
200,000
1,000,000
10,000,000
100,000,000
>1,000,000,000
Peripheral devices
Magtape
units
CPU
Data
channel
Card
punch
Line
printer
Card
reader
Drum
Multiplexor
Data
channel
Data
channel
Disk
Disk
Hypertapes
Memory
Data
channel
Teleprocessing
equipment
History of Computers
Third Generation: Integrated Circuits
Discrete component
Input
Boolean
logic
function
Output
Input
Binary
storage
cell
Read
Write
Activate
signal
(a) Gate
Output
Integrated
Circuits
A computer consists of
gates, memory cells, and
interconnections among
these elements
Wafer
Chip
Gate
Packaged
chip
1947 50
55
60
65
70
75
80
85
90
95
2000
05
100 bn
10 bn
1 bn
100 m
10 m
100,000
10.000
1,000
100
10
1
11
Moores Law
1965; Gordon Moore co-founder of Intel
The cost of
computer
logic and
memory
circuitry has
fallen at a
dramatic
rate
The electrical
path length
is shortened,
increasing
operating
speed
Computer
becomes
smaller and is
more
convenient to
use in a
variety of
environments
Reduction in
power and
cooling
requirements
Fewer
interchip
connections
IBM System/360
Announced in 1964
+ Family Characteristics
Similar or
identical
instruction set
Similar or
identical
operating
system
Increasing
speed
Increasing
number of I/O
ports
Increasing
memory size
Increasing cost
Console
controller
CPU
Main
memory
I/O
module
Omnibus
I/O
module
LSI
Later
Generation
s
Large
Scale
Integratio
n
VLSI
Very Large
Scale
Integration
Semiconductor Memory
Microprocessors
2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
ULSI
Ultra Large
Scale
Integration
Semiconductor Memory
In 1970 Fairchild produced the first relatively capacious semiconductor
memory
Non-destructive
In 1974 the price per bit of semiconductor memory dropped below the price
perdecline
bit ofincore memory
There has been a continuing and rapid
Developments in memory and processor
memory cost accompanied by a corresponding
increase in physical memory density
Microprocessors
Birth of microprocessor
More and more elements were placed on each chip so that fewer
and fewer chips were needed to construct a single computer
processor
8008
1972
8080
1974
Clock speeds
108 kHz
108 kHz
2 MHz
Bus width
Number of
transistors
Feature size
(m)
Addressable
memory
4 bits
8 bits
8 bits
8086
1978
5 MHz, 8 MHz, 10
MHz
16 bits
2,300
3,500
6,000
29,000
29,000
10
640 Bytes
16 KB
64 KB
1 MB
1 MB
Introduced
8088
1979
5 MHz, 8 MHz
8 bits
80286
386TM DX
386TM SX
1982
6 MHz - 12.5
MHz
16 bits
1985
16 MHz - 33
MHz
32 bits
1988
16 MHz - 33
MHz
16 bits
486TM DX
CPU
1989
25 MHz - 50
MHz
32 bits
134,000
275,000
275,000
1.2 million
1.5
0.8 - 1
16 MB
4 GB
16 MB
4 GB
1 GB
64 TB
64 TB
64 TB
8 kB
486TM SX
1991
16 MHz - 33
MHz
32 bits
Pentium
1993
60 MHz - 166
MHz,
32 bits
Pentium Pro
1995
150 MHz - 200
MHz
64 bits
Pentium II
1997
200 MHz - 300
MHz
64 bits
1.185 million
3.1 million
5.5 million
7.5 million
0.8
0.6
0.35
4 GB
4 GB
64 GB
64 GB
64 TB
64 TB
64 TB
8 kB
8 kB
64 TB
512 kB L1 and 1
MB L2
512 kB L2
Pentium 4
1999
450 - 660 MHz
2000
1.3 - 1.8 GHz
2006
1.06 - 1.2 GHz
Corei7 EE
4960X
2013
4 GHz
64 bits
64 bits
64 bits
64 bits
Number of
transistors
Feature size (nm)
Addressable
memory
Virtual memory
9.5 million
42 million
167 million
1.86 billion
250
180
65
22
64 GB
64 GB
64 GB
64 GB
64 TB
64 TB
64 TB
Cache
512 kB L2
256 kB L2
2 MB L2
64 TB
1.5 MB L2/15
MB L3
6
Introduced
Clock speeds
Bus
wid
th
Number of cores
Core2 Duo
Two processor families are the Intel x86 and the ARM
architectures
8086
80286
A more
Extension of
powerful 16the 8086
bit machine
enabling
addressing a
Has an
16-MB
instruction
memory
cache, or
instead of just
queue, that
1MB
prefetches a
few
instructions
before they
are executed
The first
appearance of
the x86
architecture
The 8088 was
a variant of
this processor
and used in
IBMs first
personal
computer
(securing the
success of
2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Intel
80386
80486
Introduced the
use of much
more
sophisticated
and powerful
cache
technology
and
sophisticated
instruction
pipelining
Also offered a
built-in math
coprocessor
Pentium Pro
Continued the move into superscalar organization with aggressive use of register renaming,
branch prediction, data flow analysis, and speculative execution
Pentium II
Incorporated Intel MMX technology, which is designed specifically to process video, audio, and
graphics data efficiently
Pentium III
Incorporated additional floating-point instructions
Streaming SIMD Extensions (SSE)
Pentium 4
Includes additional floating-point and other enhancements for multimedia
Core
First Intel x86 micro-core
Core 2
Embedded Systems
Custom
logic
Processor
Memory
Diagnostic
port
Human
interface
A/D
conversion
Sensors
D/A
Conversion
Actuators/
indicators
Sensor/actuator technology
Personal technology
It is the fourth generation that is usually thought of as the IoT and it is marked
by the use of billions of embedded devices
Embedded
Operating
Systems
Application Processors
versus
Dedicated Processors
Application processors
General-purpose in nature
Dedicated processor
Processor
Analogdata
acquisition
A/D
converter
RAM
Temporary
data
Analogdata
transmission
D/A
converter
ROM
Program
and data
Send/receive
data
Serial I/O
ports
EEPROM
Parallel I/O
ports
TIMER
Peripheral
interfaces
System
bus
Permanent
data
Timing
functions
Is not programmable once the program logic for the device has been
burned into ROM
ARM
Refers to a processor architecture that has evolved
from RISC design principles and is used in embedded
systems
Family of RISC-based microprocessors and
microcontrollers designed by ARM Holdings,
Cambridge, England
Chips are high-speed processors that are known for
their small die size and low power requirements
Probably the most widely used embedded processor
architecture and indeed the most widely used
processor architecture of any kind in the world
Acorn RISC Machine/Advanced RISC Machine
+
ARM Products
Cortex-M
Cortex-R
CortexA/CortexA50
Cortex-M0
Cortex-M0+
Cortex-M3
Cortex-M4
S e c u r ity
A n a lo g In te rf a c e s
H a rd w a re
A ES
A /D
conv e rte r
D /A
conv e r te r
T im e rs & T rig g e rs
P e rip h
b u s in t
T im e r/
c o u n te r
Low
e n e rg y
R eal
tim e c tr
P u ls e
W a tc h c o u n te r d o g tm r
S e ria l In te rfa c e s
P in
re set
U SA RT
U SB
U A RT
Low e n e rg y
U A RT
G e n e ra l E x te rn a l
p u rp o se
In te rI/O
ru p ts
P e rip h e ra l b u s
3 2 - b it b u s
V o lta g e
c o m p a ra to r
H ig h fre quency R C
o s c illa to r
H ig h fre q
c ry s ta l
o s c illa to r
F la s h
m e m o ry
64 kB
B ro w n out dete c to r
E n e rg y m a n a g e m e n t
L o w fre quency R C
o s c illa to r
L o w fre q
c ry s ta l
o s c illa to r
M em o ry
p ro te c tio n u n it
V o lta g e
re g u la to r
P o w e ro n re se t
SRA M
m e m o ry
64 kB
D ebug
in te rfa c e
D M A
c o n tro lle r
C o rte x -M 3 p ro c e s s o r
C o re an d m e m o ry
C lo c k m a n a g e m e n t
Microcontroller Chip
IC o d e
in te rfa c e
SR A M &
p e rip h e ra l I/F
B u s m a trix
D e b u g lo g ic
D A P
N V IC
M e m o ry
p ro te c tio n u n it
A R M
co re
ETM
Cortex-M3 Core
N V IC
in te rfa c e
ETM
in te rfa c e
Cortex-M3
Processor
3 2 -b it A L U
H a rd w a re
d iv id e r
3 2 -b it
m u ltip lie r
C o n tro l
lo g ic
Thum b
decode
In s tru c tio n
in te rfa c e
D a ta
in te rfa c e
Cloud Computing
Cloud Networking
One example is the provisioning of high-performance and/or highreliability networking between the provider and subscriber
Cloud Storage
Summary
Basic Concepts
and Computer
Evolution
Chapter 1
Microprocessors versus
microcontrollers
Embedded systems
ARM architecture
ARM evolution
Cloud computing
Basic concepts
ARM products
Cloud services