Computer Architecture Basics Explained
Computer Architecture Basics Explained
and Organization
DS1CAO
Dr Abdallah Handoura
ahandoura@[Link]
Dr Abdallah Handoura 1
Chapter 1
Basic Concepts and Computer Evolution
Dr Abdallah Handoura 2
1
Computer Architecture
Computer Organization
• Attributes of a system • Instruction set, number of bits
visible to the programmer used to represent various data
• Have a direct impact on the types, I/O mechanisms,
logical execution of a techniques for addressing
program memory
Architectural
Computer
attributes
Architecture
include:
Organizational
Computer
attributes
Organization
include:
Dr Abdallah Handoura
Dr Abdallah Handoura 4
2
Structure and Function
• Hierarchical system
• Set of interrelated
subsystems • Structure
• The way in which
• Hierarchical nature of components relate to each
complex systems is essential other
to both their design and their • Function
description
• The operation of individual
• Designer need only deal with components as part of the
a particular level of the structure
system at a time
• Concerned with structure
and function at each level
Dr Abdallah Handoura 5
Function
• There are four basic functions that a computer can
perform:
• Data processing
• Data may take a wide variety of forms and the range of processing
requirements is broad
• Data storage
• Short-term
• Long-term
• Data movement
• Input-output (I/O) - when data are received from or delivered to a device
(peripheral) that is directly connected to the computer
• Data communications – when data are moved over longer distances, to or
from a remote device
• Control
• A control unit manages the computer’s resources and orchestrates the
performance of its functional parts in response to instructions
Dr Abdallah Handoura 6
3
Structure COMPUTER
Main
I/O
memory
data Control
I/O – moves data Unit
CPU
Major structural
• Control Unit
components:
• Controls the operation of the CPU
and hence the computer
• Registers
• Provide storage internal to the
CPU
• CPU Interconnection
• Some mechanism that provides
for communication among the
control unit, ALU, and registers
8
Dr Abdallah Handoura
4
Multicore Computer MOTHERBOARD
Structure Main memory chips
Processor
I/O chips chip
unit
L3 cache L3 cache
• Core
• An individual processing unit on a processor chip Core Core Core Core
• May be equivalent in functionality
to a CPU on a single-CPU system
• Specialized processing units are also CORE
referred to as cores Instruction
Arithmetic
and logic Load/
• Processor
logic unit (ALU) store logic
Dr Abdallah Handoura 9
Cache Memory
• Multiple layers of memory between the processor and main
memory
• Is smaller and faster than main memory
• Used to speed up memory access by placing in the cache data from
main memory that is likely to be used in the near future
• A greater performance improvement may be obtained by using
multiple levels of cache, with level 1 (L1) closest to the core and
additional levels (L2, L3, etc.) progressively farther from the core
Figure 1.3
Dr Abdallah Handoura 10
10
5
Figure 1.4
Motherboard
with Two Intel
Quad-Core
Xeon
Processors
Figure 1.5
zEnterprise
Figure 1.3
EC12
Motherboard with Two Intel Quad-Core Xeon Processors Layout
Core
11
Dr Abdallah Handoura
11
Computer Generations
Approximate Typical Speed
Generation Dates Technology (operations per second)
1 1946–1957 Vacuum tube 40,000
2 1957–1964 Transistor 200,000
3 1965–1971 Small and medium scale 1,000,000
integration
4 1972–1977 Large scale integration 10,000,000
5 1978–1991 Very large scale integration 100,000,000
6 1991- Ultra large scale integration >1,000,000,000
Dr Abdallah Handoura 12
12
6
History of Computers
First Generation: Vacuum Tubes Central processing unit (CPU)
AC MQ
• IAS computer
MBR
Instructions
• Fundamental design and data
13
0 1 39
0 8 20 28 39
opcode (8 bits) address (12 bits) opcode (8 bits) address (12 bits)
Dr Abdallah Handoura 14
14
7
Registers
Memory buffer register • Contains a word to be stored in memory or sent to the I/O unit
(MBR) • Or is used to receive a word from memory or from the I/O unit
Memory address register • Specifies the address in memory of the word to be written from
(MAR) or read into the MBR
Instruction register (IR) • Contains the 8-bit opcode instruction being executed
Accumulator (AC) and • Employed to temporarily hold operands and results of ALU
multiplier quotient (MQ) operations
Dr Abdallah Handoura 15
15
Symbolic
Instruction Type Opcode Representation Description
00001010 LOAD MQ Transfer contents of register MQ to the
accumulator AC
00001001 LOAD MQ,M(X) Transfer contents of memory location X to
MQ
00100001 STOR M(X) Transfer contents of accumulator to memory
Data transfer location X
00000001 LOAD M(X) Transfer M(X) to the accumulator
00000010 LOAD –M(X) Transfer –M(X) to the accumulator
00000011 LOAD |M(X)| Transfer absolute value of M(X) to the
accumulator
00000100 LOAD –|M(X)| Transfer –|M(X)| to the accumulator
Unconditional 00001101 JUMP M(X,0:19) Take next instruction from left half of M(X)
branch 00001110
00001111
JUMP M(X,20:39)
JUMP+ M(X,0:19)
Take next instruction from right half of M(X)
If number in the accumulator is nonnegative,
take next instruction from left half of M(X)
Table 1.1
0 JU If number in the
0 MP accumulator is nonnegative,
Conditional branch 0 + take next instruction from
1
0
0
M(X
,20:
39)
right half of M(X)
The IAS
Instruction Set
0
0
00000101 ADD M(X) Add M(X) to AC; put the result in AC
00000111 ADD |M(X)| Add |M(X)| to AC; put the result in AC
00000110 SUB M(X) Subtract M(X) from AC; put the result in AC
00001000 SUB |M(X)| Subtract |M(X)| from AC; put the remainder
in AC
00001011 MUL M(X) Multiply M(X) by MQ; put most significant
bits of result in AC, put least significant bits
Arithmetic
in MQ
00001100 DIV M(X) Divide AC by M(X); put the quotient in MQ
and the remainder in AC
00010100 LSH Multiply accumulator by 2; i.e., shift left one
bit position
00010101 RSH Divide accumulator by 2; i.e., shift right one
position
00010010 STOR M(X,8:19) Replace left address field at M(X) by 12
rightmost bits of AC
Address modify
00010011 STOR M(X,28:39) Replace right address field at M(X) by 12
rightmost bits of AC (Table can be found on page 17 in the textbook.)
Dr Abdallah Handoura 16
16
8
History of Computers
Second Generation: Transistors
• Smaller
IBM 7094 computer Peripheral devices
• Cheaper Mag tape
units
• Was invented at Bell Labs in 1947 CPU
Card
punch
Data
• It was not until the late 1950’s that fully channel Line
printer
transistorized computers were commercially available Card
reader
• Load programs
• Move data to peripherals
• Libraries perform common computations Figure 1.9 An IBM 7094 Configuration
Dr Abdallah Handoura 17
17
History of Computers
Third Generation: Integrated Circuits
• 1958 – the invention of the integrated circuit
• Discrete component
• Single, self-contained transistor
• Manufactured separately, packaged in their own containers, and
soldered or wired together onto masonite-like circuit boards
• Manufacturing process was expensive and cumbersome
• The two most important members of the third generation were the
IBM System/360 and the DEC PDP-8
Boolean Binary
Input logic Output Input storage Output
function cell
Read
Activate Write
signal
Dr Abdallah Handoura 18
Figure 1.10 Fundamental Computer Elements
18
9
• A computer consists of gates,
Integrated memory cells, and
interconnections among these
Circuits elements
• The gates and memory cells are
constructed of simple digital
• Data storage – provided by electronic components
memory cells
• Data processing – provided by
gates • Exploits the fact that such
• Data movement – the paths components as transistors,
among components are used to resistors, and conductors can be
move data from memory to fabricated from a semiconductor
memory and from memory such as silicon
through gates to memory • Many transistors can be
• Control – the paths among produced at the same time on a
components can carry control single wafer of silicon
signals • Transistors can be connected
with a processor metallization to
form circuits
Dr Abdallah Handoura 19
19
Wafer
Chip
Gate
Packaged
chip
d f
rc
o in
a w
te o
d
st rk
ci
lg a
ra n
te
u l
g t io
si o
m ’s
a tw
e
te n
ro r
in ve
p o
tr rs
o
In
Fi
100 bn
10 bn
1 bn
100 m
10 m
100,000
10.000
1,000
100
10
1
1947 50 55 60 65 70 75 80 85 90 95 2000 05 11
20
10
Family Characteristics
Similar or Similar or
identical identical Increasing speed
instruction set operating system
Increasing
Increasing
number of I/O Increasing cost
memory size
ports
Omnibus
21
LSI
Large
Scale
Later Integration
Generations
VLSI
Very Large
Scale
Integration
ULSI
Ultra Large
Semiconductor Memory Scale
Microprocessors Integration
Dr Abdallah Handoura
22
11
Semiconductor Memory
In 1970 Fairchild produced the first relatively capacious semiconductor memory
In 1974 the price per bit of semiconductor memory dropped below the price per bit of core
memory
There has been a continuing and rapid decline in memory
Developments in memory and processor technologies
cost accompanied by a corresponding increase in
changed the nature of computers in less than a decade
physical memory density
Each generation has provided four times the storage density of the previous generation, accompanied by declining cost
per bit and declining access time
Dr Abdallah Handoura 23
23
Microprocessors
• The density of elements on processor chips continued to rise
• More and more elements were placed on each chip so that fewer and
fewer chips were needed to construct a single computer processor
• 1971 Intel developed 4004
• First chip to contain all of the components of a CPU on a single chip
• Birth of microprocessor
• 1972 Intel developed 8008
• First 8-bit microprocessor
• 1974 Intel developed 8080
• First general purpose microprocessor
• Faster, has a richer instruction set, has a large addressing capability
Dr Abdallah Handoura 24
24
12
Evolution of Intel Microprocessors
25
26
13
Evolution of Intel Microprocessors
27
28
14
Core i7 Core i 9 Core i9 Core i9 Core Ulra 9
8700K 9900KS 12900K 14900K 285K
Feature Size 14 14 10 10 3
Number of Cores 6 8 16 24 24
Dr Abdallah Handoura 29
29
• Two processor families are the Intel x86 and the ARM
architectures
• Current x86 offerings represent the results of decades of design
effort on complex instruction set computers (CISCs)
• An alternative approach to processor design is the reduced
instruction set computer (RISC)
• ARM architecture is used in a wide variety of embedded systems
and is one of the most powerful and best-designed RISC-based
systems on the market
Dr Abdallah Handoura 30
30
15
Highlights of the Evolution of the Intel Product Line:
Dr Abdallah Handoura 31
31
Pentium
• Intel introduced the use of superscalar techniques, which allow multiple instructions to execute in parallel
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
• Extends the Core architecture to 64 bits
• Core 2 Quad provides four cores on a single chip
• More recent Core offerings have up to 10 cores per chip
• An important addition to the architecture was the Advanced Vector Extensions instruction set
32
Dr Abdallah Handoura
32
16
Embedded Systems
Dr Abdallah Handoura 33
33
Custom
logic
Processor Memory
Human Diagnostic
interface port
A/D D/A
conversion Conversion
Actuators/
Sensors
indicators
34
17
The Internet of Things (IoT)
• Term that refers to the expanding interconnection of smart devices,
ranging from appliances to tiny sensors
• Is primarily driven by deeply embedded devices
• Generations of deployment culminating in the IoT:
• Information technology (IT)
• PCs, servers, routers, firewalls, and so on, bought as IT devices by enterprise IT people and
primarily using wired connectivity
• Operational technology (OT)
• Machines/appliances with embedded IT built by non-IT companies, such as medical
machinery, SCADA, process control, and kiosks, bought as appliances by enterprise OT
people and primarily using wired connectivity
• Personal technology
• Smartphones, tablets, and eBook readers bought as IT devices by consumers exclusively
using wireless connectivity and often multiple forms of wireless connectivity
• Sensor/actuator technology
• Single-purpose devices bought by consumers, IT, and OT people exclusively using wireless
connectivity, generally of a single form, as part of larger systems
Dr Abdallah Handoura 35
35
36
18
Processor
Dr Abdallah Handoura 37
37
Dr Abdallah Handoura 38
38
19
ARM Refers to a processor architecture that has evolved from RISC design
principles and is used in embedded systems
Chips are high-speed processors that are known for their small die size and
low power requirements
Cortex-M
• Cortex-M0
Cortex-R • Cortex-M0+
• Cortex-M3
Cortex- • Cortex-M4
A/Cortex-A50
Dr Abdallah Handoura 39
39
Cloud Computing
Dr Abdallah Handoura 40
40
20
Cloud Networking
• Refers to the networks and network management functionality that
must be in place to enable cloud computing
• One example is the provisioning of high-performance and/or high-
reliability networking between the provider and subscriber
• The collection of network capabilities required to access a cloud,
including making use of specialized services over the Internet, linking
enterprise data center to a cloud, and using firewalls and other
network security devices at critical points to enforce access security
policies
Cloud Storage
• Subset of cloud computing
• Consists of database storage and database applications hosted
remotely on cloud servers
• Enables small businesses and individual users to take advantage of
data storage that scales with their needs and to take advantage of a
variety of database applications without having to buy, maintain, and
manage the storage assets
Dr Abdallah Handoura 41
41
21