Computers_Hardware
Computers_Hardware
The Fetch-Execute Cycle is the cycle that the central processing unit (CPU)
runs through billions of times per second to make a computer work
A computer takes an input, processes the input and then delivers an output for
the user
o Input: Clicking a button on the gamepad
o Process: The CPU inside the console follows a set of instructions to carry
out the task
o Output: The player moving on screen
The Fetch-Decode-Execute cycle stages
Fetch stage
During the fetch stage of the cycle, the next instruction or data must be
fetched from the computer's memory (RAM)
The instruction or data is brought back to the CPU
Decode stage
During the decode stage of the cycle, the CPU needs to work out what is
required from the instruction
This could be a range of tasks depending on what the instruction or data included
Execute stage
During the execute stage of the cycle, the CPU will carry out the instruction
that was fetched
Some examples that would take place at this stage are
o Performing a calculation
o Storing a result or data back in main memory (RAM)
o Going to main memory to fetch data from a different location
Coordinates how data moves around the CPU by sending a signal to control
the movement of the data
Decodes the instructions fetched from memory
Registers
Cache
Very small, very fast memory located in the CPU which is used to provide quick
access to frequently used instructions and data
Clock
Synchronises the actions of the CPU, with each tick of the clock triggering an
operation
The clock speed is measured in Hertz (Hz)
The clock speed measures the number of fetch-decode-execute cycles that
can take place in 1 second
The faster the clock speed, the more instructions can be fetched and executed
per second
Modern computers have a clock speed in Gigahertz (GHz), meaning billion
A clock speed of 3.5GHz can perform up to 3.5 billion instructions per second
Buses
Worked Example
Describe the role of the control unit, the control bus, the data bus and the address bus
when fetching an instruction from memory [4]
Answer
The address of memory (holding instruction) is placed on the address bus (1)
The control unit sends a signal (1) on the control bus (to start a read operation)
(1)
The instruction is/the contents of the memory are placed on the data bus (1).
The Von Neumann Architecture is a design of the CPU which was proposed by
Mathematician John Von Neumann in the 1940s, which most general-purpose
computers are built upon
The Von Neumann Architecture outlines how the computer
memory, input / output devices and processor all work together
It is known as the stored program concept, storing
both programs (instructions) and data in the same memory (RAM)
Main Memory
A computer needs main memory because access times are considerably faster
than secondary storage
This means the time taken to complete operations such as the Fetch-Decode-
Execute Cycle is dramatically reduced
Main memory holds the data and instructions that the CPU needs to access
whilst the computer is turned on
Due to the fast access times, main memory is used as short term, working
memory
Performance of main memory means a much higher cost which limits the
amount that is used
For example, RAM is commonly purchased in 16 or 32 gigabytes whereas
secondary storage such as a hard drive is in terabytes
What is RAM?
What is ROM?
ROM (Read Only Memory) is main memory that holds the first instructions a
computer needs to start up (Bootstrap)
ROM contains the BIOS (Basic Input Output System)
ROM is a small memory chip located on the computers motherboard
ROM is fast memory, much faster than secondary storage but slower than RAM
ROM is non-volatile which means the contents of ROM are not lost when the
power is turned off
ROM is read only which means data can only be read from
In comparison to RAM, it has a much smaller capacity
Worked Example
A smart television allows the user to search the Internet and watch videos online.
Think about the main function of a smart television, watch channels, use apps to
stream content and browse the web etc.
For each function, try to think of what data would have to be in the RAM whilst
you were actually doing it (in use!)
Possible answers
A computer needs secondary storage for long term storage of programs and
data that are currently not in use
Secondary storage is needed as ROM is read only and RAM is volatile
Secondary storage holds the programs and data whilst the computer is turned
off (non-volatile)
Performance of secondary storage is slower than primary storage
but capacity is much higher which makes it perfect for backup & archive of data
files
Worked Example
State, using an example, why the games console needs secondary storage [2]
They keyword is 'why', why does a games console need secondary storage?
give an example, do not just describe what secondary storage is!
Answer
To store data once the power is turned off / permanently // for non-volatile
storage
Examples could include:
o Storing games
o Save games
o User data / profiles
o Downloaded content / applications / updates
Storage devices are non-volatile secondary storage, that retain digital data
within a computer system
They provide a means of storing, accessing, and retrieving data, which can
include software applications, documents, images, videos, and more
There are 3 types of storage:
o Magnetic
o Solid State
o Optical
Magnetic Storage
Advantages Disadvantages
Capacity - High storage Durability - Moving parts can get damaged if dropped
Portability - Heavy & bulky making them less
Cost - Low per gigabyte
convenient for transport
Speed - Moderate read/write
Reliability - Prone to mechanical failure (moving parts)
access
Noise - Loud (spinning disks)
Optical Storage
Optical storage is a type of non-volatile media that uses lasers to burn the
surface of a disk, creating pits and lands suitable for storing binary 0s and 1s
Advantages Disadvantages
Cost - Very low per gigabyte Capacity - Very low
Durability - No moving parts Speed - Very slow read/write access
Portability - Small and no moving parts Reliability - Prone to scratches
Noise - Silent
The army would like a new portable computer than can used whilst 'in the field', it
must be robust enough to withstand a few bumps and easy to transport to new
places. Money is no object
A school wants to backup all students work twice a day and keep it safe in case
of any emergencies. The cost of the device is very important as the school
budget is tight and they want a device that can hold terabytes of data in one go to
minimise the amount of devices they would need to buy
An international game studio wants to distribute it's new release for the latest
games consoles. This could potential involve many millions of copies being sold
so the device would have to extremely portable and cheap enough to produce so
that the company do not make a loss. The device needs to be durable enough to
withstand being handled regularly
In this scenario a Blu-ray (optical) would be most suitable
A Blu-ray disc is highly portable due to its size and weight and durable enough
because it has no moving parts. The cost is low which is perfect in this scenario
as the company could potentially be selling millions of copies
Embedded Systems
The Internet of Things (IoT) is a network of physical devices with the ability
to transfer data without requiring human-to-human or human-to-computer
interaction
The IoT is made up of a vast network of embedded devices
Devices could include:
o Consumer electronics
o Building sensors
o Wearable devices (fitness trackers etc.)
o Industrial machinery
The advantages of the IoT include:
o Increased efficiency - automating tasks and processes
o New opportunities - evolving to create new opportunities for business &
individuals
o Convenience - Simply daily lives by automating tasks in the home or
workplace
o Decision making - data collected can drive decision making by providing
valuable insights
The disadvantages of the IoT include:
o Security - networked devices provide more opportunities for hackers, how
secure are the devices?
o Privacy - Who has access to the data collected/exchanged using these
devices? What actual data is collected? Where is it used?
Worked Example
A washing machine and car engine management system are not general-purpose
computers [1]
A washing machine and car engine management system have a single purpose
and are both housed inside a larger mechanical unit [1]
A washing machine and car engine management system have a
microcontroller[1]