Академический Документы
Профессиональный Документы
Культура Документы
Computer
Organization
1
Draft notes of CS:2630
Introduction
2
Draft notes of CS:2630
Technologies
Mechanical
Pneumatic
Electronic
Quantum
Biological
3
Draft notes of CS:2630
Classification
General purpose
Your PC
Special purpose
4
Draft notes of CS:2630
digital computer
Maurice Wilkes
Cambridge U., EDSAC, the first operational stored-
5
Draft notes of CS:2630
Generations
Units of time
1 second
-3
1 millisecond (ms) = 10 second
-6
1 microsecond (s) = 10 second
-9
1 nanosecond (ns) = 10 second
-12
1 picosecond (ps) = 10 second
6
Draft notes of CS:2630
Questions
nanosecond?
7
Draft notes of CS:2630
Arithmetic Input
Logic Unit Data Unit
Control Output
Unit Program
Unit
8
Draft notes of CS:2630
9
Draft notes of CS:2630
Laws of Hardware
Moores Law.
Gates Law.
The speed of software halves every 18 months
(Microsoft is the worst offender. Software bloat almost compensates for
hardware improvement due to Moores law).
Amdahls law
that computation.
10
Draft notes of CS:2630
Compiler
Depends on
11
Draft notes of CS:2630
Assembly Language
Programming
12
Draft notes of CS:2630
Program a robot
(without moving)
13
Draft notes of CS:2630
1. a=x+yz
2. if x > y
then x:= x + y
else x:= x - y
directly understands.
14
Draft notes of CS:2630
15
Draft notes of CS:2630
Signed integers
Fractions
Pictures?
Memory
01001011
11011010
1 00 1 1 0 0 0 Can you read
0o00 the contents
of these
memory
cells?
16
Draft notes of CS:2630
registers
Memory
0 500 x r0
1 24 y r1 ALU
-32
2 z r2
0
3 a r3
Address data processor
load y into r2
a = x + y - z load z into r0
r3 r1 + r2
r0 r3 r0
store r0 into a
17
Draft notes of CS:2630
Load x, r1
Load y, r2
Load z, r0
Add r3, r1, r2
Sub r0, r3, r0
Store r0, a
completely different.
18
Draft notes of CS:2630
0 31
010100 11001100000
0
Load address of x
Operation
code
0 31
110010 11 01 10
Add r3 r1 r2 unused
19
Draft notes of CS:2630
Program
Both are bit strings.
Data Indistinguishable.
MEMORY
crash.
20
Draft notes of CS:2630
Bit: 0, 1
0 01010000
1 11110000 word 0
0000000
2
11111111
3
00001111
4
10111011
5 word 1
00111100
6
00000111
7
21
Draft notes of CS:2630
0 Word 0
Word 1
4
Word 2
8
12 Word 3
22
Draft notes of CS:2630
approximately 1 ns or less).
MIPS registers
23
Draft notes of CS:2630
r0 $zero Always 0
24
Draft notes of CS:2630
Example 1 f=g+hi
Example 2. g = h + A[8]
25
Draft notes of CS:2630
0 18 8 17 0 32
6 5 5 5 5 6
26