CAO Basic
CAO Basic
1. “Computer Organization”,Carl
Hamacher, Zvonko Vranesic and
Safwat Zaky, Fifth Edition, McGrawHill
3
DEFINITION OF A
COMPUTER
What is it?
wikipedia
4
GENERATIONS
Abacus
Pascal’s Mechanical Calculator
6
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
Leibniz Calculator
7
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
Programmable devices
Jacquard’s loom
8
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
9
FIRST GENERATION(1940-
1956)
Stored Program Concept(John von Neumann)
Vacuum tubes
10
SECOND GENERATION(1956-
1963)
Transistor
Development of programming languages (COBOL,
FORTRAN)
11
THIRD GENERATION(1964-
1973)
IC technology
Microprogramming, parallelism, pipelining
Cache memory, Virtual memory
12
FOURTH GENERATION(1973-
1985)
VLSI technology
Microprocessors
LAN, WAN, Internet
13
BEYOND THE FOURTH
GENERATION(1985-??)
AI
Parallel processing
Networking
14
CLASSES OF COMPUTING
APPLICATIONS
• Desktop Computers
Workstations
Mainframes
Supercomputers
Minicomputers
• Servers
• Embedded computers
15
DESKTOP
COMPUTER
16
SERVERS
17
SUPERCOMPUTERS
- Tsubame
- Earth simulator
- Param
Supercomputer
18
EMBEDDED COMPUTER
19
Handheld/Pocket PC PDA Tablet PC
Desktop Laptop
20
Workstation
21
Mainframe
22
Supercomputer
23
UNDERSTANDING PROGRAM
PERFORMANCE
The performance of a program depends on a
combination of the effectiveness of the algorithms
used in the program, the software systems used to
create and translate the program into machine
instructions, and the effectiveness of the computer
in executing those instructions
24
BELOW YOUR PROGRAM
Application software
System software
Hardware
25
SYSTEM SOFTWARE
26
OPERATING SYSTEM
27
COMPLIER
28
HIGH-LEVEL LANGUAGE TO
THE LANGUAGE OF
HARDWARE
29
HIGH-LEVEL LANGUAGE TO
THE LANGUAGE OF
HARDWARE
30
UNDER THE COVERS
31
INPUT
32
OUTPUT DEVICE
33
OPENING THE BOX
34
OPENING THE BOX
36
DRAM – Memory built as an integrated circuit, it provides
random access to any location
37
LAST WEEK QUESTION
38
Liquid crystal flow like a liquid, but have the
molecules in the liquid arranged and
oriented in a crystal-like way.
40
Nonvolatile memory – A form of memory that retains
data even in the absence of a power source and that is
used to store programs between runs. Magnetic disk is
nonvolatile and DRAM is not.
41
Primary Memory : Also called main memory. Volatile
memory used to hold programs while they are running;
typically consists of DRAM in today’s computers
Secondary Memory : Nonvolatile memory used to store
programs and data between runs; typically consists of
magnetic disks in today's computers
42
Magnetic disk ( Also called Hard disk )
43
COMMUNICATING WITH
OTHER COMPUTERS
Network
LAN
WAN
Advantages
-Communication
- Resource Sharing
- Nonlocal access
44
TECHNOLOGIES FOR
BUILDING PROCESSORS AND
MEMORIES
Silicon – A natural element which is a semiconductor
45
REAL STUFF: MANUFACTURING
PENTIUM 4 CHIPS
Silicon ingot
Slicer
Blank wafers
Patterned wafers
Wafer tester
Dicer
Tested dies
46
47
MOORE’S LAW IN MICROPROCESSORS
1000
10
P6
Pentium® proc
1 486
386
0.1 286
8085 8086
0.01 8080
8008
4004
0.001
1970 1980 1990 2000 2010
Year
Transistors on Lead Microprocessors double every 2 years
Courtesy, Intel 48
METRICS TO EVALUATE A
COMPUTER
Metrics
Speed – delay, frequency
Power Dissipation
Energy to perform a function
Cost
Scalability
Reliability
49
BASIC OPERATIONAL
CONCEPTS
To perform a given task, an appropriate program
consisting of a list of instruction is stored in the
memory. Individual instructions are brought from
the memory into the processor, which executes the
specified operation.
50
Add LOCA, R0
Load LOCA, R1
Add R1, R0
51
Memory
MAR MDR
Control
PC R
0
R
1
IR Processor
ALU
R
n- 1
n general purpose
registers
52
TERMS USED
53
FUNCTIONS…
54
Program Counter : is a register, that contains the
memory address of the instruction currently being
executed. During the execution of the current
instruction, the contents of program counter is
updated to correspond to the address of the next
instruction.
55
Memory Address Register (MAR) : holds the
address of the memory location to or from which data
is to be transferred.
56
General- purpose Registers : are used for
holding data, intermediate results of operations.
They are also known as scratch-pad registers.
57
STEPS INVOLVING
INSTRUCTION FETCH AND
EXECUTION
INSTRUCTION FETCH
58
The addressed word (here it is the first instruction of
the program) is read out of memory and loaded into the
MDR
59
INSTRUCTION EXECUTION
60
Fetching the operands from the memory
requires sending the memory location
address to the MAR and initiating a Read
cycle.
61
The result is sent to MDR and the address
of the location where the result is to be
stored is sent to MAR and Write cycle is
initiated.
62
BUS STRUCTURES
Single-bus structure
63
Data Bus : It is used for transmission of data. The
number of data lines correspond to the
number of bits in a word.
64
BUS STRUCTURES
Single-bus structure
Two-bus structure
65
Input Output Memory Processor
Single-bus structure
• Only two units can actively use the bus at any given time
• Devices connected to bus vary in speed
66
ADVANTAGES OF SINGLE-BUS
STRUCTURE
Low Cost
Flexibility for attaching peripheral devices
Draw Back
low operating speed
Found in small computers such as minicomputers
and microcomputers.
67
TWO-BUS STRUCTURE
I/O bus
Input
Memory
Processor
Output
68
The bus is said to perform two distinct functions by
connecting the I/O units with memory and processor
unit with memory. The processor interacts with the
memory through a memory bus and handles
input/output functions over I/O bus.
69
PERFORMANCE
70
Execution depends on all units in a computer system
Processor Time depends on the hardware involved in the execution of
individual machine Instruction
Main Cache
memory memory Processor
Bus
71
PROCESSOR CLOCK
72
500 millions cycles per second – 500 MHz
73
BASIC PERFORMANCE
EQUATION
NxS
T =
R
74
INSTRUCTION SET
RISC ( Reduced Instruction Set Computers)
CISC ( Complex Instruction Set Computers)
75
76
MULTIPROCESSORS AND
MULTICOMPUTERS
77