Advance Operating System-Computer Organization: Chap 1a: Overview
Advance Operating System-Computer Organization: Chap 1a: Overview
3
• A long time ago, human are using their
fingers, stones etc to do calculation. At the
same time, they are trying to create an
apparatus that could facilitate the calculation
process.
4
5
Before
1940
Abakus Counting Device
6
7
Pascaline Machine
• Created on 1642 by Braise Pascal.
• Was the first mechanical machine or
calculator in the world.
• Able to execute addition and subtraction
processes.
8
Babbage Differentiation Machine
• Created by Charles Babbage on 1821.
• Was the first mechanical machine which is used
the steam power.
• Able to do a calculation and printing the output
automatically.
9
Babbage Analytical Engine
• Created on 1842 by Charles Babbage.
• It has five (5) main parts :
• Input unit
• Output unit
• Processing Unit
• Control unit
• Memory unit
10
• His invention has became a
theory model for today's
computer technology.
• Because of that, Charles
Babbage has been known as
The Ancestor of A Modern
Computer.
11
12
After
1940
Starting Point
• This part indicates the starting
point of computer generation.
13
Mark 1
• Created on 1941 by Dr. Howard Aikern in
conjunction with IBM.
• Was the first electro-mechanical computer.
• Size : 55 feet long, 8 feet height and connected
with 800 km of wire.
14
ENIAC
• Electronic Numerical Integrator And Computer
• Was the first electronic computer.
• Created on 1946 by J. Presper Eckert & John W.
Munchly from the University of Pennsylvania. Was
used until 1955.
• Contained of 18,000 vacuum tubes, 70,000
resistors, 10,000 capacitors and 15,000 sq feet of
space is needed. Needs 150 kW power and the
weight is 30 ton.
• Used decimal number and 20 accumulators of 10
digits. digit.
• Able to execute 5,000 addition process per
second.
• 1,000 times faster than Mark 1.
15
ENIAC
Switch
17
Switch
Von Neumann/Turing
18
Apply the concept of embedded code.
Main memory keeps the program and data.
ALU uses binary data.
CU interpret the instruction from memory during
the execution.
CU also controls I/O operation.
Princeton Institute for Advanced Studies
IAS
Completed 1952
Structure of Von Nuemann machine
19
Computer Generation
• Vacuum tube : 1946-1957
• Transistor : 1958-1963
20
Computer Generation
• Large scale integration (LSI) : 1971-1977
3,000 - 100,000 components inside one
chip.
Desktop computers
Personal computers (best-known)
General purpose, variety of software
Subject to cost/performance tradeoff
Classes of Computers-cont.
24
Server computers
Network based; Multiple users access via network
Execute many small tasks at once (web); execute one huge
job (weather forecast supercomputer)
Highcapacity, performance, reliability
Range
Smallfile servers
Supercomputers
Poor Man’s Super Computer
25
What is a Cluster?
“Collection of interconnected
stand-alone computers working
together as a single, integrated
computing resource”
Cluster consists of
Nodes
Network
OS
Cluster middleware
Standard components
Avoiding expensive proprietary
components
Classes of Computers-cont.
26
Embedded computers
Hiddenas components of systems
Examples
Computer in your car
Processor in your cell phone
Stringent power/performance/cost constraints
Prototypical Computer System
27
All computing
applications have a few
key components:
The computer (box) to
do the computing
Input devices (e.g.
keyboard, mouse)
Output devices (e.g.
display, printer)
Input/Output devices
(disks, networks)
Inside the Box: Our Focus
28
Inside the Box: Motherboard
29
Inside the Computer: Motherboard
30
P
R
O
C
E
S
S
O
R
Inside the Computer: Motherboard
31
M
A
I
N
M
E
M
O
R
Y
Inside the Computer: Motherboard
32
I
N
P
U
T
O
U
T
P
U
T
Inside the Computer: Basic Blueprint
33
Inside the Computer: Data Flow
34
Computer
Datapath OUTPUT
Datapath OUTPUT
Datapath OUTPUT
38
Source: H&P Textbook
Important Trends
39
Important Trends
41
Challenges for Hardware Designers
Compiler
lw $15, 0($2)
add $16, $15, $14
Systems software add $17, $15, $13
(OS, compiler) lw $18, 0($12)
lw $19, 0($17)
add $20, $18, $19
sw $20, 0($16)
Assembler
Hardware 000000101100000
110100000100010
43
…
Computer Components
• Input/output devices
44
Wafers and Dies
• The wafer is chopped into many dies – the size of the die
determines yield and cost
46
Processor Technology Trends
47
Memory and I/O Technology Trends
Data: 0011 3
Instruction: 0001000110011 3+3
Program: 000100011001111 swap two
010101000000001 variable
000010001010101 values
Machine Language Assembly Language
52
011100011100011101001100010001 …
Background: Number Systems
2 3 7
25 24 23 22 21 20
2 3 7 Invalid
1 0 1 1 0 0 Valid
Conversion from Binary to Decimal
Convert 100111base 2 to ???base 10
Assign each digit to a column (columns represent base raised
to exponents increasing to left)
Multiply each digit by the column, then add them all together
25 24 23 22 21 20
1 0 0 1 1 1
1 x 2 5 + 0 x 24 + 0 x 23 + 1 x 2 2 + 1 x 2 1 + 1 x 2 0 =
32 + 0 + 0 + 4 + 2 + 1 =
39base10
Conversion from Decimal to Binary
Convert 237base10 to ??????base 2
Find the largest power of 2 in the decimal number
(trial and error)
Record this largest power in its column
Subtract this largest power: 237 – 128 = 109
28 27 26 25 24 23 22 21 20
256 128 64 32 16 8 4 2 1
1
Conversion from Decimal to Binary
REPEAT 1-3 with remainder, until 0
Record 0 for all powers not subtracted
109 45 13 5 1
- 64 = 26 - 32 = 25 - 8 = 23 - 4 = 22 - 1 = 20
45 13 5 1 0
28 27 26 25 24 23 22 21 20
256 128 64 32 16 8 4 2 1
1 1 1 0 1 1 0 1
237base10 = 11101101base 2
Class Example: Convert Binary to Decimal
23 22 21 20
1 0 1 1
1 x 23 + 0 x 22 + 1 x 21 + 1 x 20 =
8 + 0 + 2 + 1 =
11base10
Class Example: Convert Decimal to Binary
23 22 21 20 Base
10
0 0
1 1
1 0 2
1 1 3
1 0 0 4
1 0 1 5
1 1 0 6
1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 10
Back to Machine Language
66
Data: 0011 3
iff A is true
Logic Gate
then C is false
True = 1
A ¬ C
False = 0
What I want you to do
71