6. COMS1015 Computing Components
6. COMS1015 Computing Components
6
Input Unit
A device through which data and programs
from the outside world are entered into the
computer;
Output unit
A device through which results stored in the
computer memory are made available to the
outside world
7
Control unit
The organizing force in the computer
Instruction register (IR)
Contains the instruction that is being
executed
Program counter (PC)
Contains the address of the next instruction to
be executed
Central Processing Unit (CPU)
ALU and the control unit.
8
Bus
A set of wires that connect all major sections
9
Figure 5.3 The Fetch-Execute Cycle
Replace A by A+1. Branch if A<0 to instruction
00110: Instruction Register Program Counter
Fetch
IfTest<0
Add A
+1
TRUE… 01010
01100
01110
10000
00110
01000 Get A
00110 ...
00111 ...
01010 Add 1 to A 01000
01001
Get
A
01100 Test A<0 01010 Add
01011 +1
01110 If True, go to 01100 Test
00110 01101
01110
<0
If TRUE
10000 … 01111 branch 00110
10000 ...
... ...
Random Access Memory (RAM)
Memory in which each location can be
accessed and changed
13
Figure 5.5 The organization of a magnetic disk
Seek time
Time it takes for read/write head to be over
right track
Latency
Time it takes for sector to be in position
Access time
Total time required to obtain data
Transfer rate
Rate at which data is transferred to internal
memory.
15
CD
A compact disk that uses a laser to read information
stored optically on a plastic disk; data is evenly
distributed around track
CD-ROM read-only memory
CD-DA digital audio
CD-WORM write once, read many
CD - RW or RAM both read from and written to
DVD
Digital Versatile Disk, used for storing audio and
video in particular.
16
Touch screen
A computer monitor that can respond to the
user touching the screen with a stylus or
finger
There are several types
◦ Resistive
◦ Capacitive
◦ Infrared
◦ Surface acoustic wave (SAW)
17
Idea is to speed up the execution of large jobs
based on design rather than processor speed.
There are four approaches to this:
Bit level
Manipulate bigger words in each process;
Instruction level
Instructions done in parallel rather than
sequentially,
Superscalar is one CPU with multiple
resources;
Data Level
Execute instruction blocks on multiple data
sets at the same time,
Different ALUs do the same instructions on
multiple data sets – SIMD;
Task level
Distribute tasks between different processors.
One approach to data level parallelism is to have
multiple processors apply the same program to
multiple data sets
20
Arranges processors in tandem, where each
processor contributes one part to an overall
computation
21
Communicate through shared memory
22
South Africa has a well-equipped central
resource with high end computers – top 500.
Centre for High Performance Computing
www.chpc.ac.za
◦ SUN Constellation System: 2000 8-core processing
units, 400 terabytes, state of the art water cooling
system;
◦ Training courses;
◦ Technical support;
◦ Access through high speed links;
◦ Flagship projects – Computational Imaging and
Remote Sensing (Wits).