Lesson 6 - Central Processing Unit
Lesson 6 - Central Processing Unit
A processor core (or simply “core”) is an individual processor within a CPU. Many computers
today have multi-core processors, meaning the CPU contains more than one core.
For many years, computer CPUs only had a single core. In the early 2000s, as processor clock speeds
began plateauing, CPU manufacturers needed to find other ways to increase processing
performance. Initially, they achieved this by putting multiple processors in high-end computers.
While this was effective, it added significant cost to the computers and the multiprocessing
performance was limited by the bus speed between the CPUs.
By combining processors on a single chip, CPU manufactures were able to increase
performance more efficiently at a lower cost. The individual processing units became known as
“cores” rather than processors. In the mid-2000s, dual-core and quad-core CPUs began replacing
multi-processor configurations. While initially only high-end computers contained multiple cores,
today nearly all PCs have multi-core processors.
A processor with two cores is called a dual-core processor; with four cores, a quad-core; six
cores, hexa-core; eight cores, octa-core. As of 2019, the majority of consumer CPUs feature
between two and twelve cores. Workstation and server CPUs may feature as many as 48.
The power of the CPU determines the speed at which software programs can operate. More
cores mean a CPU can do more work. A CPU with DUAL, TRIPLE or QUAD cores will make a significant
difference in the processing power of the laptop you choose.
⮚ THE SINGLE CORE CPU
These are the oldest types of CPUs. Since they can only start one request at a time, they’re not very
good for multitasking. If you often run more than one application at a time, you’ll notice a sharp
decrease in performance. Clock speed largely affects the performance of these types of CPUs (we’ll
talk more about clock speed in a moment).
What is Hyper-threading?
A “thread” is a stream of data. Remember that an individual processor can only execute one
instruction at a time. As such, if you’re running multiple programs. Each thread into the processor
must be scheduled and executed by the core individually. This causes the delay you notice when
you’re multitasking with more than one program open.
Hyper-Threading is a technology that helps each processor core schedule and assign
resources to two threads of data at once. So, a dual-core CPU can “virtualize” two more cores,
making it act as if it had four processing cores.
COMPONENTS OF CPU
Cache is a type of fast memory that buffers between RAM and the CPU. It’s like a temporary
holding place on the CPU for data that’s used all the time. The front side bus (FSB) of a CPU connects
with RAM on the motherboard.
Instead of relying on RAM for commonly used data. It’s stored on the CPU’s cache, which is faster
than RAM because of its physical proximity to the CPU’s processors. This setup allows the CPU to
take requests off memory, greatly increasing laptop speeds.
2. Control Unit
A control unit (CU) handles all processor control signals. It directs all input and output flow,
fetches code for instructions from microprograms and directs other units and models by providing
control and timing signals. A CU component is considered the processor brain because it issues
orders to just about everything and ensures correct instruction execution.
A CU takes its input from the instruction and status registers. Its rules of operation, or
microprogram, are encoded in a programmable logic array (PLA), random logic or read-only
memory (ROM).
Control Unit functions are as follows:
✔ It is responsible for controlling the transfer of data and instructions among other units of a
computer
✔ It manages and coordinates all the units of the computer.
✔ It obtains the instructions from the memory, interprets them, and directs the operation of the
computer.
✔ It communicates with Input/Output devices for transfer of data or results from storage.
✔ Sends and receives control signals from other computer devices
✔ Handles multiple tasks, such as fetching, decoding, execution handling and storing results .
LOGICAL OPERATIONS: perform logic operations such as comparing, selecting, matching, and
merging of data. These include AND, OR, NOT, XOR, NOR, NAND gate, etc.
BIT-SHIFTING OPERATIONS: This pertains to shifting the positions of the bits by a certain number of
places to the right or left, which is considered a multiplication operation.
ARITHMETIC OPERATIONS: This refers to perform arithmetic operations like addition, subtraction,
multiplication, and division. All complex operations are done by making repetitive use of the above
operations.
FUNCTIONS OF CPU
The CPU processes instructions it receives in the process of decoding data. In processing this data,
the CPU performs four basic steps:
1. Fetch: Each instruction is stored in memory and has its own address. The processor takes this
address number from the program counter, which is responsible for tracking which instructions the
CPU should execute next.
2. Decode: All programs to be executed are translated to into Assembly instructions. Assembly code
must be decoded into binary instructions, which are understandable to your CPU. This step is called
decoding.
3. Execute: While executing instructions the CPU can do one of three things: Do calculations with its
ALU, move data from one memory location to another, or jump to a different address.
4. Store: The CPU must give feedback after executing an instruction, and the output data is written
to the memory.