Chapter # 3
Chapter # 3
architecture
ALU & CU
out while a program is being run.
Control Unit (CU)
• The control unit supervises all the activities
performed by the CPU. It uses control bus to
send signals.
Registers
• Registers are a type of computer memory built directly into the
processor or CPU (Central Processing Unit) that is used to store and
manipulate data during the execution of instructions.
• A register may hold an instruction, a storage address, or any kind of
data
Types of
Registers
System buses and its types
System Bus: (System) buses are used in
computers as parallel transmission components;
each wire in the bus transmits one bit of data.
Types of Buses:
Address bus
Data bus
Control bus
Types of Buses
Address bus
• The address bus carries addresses throughout the computer system.
• Between the CPU and memory, the address bus is unidirectional.
Data bus
• The data bus is bidirectional .
• This means data can be carried from CPU to memory (and vice
versa) and to and from input/output devices.
Control bus
• The control bus is also bidirectional.
• It carries signals from the control unit (CU) to all the other computer
components.
Fetch
execute
cycle
Factors need to Increasing
bus width
Increasing
clock speed
be taken into
account when
considering Altering bus Use of cache
width, clock memories can
computer speed and also speed up
use of multi- a CPU’s
performance. core CPUs performance
Embedded systems
Def: An embedded system is a combination of hardware and software which is designed to carry out a specific set of functions.
Benefits and drawbacks of Embedded systems
Input and Output
Devices
Very durable screens that have high They are sensitive to electromagnetic
scratch resistance and allow multi- radiation (such as magnetic fields or
touch. microwaves).
Infrared touch screens
Advantages
• Allows multi-touch facilities
• Has good screen durability
• The operability isn’t affected by a scratched or
cracked screen.
Disadvantages
• The screen can be sensitive to water or
moisture
• It is possible for accidental activation to take
place if the infrared beams are disturbed in
some way
• Sometimes sensitive to light interference.
Resistive touch
screens
• Inkjet printer – inkjet printers are often used for printing one-off photos or where
only a few pages of good quality, colour printing is needed; the small ink
cartridges or small paper trays would not be an issue with such applications.
• Laser printer – these devices produce high quality printouts and are very fast
when making multiple copies of a document;
• any application that needs high volume printing (in colour or monochrome) would
choose the laser printer (for example, producing a large number of high-quality
flyers or posters for advertising).
• Laser printers have two advantages: they have large toner cartridges and large
paper trays (often holding more than a ream of paper).
3D printers
This type of storage can store more data than primary memory, but
data access time is considerably longer than with RAM or ROM.
Magnetic storage
(Hard disk drive)
Solid state drives (SSD) remove this issue considerably since they have no moving parts
the most common type of solid state storage devices store data by controlling the movement of
electrons within NAND or NOR chips.
Benefits of they don’t have to ‘get up to speed’ before they work properly
Blu-ray disks
• a blue laser, rather than a red laser, is used
to carry out read and write operations
• using blue laser light means that the ‘pits’
and ‘lands’ can be much smaller;
• Blu-ray can store up to five times more data
than normal DVD
• Blu-ray disks automatically come with a
secure encryption system that helps to
prevent piracy and copyright infringement
Virtual memory
Problems without Virtual memory
One of the problems associated with memory management is the
case when processes run out of RAM.
If the amount of available RAM is exceeded due to multiple
programs running, it is likely to cause a system crash.
This can be solved by utilising the hard disk drive (or SSD) if we
need more memory.
This is the basis behind virtual memory. Essentially RAM is the
physical memory, while virtual memory is RAM + swap space on
the hard disk or SSD.
• Suppose we have five programs (numbered 0 to 4) that are
Without virtual in memory, all requiring access to RAM. The first diagram
shows what would happen without virtual memory being
memory used (i.e. the computer would run out of RAM memory
space):
We will now consider what happens if the CPU uses virtual
memory
HDD/SSD and then allowing other data to be moved out of
HDD/SSD into RAM
Benefits of using Virtual
Memory