Chapter 3-Hardware
Chapter 3-Hardware
Chapter 3-Hardware
Part 1:
Q1. What is CPU?
The Arithmetic and Logic Unit (ALU) allows the required arithmetic (e.g. +, -
and shifting) or logic (e.g. AND, OR) operations to be carried out while a
program is being run.
It is possible for a computer to have more than one ALU to carry out specific
functions.
Multiplication and division are carried out by a sequence of addition,
subtraction and left or right logical shift operations.
Q6. Define CU
It is used to produce timing signals on the control bus to ensure this vital
synchronisation takes place.
Without the clock the computer would simple crash.
Q8. Define RAM/IAS.
RAM holds all the data and instructions needed to be accessed by the CPU.
The RAM is often referred to as Immediate Access Store (IAS).
The CPU takes data and programs held in Backing store (e.g. hard disk
drive) and outs them into RAM temporarily.
This is done because read/write operations carried out using RAM and
considerably faster than read/write operations to backing store.
Q9. What are registers?
Cache memory is located within the CPU itself, which means it has much
faster data access time than RAM.
Cache memory stores frequently used instructions and data that need to
be accessed faster, which improve CPU performance .
When a CPU wishes to read memory, it will first check out the cache and
then move on to main memory/RAM if the required data isn’t there.
The larger the cache memory size the better the CPU performance.
Q18. How does system clock increase computer’s performance?
The clock defines clock cycles that synchronizes all computer operations.
The control bus transmits timing signals ensuring everything is fully
synchronized.
By increasing clock speed, the processing speed of the computer is also
increased.
For example 3.5GHz means 3.5 billion clock cycles in one second.
Q19. How does multi core CPUs increase computer’s performance?
Instruction sets are the low-level language instructions that instruct the
CPU how to carry out operation.
Program code needs interpreter or compilers to convert the code into
instruction set understood by the computer.
Q23. What are embedded systems?
Modern cars have many parts that rely on embedded systems to function
correctly.
E.g: 1. In-car entertainment systems 2. GPS system
3. Air bags 4. Fuel Injection System 5. Vehicle Security
Set-top box:
The security code is set in RAM and the alarm is activated or deactivated
using the keypad.
Data from sensors is sent to the controller which checks against values
stored on the SSD (these settings are on SSD rather than RAM in casethe
sensitivity needs to be adjusted).
An output can be a signal to flash lights, sound an alarm or send a
message to the home owner via their mobile phone.
Again, the home owner can interface with the system remotely if
necessary.
Washing machines:
Lighting systems:
The devices which are used to enter data or instructions in the computer
system are known as input devices.
Example: mouse, keyboard, scanner, microphone, joystick, sensors, camera,
barcode readers, QR code reader.
Barcodes:
Barcodes consist of a series of dark and light lines (black and white) of
varying thickness.
Each digit or character is represented by a number of lines.
Barcode stores manufacturer code number and product number.
In UPC(Universal Product Code) the actual left hand and right hand sides of
a barcode are separated using guard bars.
It has three guard bars(left, right, centered)
Black lines if barcode represent by ‘1’ and white line represent by ‘0’
7 bit make a digit using different coding methods for left and right sides.
Scanning Of Barcode:
1. The barcode is first read by a red laser or red LED(Light Emitting Diode)
2. Light is reflected back off the barcode, the dark areas reflect little or no
light which allows the bars to be read.
3. The reflected light is read by sensors(Photoelectric Cells)
4. As the laser is scanned across the barcode, a pattern is generated which is
converted into digital data. This allows the computer to understand the
barcode.
5. The light areas represent ‘0’ and dark represent ‘1’.
6. If barcodes are not scanned correctly then the barcode is typed in
manually using a keyboard.
QR Codes:
It is a type of barcode.
Made up of a matrix of filled in dark squares on a light baground.
Consists of block of small squares known as pixels.
Allow internet address to be encoded
As more and more data is added, its structure becomes more complex.
The 3 large squares at the corners of the code function as a form of
alignment
The remaining small corner squares are used to ensure the correct size
and correct angle of camera shot when QR code is read.
Uses:
Advertising products
Giving access to website or contact telephone number
Storing boarding passes electronically at airport and train station
Advantages:
Overcome:
Microphones are either built into the computer or are external devices
connected through the USB port or using Bluetooth connectivity.
Optical Mouse:
Part 4:
Memory and Storage
Memory:
Memory is usually referred to as the internal devices used to store
data that the computer can access directly
Storage devices:
Storage devices allow users to store applications, data and files.
Data is stored permanently and they can change it or read it.
Storage needs to be larger than internal memory since the user may
wish to store large files.
Storage devices can also be removable to allow data to be
transferred between computers.
Removable devices allow a user to store important data in a
different location in case of data loss.
Memory and storage devices can be split up into two distinct groups:
» primary memory » secondary storage.
Primary Primary Memory:
Primary memory is the part of the computer memory which can be
accessed directly from the CPU.
this includes random access memory (RAM) and readonly memory
(ROM).
Primary memory allows the CPU to access applications and services
temporarily stored in memory locations.
RAM:
RAM stands for Random Access Memory.
It is a volatile memory and the contents of the memory are lost as soon as
the electricity supply is cut-off.
The CPU can write and read to and from the RAM. So RAM is also known
as read/write memory.
It is faster than secondary devices.
It is used to store data, files or part of operating system.
The larger the size of RAM the faster the computer will operate.
RAM never runs out of memory; it continues to operate but just gets
slower and slower.
As the RAM becomes full, the processor has to continually access the hard
disk drive to overwrite old data on RAM with the new data.
There are two types of RAM:
Dynamic Ram (DRAM)
Static RAM (SRAM)
DRAM:
ROM:
A remote control toy car has a circuitry which contain both ROM and
RAM chips.
The remote control car is a hand-held device.
ROM:
The user may wish to program their own routines, these new instructions
would be stored in the RAM chip.
The RAM chip will store data/instructions received from the remote
control unit.
Magnetic Storage:
Hard Disk Drive (HDD):
Desktop computers
Laptop computers
TV and satellite recorders
Servers and mainframes
Portable (external) drives are sometimes used to backup home
computers or transfer large files
Benefits and Drawbacks of HDD:
Removable hard disk drives are essentially HDDs external to the computer
that can be connected to the computer using one of the USB ports. In this way,
they can be used as a back-up device or another way of transferring files
between computers.
Q.How is data stored on magnetic storage devices?
Magnetic storage media and devices store data in the form of tiny
magnetised dots.
These dots are created, read and erased using magnetic fields created by
very tiny electromagnets.
Solid State Drives (SSD):
Applications of SSD:
Smartphones
Tablet computers
High-end laptops
Two drive desktop solutions
Portable drives are sometimes used in HD video cameras.
Benefits and Drawbacks of SSD:
In blu ray disks, blue laser light is used to carry out read and write
operations while DVDs use red laser.
Wavelength of blue light is only 405 nm while red light has 650 nm
wave length. The shorter the wavelength, more data can be stored.
Using blue laser means that the ‘pits’ and ‘bumps’ can be much smaller,
so they can store upto 5 times more data than normal DVD.
Blu ray uses single 1-1 mm thick polycarbonate disk; normal dvd uses
a sandwich of two 0.6 mm thick disks.
Blu ray disks automatically come with a secure encryption system that
helps to prevent privacy and copyright infringement.
The data transfer rate for DVD is 10Mbps and for Blu ray disks it is 36
Mbps.
Uses of Optical Storage Devices:
CDs:
Back up systems
Transfer files between computers
Manufacturers can supply their software using cds in a read only format
Supply of songs
DVDs
Back up systems
Transfer files between computer
Manufacturers can supply their software using cds in a read only format
Supply movies and games
Blu ray:
Supply movies and games
Virtual Memory:
When using HDD for virtual memory the main drawback is disk
thrashing. As main memory fills, more and more data needs to be
swapped in and out of virtual memory leading to a very high rate of hard
disk read/write head movements; this is known as disk thrashing.
If more and more time is spent on moving data in and out of memory than
actually doing any processing, then the processing speed of the computer
will be considerably reduced.
A point can be reached when the execution of a process comes to a halt
since the system is so busy moving data in and out of memory rather than
doing any actual execution – this is known as the thrash point.
Due to large numbers of head movements, this can also lead to premature
failure of a hard disk drive.
Ways to reduce Disk Thrashing:
The same data is stored on more than one server in case of maintenance
or repair, allowing clients to access data at any time. This is known as
data redundancy.
The physical environment is owned and managed by a hosting company
and may include hundreds of servers in many locations.
Common systems used in Cloud Storage:
Public cloud: this is a storage environment where the customer/client and
cloud storage provider are different companies
Private cloud: this is storage provided by a dedicated environment behind a
company firewall; customer/client and cloud storage provider are integrated
and operate as a single entity
Hybrid cloud: this is a combination of the two above environments; some data
resides in the private cloud and less sensitive/less commercial data can be
accessed from a public cloud storage provider.
Network Hardware:
Types of MAC:
MAC Address:
Types of IP addresses:
Static:
Static IP addresses 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.
Online data base
A file transfer protocol (FTP) server. FTP servers are used when files
need to be trans found to various computers throughout the network.
Dynamic:
Dynamic IP address are assigned by the ISP each time La device logs onto
the internet.
This is done using Dynamic Host Configuration Protocol (NACP).
A computer on the internet, configured as a DHCP server, is used by the
Isp to automatically assign an IP address to a device.
A dynamic IP address could be different every time a device connects to
the internet.
Routers: