CH 3-Hardware 3.1 Comp Architecture
CH 3-Hardware 3.1 Comp Architecture
1 COMPUTER
HARDWARE ARCHITECTURE
3.1.1 The central processing unit (CPU)
5
Stored –Program Concept
6
3.1.2 Components of the central
processing unit (CPU)
Arithmetic &
Control Unit
Logic Unit Registers
(CU)
(ALU)
System
Buses
clock
Control unit Main Function
8
Arithmetic Logic Unit (ALU)
9
Function of System clock
A system clock is
The clock ensures
used to produce
without the clock that the various
timing signals on
the computer circuits inside a
the control bus to
would simply computer work
ensure this vital
crash! together at the
synchronisation
same time.
takes place
10
Role of Immediate Access Store In
Processing
Immediate access store (IAS) is a memory that holds all data and
programs needed to be accessed by the control unit
The RAM is often referred to as the Immediate Access Store (IAS).
The CPU takes data and programs held in backing store (e.g. a
hard disk drive) and puts them into RAM temporarily. This is done
because read/write operations carried out using the RAM
The key data needed by an application will be stored
temporarily in RAM to speed up operations.
11
Buses
12
Function Of Three Buses
13
Processor (This
includes the control Memory Unit
unit)
[2]
(b) The seven stages in a von Neumann fetch-execute cycle are shown in
the table below. Put each stage in the correct sequence by writing the
numbers 1 to 7 in the right hand column. The first one has been done for
you [Q 7 (b) 2210/11/M/J/15]
PAST
PAPERS
QUESTIONS
Register
17
18
Von Neumann Architecture:
Concept of a Register
Register Meaning
PC Program Counter
C
20
Memory Unit
24
Write Cycle
25
4.1.6 Fetch-execute cycle
Fetch
The next instruction is fetched from the memory address currently stored in the program
counter (PC) and is then stored in the current instruction register (CIR).
The PC is then incremented (increased by 1) so that the next instruction can be processed.
This is decoded so that each instruction can be interpreted in the next part of the cycle.
Execute
The processor passes the decoded instruction as a set of control signals to the appropriate
components within the computer system.
This allows each instruction to be carried out in its logical sequence.
FETCH-DECODE-EXECUTE CYCLE
The Fetch-Execute Cycle
The program counter(PC) contains the address of the memory location of the next 30
instruction which has to be fetched.
This address is then copied from PC to the memory address register(MAR); this is done
using the address bus.
The contents (instruction) at the memory location (address) contained in MAR are then
copied temporarily into the memory data register (MDR)
The contents (instructions) of the MDR are then copied and placed into the current
instruction register (CIR)
The value in the PC is then incremented by 1 so that it now points to the next instruction,
which has to be fetched.
The instruction is finally decoded and then executed by sending out signals(via the control
bus) to the various components of the computer system.
(b) The seven stages in a von Neumann fetch-execute cycle are shown in
the table below. Put each stage in the correct sequence by writing the
numbers 1 to 7 in the right hand column. The first one has been done for
you [Q 7 (b) 2210/11/M/J/15]
PAST
PAPERS
QUESTIONS
Q The computer processes instructions using the fetch–decode–execute
(FDE) cycle. Draw and annotate a diagram to show the process of the fetch
stage of the FDE cycle.
Terms to be Used
Width
Use of
of
Cores
buses
CPU
PERFORMANCE
Use of cache
Overclocking
memories
Role of System Clock
The width of the address bus and data bus can also affect computer
performance.
The wider the address bus, the more memory locations that can be directly
addressed at any given time, e.g. a bus of width 16 bits can address 2^16 (65
536) memory locations whereas a bus width of 32 bits allows 4 294 967 296
memory locations to be simultaneously addressed.
The wider the data bus the larger the word length that can be transported.
(Word =group of bits which can be regarded as a single unit e.g. 16-bit, 32-bit
or 64-bit word lengths are the most common.)
Larger word lengths can improve the computer’s overall performance
39
Overclocking
An instruction is unable to
complete in time before the next
one is due to be executed
40
Use of Cache
45
Terms Used to be used
49
3.1.5 Embedded systems
An embedded system is
a combination of
hardware and software
which is designed to
carry out a specific set
of functions
3.1.5 Embedded systems
Inputs
• Automatic source, such as a sensor.
• This sensor input will be analogue or digital in nature, for
example, inputs such as oxygen levels or fuel pressure in a
car’s engine management system.
Outputs
sending signals to the components that are being
controlled (for example, increase the power to the heating
elements in an oven or reduce fuel levels in the engine).
Methods of upgrading programmable Devices 55
Connecting the
device to a computer
update the maps
for the download of
on a GPS system
updates to the
software
Embedded Systems
Programmable Upgraded
updates to
Automatic updates engine
via a Wi-Fi, satellite or management
cellular (mobile phone systems and
network) link other
components
1- Setting the central heating system to switch on or off while away from
home
2- Remotely instructing a set top box to record a television programme.
Applications :
single microcontroller in an MP3 player
complex array of multiple units in a medical imaging system
Are computers embedded systems?
Motor vehicles
Set-top box
Security systems
Lighting systems
Vending systems
Washing machines
60
Motor vehicles
Modern cars
have many
parts that rely
on
embedded
systems to
function
correctly
Set-top box
61
Set-top box
62
Security systems
64
Lighting systems
There are many internal and external lighting systems that could be controlled by
embedded systems : Examples are
In a large office to safe energy
A fountain light display or a light show on a building to commemorate a special
occasion.
Emergency lighting for example, aeroplanes in case of an emergency.
Some lighting systems use Bluetooth light bulbs. This allows the embedded system to
control each bulb independently. Many of the bulbs available today use LEDs and
many come in a number of colours to change the mood.
An embedded system can automatically control the lighting using a number of inputs
(such as light sensors) and key data stored in memory. 65
Lighting systems In Offices
In a large office. The system needs to control the lighting taking into
account:
The time of day or day of the week : To save energy
whether the room is occupied : low lighting when unoccupied
the brightness of the natural light : on bright sunny days dim the
light
66
Vending systems
70
Washing Machines