Chapter - 2
Computer Architecture
Basics of Computer Systems
1 Information Communication Technology
What is Computer System?
Software User
Data (Texts, audio, video, etc.)
Hardware
Computer system is made up of hardware, software, data and
communication.
2 Information Communication Technology
Definitions to know!
• Hardware: Hardware is the physical component that makes up the computer
system.
• Software: Software is the programs that control the computer systems.
• Communication: Communication is the act of transferring data.
• Data: Data is the information that computer works with and it could be
anything that is being transferred in the process of communication. (E.g. Texts,
images, audio, videos and so on.)
3 Information Communication Technology
Types of Hardware
• External Hardware
• Hardware outside of the computer (e.g. Keyboard, mouse, monitor)
• Internal Hardware
• Hardware inside of the computer (e.g. CPU, RAM, Motherboard)
4 Information Communication Technology
Types of Software
• Application Software
• Programs that allows the user to do specific tasks
• E.g. Word processing, spreadsheets, games, etc.
• System Software
• Programs that allow computer to run smoothly
• Background tasks that enable computer to run smoothly and help with activities.
• E.g Operating system, Anti-virus software, Device drivers, etc.
5 Information Communication Technology
Roles of hardware devices
• Input
• Receive data from users
• Output
• Send and display data to users
• Processing
• Carry out calculations and logics for each user actions.
• Storage
• Store data in the computer.
6 Information Communication Technology
Basic Computer Architecture
Input Processing Output
Storage
Data
7 Information Communication Technology
Types of Computers
• Desktop
• Laptop
• Smart Phone
• Tablets
• Phablets
8 Information Communication Technology
Desktop
• Made up of separate components; monitor, keyboard, mouse and processor
unit
• Each parts can be bought separately
• Assemble together to work together
9 Information Communication Technology
Advantages
• Spare parts can be easily accessed
• Easier and less expensive to upgrade
• Harder to get stolen
• Have better specifications for given price
10 Information Communication Technology
Disadvantages
• Not portable
• Complicated wiring for assembling multiple components
• Necessary to copy files when working elsewhere
• Takes more space
11 Information Communication Technology
Uses
• office and business work (word processing, spreadsheets, finance software and
databases being the main use)
• educational use (using interactive software to teach or learn from)
• use as a gaming device (for example, games such as chess, crossword
puzzles, fantasy games, and so on)
• general entertainment (for example, live or ‘catch-up’ streaming of television
programmes).
12 Information Communication Technology
Laptop
• Type of computer where monitor, keyboard, pointing device and processor are
all together in one single unit
• Lightweight
• Low power consumption Relatively (Depends on type of laptop)
• Low heat output
13 Information Communication Technology
Advantages
• Very portable, can be taken anywhere
• No trailing wires as everything is in one single unit
• Does not take up much desk space, thus can be used anywhere
• Have sustainable battery
14 Information Communication Technology
Disadvantages
• Easier to get stolen/damaged
• Have to carry adapter around due to limited battery life
• Not convenient to use pointing device and keyboard
• Harder and expensive to upgrade
15 Information Communication Technology
Smart Phone
• Allow phone calls and have operating system to enable running of apps
• Make use of touchscreen technology
• Front- and back-facing cameras
• Lower weight than laptop and have longer battery life
• Include multiple sensors:
• Accelerometers
• Proximity
16 Information Communication Technology
Advantages
• Lightweight and small in size therefore very portable and have on your person
all the time
• Can be used to make phone call as well as connecting to the internet
• Have long battery life
• Can be used anywhere as they make use of mobile phone network and Wi-Fi
• Can make use of GPS and other features that are not available in desktop and
laptop
17 Information Communication Technology
Disadvantages
• Very easy to get lost or stolen
• Small screen size make pages and texts difficult to read
• More difficult to type on phone due to smaller screen size
• Limited memory size compared to desktop and laptop
• Not all website features are compatible with phone
18 Information Communication Technology
Tablets
• Much like a smartphone but bigger
• Make use of virtual keyboard on touchscreen
• Make use of touch screen technology
19 Information Communication Technology
Advantages
• Very fast to switch on
• Portable thus can be carried around anywhere
• Easy to use and does not need other input devices due to touch screen
technology
• Does not produce much heat
• Have a very long battery life
20 Information Communication Technology
Disadvantages
• Expensive
• Limited memory storage
• Typing on touch screen can be error prone
• Support less file types compared to desktop and laptop
21 Information Communication Technology
Phablet
• A hybrid between a tablet and a smartphone.
• These are referred to as a phablet.
• They have much larger screens than a smartphone but are smaller than a
tablet.
22 Information Communication Technology
Input Devices
23 Information Communication Technology
What are input devices?
• Input devices are devices that user can perform specific action on.
• Examples of input devices includes:
• Keyboard
• Mouse
• Microphone
• Touchpad
24 Information Communication Technology
Keyboard
• Mainly used for inputting data into application software
• Can be connected to computer via USB or wireless connection
• Can also be used to type in commands or shortcuts to the computer
25 Information Communication Technology
Advantages
• Fast entry of new text into document
• Easy to use
26 Information Communication Technology
Disadvantages
• Can be difficult to use if the user have arm/wrist use
• Fairly large device that take up desk space
27 Information Communication Technology
Mouse
• Can control the position of a pointer on the screen by moving it around
• Mainly have two buttons:
• Left button that can open or select items
• Right button that brings up drop-down menus
• Also have a scroll wheel to scroll through documents
28 Information Communication Technology
Advantages
• Faster method for choosing an option than using a keyboard
• Quick way to navigate through applications and the internet
• Do not need large desk space compared to keyboard
29 Information Communication Technology
Disadvantages
• Can be difficult to use for people who have difficult moving hand/wrist
• Easy to get damaged
• Difficult to use if no flat surface is available
30 Information Communication Technology
Touchpad
• Pointing device that is integrated in a laptop
• Control the pointer by user moving their finger on the touchpad
• Some touchpads includes left and right buttons that functions as the ones
from mouse
31 Information Communication Technology
Advantages
• There is no need for separate mouse as it is integrated into the laptop
• Can use where there is no flat surface available
32 Information Communication Technology
Disadvantages
• Can be difficult to use for people who have difficult moving hand/wrist
• Harder to control the pointer compared to mouse
• Harder to carry out operations like drag and drop
33 Information Communication Technology
Output Devices
34 Information Communication Technology
What are output devices?
• Output devices are devices that gives back user a response.
• Example of output devices includes:
• Projectors
• 3D printers
35 Information Communication Technology
Projectors
• Receive source from a computer, television or DVD player.
• Image is magnified and projected on a screen.
• Mainly used in presentations and cinema systems.
36 Information Communication Technology
Advantages
• Enables many people to see a presentation rather than crowding around a
small computer screen.
• Newer models can also be connected wireless without the need of HDMI cable.
37 Information Communication Technology
Disadvantages
• Images can be fuzzy
• Expensive to buy
• Setting the device up can be a little complicated
38 Information Communication Technology
3D Printers
• 3D printers are printers that can produce a solid object.
• They can be used for prototyping the product.
• There are 2 methods of that can be used for 3D printing
• Additive manufacturing
• Subtractive manufacturing
39 Information Communication Technology
Advantages
• Medical benefits are emerging, such as producing artificial organs, prosthetics
and precision-made items for reconstructive surgery.
• Allows rapid prototyping, it means that it will take short length of time to
convert design into a prototype product.
40 Information Communication Technology
Disadvantages
• Potential to make counterfeit items, there can be fake items in the market.
• There is potential job losses.
41 Information Communication Technology
Processing Devices
42 Information Communication Technology
Motherboard
• Circuit board in the computer
• All hardware are connected to
motherboard
• Contains sockets and slots for other
devices to connect
43 Information Communication Technology
What are processing units?
• Processing units deal with the logics, calculations and the control of the
computer components
• Different processors handle different tasks in the computer
44 Information Communication Technology
Central Processing Unit
• Brain of the computer
• Carries out the command from computer
hardware and software
• Also referred to as microprocessor
• Can also be found on smart devices
45 Information Communication Technology
Structure of CPU
• CPU has two parts
• ALU – arithmetic and logic unit
• CU – control unit
• ALU deals with mathematical calculations
and logical processing
• CU gives instructions to other hardware
devices
46 Information Communication Technology
Sound Card
• Provides computer with the ability to
produce sound
• Often integrated into the motherboard
47 Information Communication Technology
Memory Devices
48 Information Communication Technology
Two types of Storages
• Primary storage and Secondary storage
• Primary storage has small size and very fast
• Secondary storage has large size and store files permanently
• When we say memory, we generally refer to primary storage
• Primary storage includes RAM and ROM
49 Information Communication Technology
RAM (Random Access Memory)
• Stores data temporarily
• Volatile memory – data is lost when the power
is turned off
• Can be read and written from
• Used to store data of program currently in use
50 Information Communication Technology
ROM (Read Only Memory)
• Stores data permanently
• Non-volatile memory – data is not lost when
the power is turned off
• Can only be read from
• Used to store settings needed to boot the
system
• Also used to store game programs in game
stations
51 Information Communication Technology
Storage Devices
52 Information Communication Technology
Hard Disk Drives (HDD)
• Data is stored in a digital format on the
magnetic surfaces of the hard disks (also
known as platters).
• Number of platter in hard disk may depends on
capacity of it.
• Data can be accessed through the read/write
head.
• Read/write heads contain a tiny magnet which
allows the data on the platter to be read.
• Platter can rotate up to 10000rpm (10000
rotation per minute)
53 Information Communication Technology
How does HDD works?
• Actuators are used to control the read/write heads.
• Tiny magnets in the read/write heads allows the read/write operations on the
disk.
• Data is stored in circular tracks and each track is broken up into sectors.
• A map of sector is stored on the HDD and is known as file allocation table
(FAT).
• When computer wants to store new files, HDD looks at FAT to know which
sector is free and move the read/write head to the free sector to store data.
• When computer wants to read existing files, HDD looks at FAT to know where
the data is stored and move the read/write head to free sector to read data.
54 Information Communication Technology
HDD (Tracks and Sectors)
55 Information Communication Technology
Advantages
• HDDs have large memory capacities.
• They have fast data transfer rate and data access time.
56 Information Communication Technology
Disadvantages
• They can be easily damaged if correct procedure on computer has not been
performed.
• Having many moving parts can affect their overall reliability.
• They can be quite noisy at times.
• Have latency issues as platter have to be spinning for read/write operations.
57 Information Communication Technology
Solid State Drives (SSD)
• Solid state technology does not have latency issues as all data can be retrieve
at the same rate.
• Solid state does not rely on magnetic properties and they have no moving
parts.
• They store data by controlling the movement of electrons.
• Data is stored as 0s and 1s in millions of tiny transistors.
58 Information Communication Technology
Advantages
• Lighter than HDD
• Does not produces as much heat as HDD
• Have faster data access time HDD
• Have faster data read/write time than HDD
• Have lower power consumption than HDD
59 Information Communication Technology
Disadvantages
• More expensive than HDD
• Have shorter life span compared to HDD
60 Information Communication Technology
Computational Model
61 Information Communication Technology
What are computational models?
• Computational models are steps that computer takes to solve a problem.
• They can be classified into 3 categories:
• Sequential
• Parallel
• Multi-agent
62 Information Communication Technology
Sequential
• Sequential model executes instructions steps by steps from start to end.
• For example, making a sandwich step by step:
1. Get the bread
2. Add the filling
3. Server the sandwich
63 Information Communication Technology
Parallel
• In parallel model, computer processes are broken down into smaller tasks and
then distributed to the processors or cores in a computer.
• Each separate processors/cores executes the given instruction, which can then
be combined to get the final output.
• Example of parallel processing is, a car factory where different components of
the car is being made at the same time in different section which are all
assembled together to produce a car.
64 Information Communication Technology
Multi-agent
• In multi-agent model, it involves agents working together to solve a problem,
hence the name.
• Each agents carries out a separate tasks and communicate with others to
complete the task.
• Think of it, as a group of friends working on a project:
• One will search information online
• One will create presentation slides
• One will write script for the presentation
• The friend who search information will have to share the information with the
one who will write the script.
• Script writer will have to tell the one who’s making the slides to include
specific points from the script.
• Only then they will be able to make a successful project.
65 Information Communication Technology
Any Questions?
66 Information Communication Technology