Professional Documents
Culture Documents
P1_Unit 3-1 and 3-4 Comp Arch and Networks
P1_Unit 3-1 and 3-4 Comp Arch and Networks
1f-38-69-ba-9f-0c
Manufacturer code Serial code
Internet Protocol Address ( IP)
• IP addresses is the identifier/ name for a device on a
network
• IP version 4 (IPv4) addresses are made from
four bytes
• They are usually represented as four denary numbers
separated by full stops such as:
192.168.52.211
8 bits – Each part
32 bits – 4 parts
Internet Protocol issues
• The problem with 32-bit IP addresses is that there
aren’t enough of them
• As more and more devices are added to the Internet we need
an IP address system that can address all of them
• We therefore need to use a larger binary number than a
32-bit address
IPv6
• IPv6 (version 6) makes use of 128-bit numbers
allowing for a staggering number of devices to
be addressed
SECONDARY
STORAGE
Components of the CPU
• The CPU has two major components called the
• Control Unit
• Arithmetic-Logic Unit (ALU)
• A register is a very fast
memory location in the
CPU itself
• Cache is located on the CPU –
it is slower to access than
registers but faster than RAM, it stores data that is frequently
accessed. It stores the data
which is frequently needed by the processor
Control Unit
The control unit coordinates and controls
all of the activities taking place within
the CPU
• It decodes instructions and executes them
• It receives signals from the system clock
• It directs the timing and control of other
parts of the CPU, much like the conductor
of an orchestra
The Arithmetic Logic Unit
• The ALU or Arithmetic Logic Unit is where the actual
arithmetic operations are done
• It also carries out logical operations such as those including
AND, OR and NOT
Main ALU
Memory Accumulator
X = 3 ADD X, Y 8
Y = 5
Accumulator
• The accumulator (ACC) is
where arithmetic and logic
results are temporarily stored,
much like the M+ function on
a calculator
• Instructions are loaded to primary
memory ( RAM/ IAS/ Main Memory)
Stored • Instructions are fetched from primary
program memory ( RAM) one by one to be
decoded and executed by the processor
Concept ( FDE Cycle).
Fetch Decode Execute
FETCH Instructions to be executed are fetched by the buses from the RAM and
stored in Registers in the processor
DECODE Instruction in CIR is decoded by the control unit and signal are sent to
execute the instruction
Clock speed
Cache size
Cycles per second
measured in hertz (Hz) Cache on the CPU
is faster than RAM but
slower than registers
Number of cores
The number of duplicate
processing units (cores)
placed in one CPU
Clock speed
• Everything in a computer happens on the pulse of
the internal clock
• Therefore, the faster the clock speed, the faster the
instructions are processed
CPU CPU
Processor Speed
• One cycle per second = 1 hertz (Hz) = 1 instruction
carried out each second
• 1 kilohertz (kHz) = 1000 cycles per second
• 1 Megahertz (MHz) = 1,000,000 cycles per second
• 1 Gigahertz (GHz) = 1,000,000,000 cycles per second
Multi-core processors
• A dual-core processor has two processors in the
same integrated circuit, linked together
• A dual-core processor has the potential to perform two
instructions at the same time
• This allows twice as many instructions to be executed,
however, it doesn’t always perform at this rate as software
may not be able to take full advantage of both cores
• A quad-core processor has four linked processors
• Which processor would you prefer, a dual-core 1GHz, or a 3
GHz single core processor?
Effect on speed
• A quad-core processor working on many different
tasks simultaneously, under ideal conditions can be
up to four times faster than a single-core processor
• If the computer is running a single program, it is not
necessarily any faster, since the program may have
been designed to only run on one core. Even if there
are more than one core, this won’t improve much of
performance.
Cache memory
• Cache is a small amount of very
CPU
fast, expensive memory in the CPU
• It can be accessed faster than
regular main memory (RAM)
• this useful for recently/frequently Cache
used data?
Main Memory
Effect on speed of cache
• RAM is relatively slow memory to access and it is
further away from the processor than cache
• It takes longer to retrieve an instruction or data from RAM
than from cache
• Program instructions and data that are fetched are
stored in cache in case they are needed again soon
• If you have a ‘for’ loop in a program, for example, having all
the instructions in the loop in cache, speeds up execution
Levels of cache memory
Cache
The benefits of cache
• The data used most often by the CPU is held in
cache so is available extremely quickly
• This greatly reduces the time that the CPU has to wait for data
from main memory
Pressure Sensor Burglar alarm systems, Traffic light controls, Chemical processes
Liquid through pipes
Gas Sensor Pollution monitoring (river), Greenhouse environments, Confined areas (space craft,
aircraft), Fish tanks / aquariums
Carbon monoxide alarms
Light Sensor Controlling street lighting, Burglar alarms (beams of light), Automatic doors, Greenhouse
pH Sensor Water treatment plants, Pollution monitoring (river), Aquariums
Greenhouse
Working of an Embedded/ Control System
Identify/pick the correct sensor/s for the embedded system and then list the following steps
in the order
______Sensor captures the data from the system ( temperature , pressure, PH sensors)
ADC embedded within sensor converts the sensor's analogue readings to digital signals.
Digital signal is sent to the microprocessor
Microprocessor compares the reading with the already setup up thresh hold and if the
values are in acceptable range, then no action is taken,
otherwise, processor sends the signal to the output devices ( restart cooling, open window ,
set off an alarm).
Digital to analogue converter are used to send analogue signal to output device if analogue
signal is needed for the output device
The whole process repeats itself
Benefits and draw backs