Cie Cs Chapter 3 (Igcse)
Cie Cs Chapter 3 (Igcse)
Clock
An electronic device inside a CPU that produce
timing signals on the control bus to ensure this
vital synchronization takes places – without the
clock the computer would simply crash.
CPU :Hardware Component of a Computer
Register
A storage area inside the CPU used to hold an instruction, an address or data.
▪ Memory Address Register (MAR): This stores the address of the memory location
currently being read or written to
▪ Memory Data Register (MDR): This is stores data that is being stored to or retrieved
from memory
▪ Accumulator (ACC) : This hold the results of calculations performed by ALU. All input
and output from the CPU pass through the accumulator
▪ Program Counter (PC) : This holds the memory address of the next instruction to be
fetched.
▪ Current instruction Register (CIR): This holds the instruction currently being executed.
CPU :Hardware Component of a Computer
Bus
▪ The bus that connect the CPU to other devices.
▪ System bus are used in computers as parallel
transmission
▪ Address bus
▪ Unidirectional
▪ This carries memory address between the CPU
and Memory or Input/output devices
▪ Data Bus
▪ Control Bus
▪ Bidirectional
▪ Bidirectional
▪ This carries data value to be read from or written
▪ This carries the control signals from
to memory or Input/output devices
CU to other computer components.
CPU :Hardware Component of a Computer
Bus width
▪ The number of wires that make up a bus. This determines the range of binary
numbers that can be communicated
▪ The wider the address bus , the more memory locations that can be directly
addressed at any given time.
▪ The wider the data bus, the larger the word length that can be transported
MDR
1 1 1 1 1 0 1 1
System bus and Memory
• Write Operation Address Contents
• Write 0001 0010 to 1111 1111
0000 0000 1100 1010
Data ADD
Step 1: The data is written in MDR. 0000 0001 1011 0001
MDR 0000 0010 1111 1011
0 0 0 1 0 0 1 0
.
Step 2: The address of location is .
written in MAR
1111 1110 0001 0010
MAR
1 1 1 1 1 1 1 1 1111 1111 0001
0111 1011
0010
Step 3: The write signal is sent to the
memory via the control bus
Fetch – Decode- Execute cycle
• In store program concept, the data and instructions are stored in the same
memory (RAM)
• To carry out a set of instructions, the processor first of all FETCHES some
data and instructions from memory and store in register.
• Each instruction needs to be decoded before finally being EXECUTED.
• This is all known as the FETCH–EXECUTE CYCLE
Fetch – Decode- Execute cycle
PC
3004
3003 Memory (RAM)
3001 5
MAR
3002
3003
3001
3003 Read 3001
MDR 3004 Write …..
Read 3001
CIR
Read 3001
Fetch – Decode- Execute cycle
The PC contain the address of the next
instruction to be fetched
3 4
Factors that Affect CPU Performance
Size of Cache
▪ In fetch- execute cycle, the bottleneck is caused
by main memory because the RAM is slower
than the CPU.
▪ The speed of processing is limited by RAM, CPU Low speed RAM
which supplies the instructions regardless of how c
much clock speed is increased or how many
cores are used.
▪ The solution to bottleneck is to use faster
memory (cache) within CPU
▪ This memory is used to stored frequently used
data High Low
speed speed
▪ Thus CPU check the fast cache for the data need
▪ CPU does not have to wait for to be fetched from CPU Cache RAM
the main memory
▪ With a larger cache that the instruction or data to
be fetched is in the cache and so the RAM need
to be accessed. This will speed up processing
Instruction Set
• Since the computer need to understand the operation to be carried out , there are actually a limited
number of opcodes that can be used; it is known as instruction set.
Arithmetic/logic Unit(ALU)
Cache Memory
User
Data
Input Device
Scanner
Barcode Reader QR Code Reader
Digital Cameras
Keyboards Mouse (Pointing
Devices)
Microphones
Touchscreens Sensors
Interactive Whiteboards
Output Device
Output
Device
Storage Device
• Memory and storage devices can be split up into two distinct groups:
• primary memory
• secondary storage
Storage Device : Primary Memory
• A unit of memory in computer that is accessed directly by CPU
• Random Access Memory (RAM)
• Read Only Memory (ROM)
Primary Memory :Hardware Component of a Computer
Advantages Drawbacks
❑ Cheaper data per unit ❑ Due to the nature of its moving parts, they will
❑ Fast read and write speeds eventually wear and break
❑ Reliable technology ❑ Although very fast, waiting for the moving parts means
Solid-state storage
Advantages Drawbacks
❑ Extremely fast read/write speeds ❑ Expensive to buy (per GB)
❑ Small in size and very light, ideal for portable devices ❑ Limited in capacity due to the expense
❑ No moving parts to wear, fail or get damaged – ideal for ❑ Limited amount of writes
making portable computers and devices more reliable
Application
and durable ❑ Smartphones and Tablet computers
❑ Uses less power than a HDD, increasing battery life ❑ High-end laptops and Two drive desktop
time solutions
❑ Generates less heat ❑ Portable drives are used in video cameras
Secondary Storage
Optical Secondary Storage When data is read :
▪ is used by CDs and DVDs ▪ The disk spins in the drive to ensure all data can
▪ Data is written along a single track that moves out from be read
the center of the disk ▪ The tracking mechanism move the laser into the
▪ Player used two laser beam : one to write and other to correct position over the disk
read ▪ The laser shine onto the disk and is reflected
▪ Shiner or more reflective parts of the disk represent the back on to a light sensor.
1 or 0 ▪ Signals from the sensor are translated into 1 and
How it store data 0
Solid State
Optical Device
Exercise
1. Julia inputs personal data into her computer. She can stores three copies of
the data using a magnetic, a solid state drive (SSD) and optical storage.
(a) Identify three devices Julia can use to input personal data into her
computer.
Device 1 …………………………………………………….
Device 2………………………………………………………
Device 3………………………………………………………[3]
(b) Six statements are shown about magnetic, SSDs and Optical storage device
Tick (√) to show if the statement applies to magnetic, solid state or optical storage. Some statements may
apply to more than one type of storage. [6]
IPv6
This uses 128-bit addresses that take the form of eight groups of hex digits
A8FB:7A88:FFF0:0FFF:3D21:2085:66FB:F0FA
IPv6 has been designed to allow the internet to grow in terms of the number of hosts and
potential increase in the amount of data traffic.
The main advantages of IPv6 compared to IPv4 are:
▪ removes the risk of IP address collisions
▪ has built-in authentication checks
▪ allows for more efficient packet routes.
Internet Protocol (IP) address
• IP addresses can be either static (don’t change) or dynamic (change every time a device connects to the
internet).
Static IP address
are permanently assigned to a device by the internet service provider (ISP); they don’t change each time a
device logs onto the internet.
Static IP addresses are usually assigned to:
▪ remote servers which are hosting a website
▪ an online database
▪ a File Transfer Protocol (FTP) server. FTP servers are used when files need to be transferred to
various computers throughout the network.
Dynamic IP addresses
are assigned by the ISP each time a device logs onto the internet.
Dynamic Host Configuration Protocol (DHCP) server, is used by the ISP to automatically assign an IP
address to a device.
could be different every time a device connects to the internet.
Internet Protocol (IP) address
IP address and MAC address
Router
• Routers enable data packets to be routed between different
networks, for example, to join a LAN to a WAN.
• The router takes data transmitted in one format from a network
and converts the data to a protocol and format understood by
another network, thereby allowing them to communicate.
The Function of Router
• The router’s main function is to transmit internet and
transmission protocols between two networks and also allow
private networks to be connected together.
• Routers inspect the data package sent to it from any computer
on any of the networks connected to it.
• Since every computer on the same network has the same part of
an internet protocol (IP) address, the router is able to send the
data packet to the appropriate switch, and the data will then be
delivered to the correct device using the MAC destination
address.
• If the MAC address doesn’t match any device connected to the
switch, it passes on to another switch on the same network