Computer Architecture: Mr. C. Ncube and Mrs. Marabada (Introduction To IT Laboratory)
Computer Architecture: Mr. C. Ncube and Mrs. Marabada (Introduction To IT Laboratory)
1
The Von Neumann Architecture
An abstract view of a computer
Due to John Von Neumann (Hungarian
mathematician) 1945 paper Von Neumann
Computer consists of:
Memory
Control Unit
Arithmetic Logic Unit
Image from: http://www.llnl.gov/computing/tutorials/parallel_com
Input/Output
Data and instructions reside in memory
Instructions are fetched from memory and
executed in the CPU
Instructions may cause data to be fetched from
memory and operated upon (for example: C =
A+B)
2
Von Neumann Architecture
More Details
Image from:http://www.cise.ufl.edu/~mssz/CompOrg/Figure1.8-vonNeumannArch.gif
3
Inside a Personal Computer
4
A Mother Board
1. Mouse & keyboard
2. USB
3. Parallel port
4. CPU Chip
5. RAM slots
6. Floppy controller
7. IDE controller
8. PCI slot
9. ISA slot
10. CMOS Battery
11. AGP slot
12. CPU slot
13. Power supply plug in
5
PCI Bus (Peripheral
Component Interconnect)
6
CPU
Comprises:
A Data Path to carry out the operations
(Arithmetic-Logic Unit)
A Control Unit that controls all the operations
performed and the flow of data to/from the
various operating units (adders, multipliers, etc.)
Often denoted by:
The width of ALU (32, 64 bits)
The speed of the clock (GHz)
7
Intel Processor Comparison
Clock
Name Date Transistors Microns Data width MIPS
speed
8080 1974 6,000 6 2 MHz 8 bits 0.64
16 bits
8088 1979 29,000 3 5 MHz 8-bit 0.33
bus
11
Co-processors and
Multi-processors
Coprocessor
12
Memories
ROM: Read only memory cannot be
changed non volatile
EPROM: Electrically Programmable ROM
Like ROM, but can be changed
(upgrade of the firmware)
RAM: Random Access memory - the
core memory of the computer
13
Various RAMs
DRAM: dynamic RAM the most common
memory of a computer
Volatile! All information contained lost when
power switched off
Contents degrade with time
Needs to be refreshed every few milliseconds
SRAM: Static RAM fast, non-volatile,
expensive, power hungry used in caches
14
Various DRAMs
FPM: Fast Page Mode
} OLD
EDO: Extended Data Out
SDRAM: Synchronous DRAM can be
synchronized with the CPU clock
DDR DRAM: Double Data Rate DRAM like
SDRAM but moves data at twice the speed
RDRAM: Rambus DRAM designed for the
Intel Pentium Not very popular
15
Virtual Memory
Programs/data can be
executed/processed only when they are
in main memory (RAM)
Manage memory so that it appears that
the accessible main memory is larger
than the physical RAM available
Use a portion of the hard disc as if it
were main memory (swap area)
16
Managing Virtual Memory
Pages will be moved in/out of swap area as
needed
What pages should be kept in (fast) RAM?
Which should be moved to (slow) disc?
Page replacement algorithms:
Random
FIFO
LRU
An unfortunate choice of page replacements
can result in VERY SLOW operation - thrashing
17
Memory Hierarchy
CPU registers
L1 (L2, L3) cache
DRAM
Hard disc
18
Memory Buffers
Buffers: memory areas set aside to provide
temporary storage for data streams
They can be used to:
Provide some flexibility in the times required by a
producer and a consumer of a data stream (disc,
keyboard, , different processes, )
Permit cut-paste of data between different
applications
19