Hardware Function - Cpu
Hardware Function - Cpu
CPU
It is the core of the computer, and your computer cannot function without it.
It’s a small computer chip that sits atop the main circuit board (motherboard) of a
computer.
Generally, it’s distinctly separate from the memory, which is where information is
stored and the graphics card or graphics chip, which handles all rendering of video
and 3D graphics to the monitor or screen.
It acts upon the memory component, which stores all the data and information on
your system.
WHAT IS CPU?
Intel and AMD both offer CPUs with graphics chips and memory stored on them
too, meaning they can do more than just standard CPU functions SoC (System
on Chip).
SoCs are common in mobile computing (smartphones), single board computers
(e.g raspberry pi) and other embedded systems.
A CPU is only one of many components that make up a System on a Chip.
Most popular SoCs are Qualcomm Snapdragon, MediaTek, Samsung Exynos,
HiSilicon Kirin, Nvidia Tegra, AMD’s Llano, Intel’s Ivy Bridge.
S0C - EXAMPLE
Advantages:
1. Size
Although it is a little big larger than a CPU, but it is considered small because it
integrates many different component such as memory. So, it is easier to make a
small computer or make a complete computers in smartphones and tablets.
So, the remaining space can be used to fit the device with a long-lasting battery
life.
WHAT IS SOC?
Advantages:
2. High level of integration and much shorter wiring
Use considerably less power. So, it is a bonus to mobile computing.
3. Cutting down number of physical chips
Cheaper to build a computer with SoC.
Disadvantages:
1. Lack of flexibility
Because everything is integrates, this will be wasteful and expensive if only one
component to be add/replaced for example if only want to add more RAM.
CPU COMPONENTS
CONTROL UNIT:
Does not execute program instructions; rather, it directs other parts of the system
to do so.
ARITHMETIC/LOGIC UNIT:
Can perform four kinds of arithmetic operations, or mathematical calculations:
addition, subtraction, multiplication, and division.
Also performs logical operations which is usually a comparison.
The computer can then take action based on the result of the comparison.
HOW CPU EXECUTES PROGRAM
Before an instruction can be executed, program instructions and data must be placed
into main memory (RAM) from an input device or a secondary storage device.
Once the necessary data and instruction are in main memory (RAM), the central
processing unit performs the following four steps for each instruction (Those 4 steps
are called machine cycle):
The control unit fetches (gets) the instruction from main memory.
The control unit decodes the instruction (decides what it means: what operation to be
performed on the data and instructions) and directs that the necessary data be moved from
memory to the arithmetic/logic unit.
The arithmetic/logic unit executes the arithmetic or logical instruction.
The arithmetic/logic unit stores the result of this operation in memory.
The control unit eventually directs memory to release the result to an output device or a
secondary storage device.
DATA STORAGE AND ITS RELATIONSHIP
WITH CPU
Computers use two types of storage: Primary storage and secondary storage.
The CPU interacts closely with primary storage.
Primary storage holds data only temporarily, at the time the computer is executing a
program. Secondary storage holds permanent data.
Registers are temporary storage areas for instructions or data which offer the
advantage of speed.
Register are used to quickly accept, store, and transfer data and instructions that are being
used immediately by the CPU, there are various types of Registers those are used for
various purpose.
EXAMPLE OF REGISTER
A CPU with two cores, for example, could run two different processes at the same time.
This speeds up your system, because your computer can do multiple things at once.
Before hyper-threading and multi-core CPUs came around, people attempted to add
additional processing power to computers by adding additional CPUs.
This requires a motherboard with multiple CPU sockets. The motherboard also needs
additional hardware to connect those CPU sockets to the RAM and other resources.
There’s a lot of overhead in this kind of setup.
There’s additional latency if the CPUs need to communicate with each other, systems
with multiple CPUs consume more power, and the motherboard needs more sockets
and hardware.
CHARACTERISTIC / SPECIFICATION OF CPU
The more CPUs or cores a computer has, the more things it can do at once, helping
improve performance on most tasks.
Most computers now have CPUs with multiple cores.
even CPUs with multiple cores exist on modern smartphones and tablets.
CHARACTERISTIC / SPECIFICATION OF CPU
While the original consumer processors with hyper-threading only had a single core
that masqueraded as multiple cores, modern Intel CPUs now have both multiple cores
and hyper-threading technology.
Dual-core CPU with hyper-threading appears as four cores to your operating system,
while your quad-core CPU with hyper-threading appears as eight cores.
Hyper-threading is no substitute for additional cores, but a dual-core CPU with hyper-
threading should perform better than a dual-core CPU without hyper-threading.
CHARACTTERISTIC / SPECIFICATION OF CPU
3. # of threads
When a command is performed, CPU begins the fetch, decode, and execution process
to achieve that command.
The thread is the sequence of instructions that tell your computer what it has to do to
perform that command.
Threads refer to the highest level of code executed by a processor which is a small
sequence of programmed instructions.
So with many threads, your CPU can handle several tasks at the same time.
The number of threads you have depends on the number of cores in your CPU.
Each CPU core can have two threads. So a processor with two cores will have four
threads. A processor with eight cores will have 16 threads.
CHARACTERISTIC / SPECIFICATION OF CPU
The more cores you have, the more threads you have. The more threads you have, the
better the performance of your system will be.
Threads are usually managed by a scheduler, which is a standard part of any operating
system.
CPU CLOCK SPEED
The frequency refers to the operating speed of the processor. Before multi-core processors,
frequency was the most important performance metric between different CPUs.
The speed of a computer's processor chip (technically known as its "clock speed") is
measured in gigahertz (GHz), with the fastest modern processors for example Intel Core i9-
9000 processor currently running up to 5.00 GHz.
It effectively denotes how many instructions a CPU can handle per second.
Higher processor speeds become more important is for applications such as video editing,
3D graphics work and (for the majority of "power users") playing computer games! For any
of these applications, within reason the faster the processor the better.
As assumption, generally, that processor rated at 2.5 GHz is probably faster than the one
rated at 2.3 GHz.
CHARACTERISTIC / SPECIFICATION OF CPU
7. Cache
The Processor Cache is memory that store data (code, commands etc.).
It is used with the processor to facilitate the access of data from the system's main
memory or RAM.
CPU caches are small pools of memory that store information the CPU is most likely to
need next.
The goal of the cache system is to ensure that the CPU has the next bit of data it will
need already loaded into cache by the time it goes looking for it (also called a cache
hit).
Processor Cache reduces the average time to access memory.
The processor cache typically consists of two levels, which are the L1 cache and the L2
cache.
CHARACTERISTIC / SPECIFICATION OF CPU
6. Cache
The L1 cache is directly accessed by the computer's processor and holds data that the
processor needs to execute instructions.
The L2 cache pulls information from the system's main memory, which is then
accessed by the L1 cache.
Processor Cache is much faster than RAM so provides better responsiveness if a
computer has more cache.
It is a data storage section of the CPU that next set of instructions and data that is
currently needed.
The more Processor Cache the computer has (512 KB is better than 256 KB), the more
data you could have in the cache for faster processing.
Both L1 and L2 are parts of the CPU now.
CHARACTERISTIC / SPECIFICATION OF CPU
8. Bus Speed
The term "bus speed" refers to how quickly the system bus can move data from one
computer component to the other.
The faster the bus, the more data it can move within a given amount of time.
The CPU itself needs data to process; the bus job is to get that data to the CPU.
The bus does not increase or decrease the CPU's speed, but handles data that flows in
and out of the device, which plays a key role in how well the CPU performs.
CHARACTERISTIC / SPECIFICATION OF CPU
8. Bus Speed
An insufficient bus speed could leave a computer's CPU hanging as it waits for more
information to process.
This creates a "bottleneck" as one part of the computer slows down performance for
another part of the system.
If the bus is too slow, the CPU will waste a substantial amount of cycles and the
computer user would perceive this as slower performance.
A motherboard that has a sufficient or excessive bus speed for the CPU will offer the
optimal performance speed.
If the bus is fast enough, the CPU will consistently have new data to process ready to
go when it completes a cycle.
FRONT SIDE BUS
Front side bus (FSB) speed is a measure of how fast a microprocessor communicates
with the computer's main circuit board (or "motherboard") into which it is physically
connected.
Again, the higher the measure the better for overall performance, with FSB speeds
currently ranging from 533MHz (still perfectly sufficient for the vast majority of
applications) up to 1600Mhz.
CHARACTERISTIC / SPECIFICATION OF CPU
9. Socket
CHARACTERISTIC / SPECIFICATION OF CPU
9. Socket
The socket is the physical interface a processor connects to.
In the case of an LGA socket it consists of a series of pins which correspond to flat
connectors on the bottom of the processor.
Sockets are always located on a computer’s motherboard. They can’t be upgraded
without changing the motherboard entirely.
There are different sockets depending on what generation CPU is supported.
If a situation should occur where the CPU and socket aren't compatible, the best case
scenario is that the component won't physically be able to connect with the socket,
while the worst case may be irreparable damage to either system part.
CHARACTERISTIC / SPECIFICATION OF CPU
9. Socket
Depending on the configuration of pins, certain sockets may support multiple
processor generations.
An example would be the current LGA 1151 socket for Intel, which supports both sixth-
and seventh-gen CPUs.
LGA 1151 is the latest Intel socket design as of 2015.
The design supports six different chipsets, from lowest power to highest: H110, B150,
Q150, H170, Q170, and the most performance-oriented, Z170.
CHARACTERISTIC / SPECIFICATION OF CPU