Professional Documents
Culture Documents
Chapter 1 Principle of Computers
Chapter 1 Principle of Computers
Chapter 1 Principle of Computers
1000M
1000M~2004
~2004
1000
256M
100
512M
Mbit capacity
64M
10
16M
1M
64K
0.1
4M
256K
15K
0.01
0.001
1976
1978
1980
1982
1984
1986
1988
1990
1992
1994
1996
1998
2000
Abstraction layers
Memory hierarchy
There is a hierarchy of memory
In order to maximize processor throughput, the fastest memory is
closest to the processor
Primary Cache
- Also the most expensive
CPU
2K- 1,024K byte (<1ns)
Notice:
- The exponential rise in capacity
Bus Interface Unit
with each layer
- The exponential rise in access time
Secondary Cache
256K - 4MByte (10ns)
in each layer
Main Memory
1M 2 Gbyte (30 ns)
Hard Disk
40 - 250 GByte ( 100,000 ) ns
Tape Backup
50G - 10TByte (seconds)
Internet
All knowledge/Forever
24.56345 V
Direction of signal
Problems:
Measuring large numbers is difficult, slow and expensive
How do you represent +/- 32,673,102,093?
Zero volts
(ground)
Parallel transmission of 0 to 9
Represent the data value as a voltage or current along multiple
electrical conductors
Let each wire represent one decade of the number
Only need to divide up the voltage on each wire into 10 steps
0 V to 9 volts
Can have considerable slop between values before it causes
problems
4.2
RADIO
SHACK
2
4
5
6
3
4
5
Zero volts
(ground)
on
off
on
off
off
on
on
on
off
off
off
on
on
on
on
off
1
0
1
0
0
1
1
1
0
0
0
1
1
1
1
0
on/off
on/offswitch
switch
C
CC==AAand
andBB
Battery Symbol
Light bulb (load)
Decimal representation
Writing a number is the same in all number systems
Each column of the number represents the base that the number
is raised to
Example: 65,536
= 216
10
104
103
102
101
100
Notice
Noticehow
howeach
eachcolumn
columnisisweighted
weightedby
by
the
thevalue
valueof
ofthe
thebase
baseraised
raisedto
tothe
thepower
power
+
6 x 100 =
3 x 101 =
30
5 x 102 =
500
5 x 103 =
5000
6 x 104 =
60000
65536
10
Binary numbers
Just like decimal numbers, binary numbers are represented as the
power of the base:
Example: 10101100
Bases of Hex and Octal
1
0
1
0
1
1
0
0
x 27
x 26
x 25
x 24
x 23
x 22
x 21
x 20
= 128
=
0
= 32
=
0
=
8
=
4
=
0
=
0
128
64
27
26
32
25
16
24
10101100
8
23
4
22
21
1
172
1
20
10
172
11
81
128
64
27
26
2 (2
6
32
25
2 ) 2 (2
0
0 thru 192
16
24
80
8
23
4
22
21
2 ) 2 (2
0
0 thru 56
2
20
2
172
2)
4 x 80 = 4
5 x 81 = 40
2 x 82 = 128
0 thru 7
12
160
128
64
27
26
25
24
23
24(23
22
21
20)
20 ( 23
32
16
4
22
21
22
1
21
1
1
20
20)
13
D0
Nibble (4)
D7
D0
Byte (8)
D15
D31
D0
Word (16)
D0
Long (32)
D63
D0
Double (64)
D127
D0
VLIW (128)
14
0000
0001
0010
0011
0101
0100
carry
the
one
0110
0111
1000
1001
0001
0000
15