Components of Computer
Components of Computer
BBA-IT Sem I
Index
• List of components of Computer
• CPU
• Memory
• Overview of PC architecture
Components of Computer
• Following are the 5 main
components of Computer
• Central Processing Unit (CPU)
• Input devices
• Output devices
• Primary memory
• Secondary memory
Central Processing Unit (CPU)
• ‘Brain’ of your computer.
• CPU is a critical part of any modern devices.
• Also called a processor, central processor, or microprocessor.
• The CPU receives instructions from both hardware components and
active software.
• It processes these instructions to produce output, performing
calculations and manipulating data as required.
• Essential programs like operating systems (OS) and application software
(e.g., for word processing, web browsing, gaming) are stored and
executed by the CPU.
• The CPU facilitates communication between input and output devices.
• It interprets inputs from actions such as clicking a mouse, moving
the cursor, or pressing keys on a keyboard.
• The CPU works with relevant software programs to achieve outcomes
such as printing documents, playing audio, or displaying text on the
screen.
• This ensures seamless interaction with peripherals.
• The CPU is installed into a CPU socket on the motherboard.
• It is equipped with a heat sink to absorb and dissipate heat, ensuring
smooth functionality and optimal operating temperatures.
Central Processing Unit (CPU)
• 1970s Early Microprocessors:
• 1971: Intel introduces the 4004, the first commercially available
microprocessor, designed by Ted Hoff, Federico Faggin, and others.
It was a 4-bit CPU used in calculators.
• 1972: Intel releases the 8008, an 8-bit microprocessor, expanding
capabilities beyond simple calculators.
• 1974: Intel launches the 8080, which becomes widely used in early
personal computers and other systems.
• 1980s Rise of x86 Architecture:
• 1981: IBM introduces the IBM PC with the Intel 8088 processor,
marking the beginning of the x86 architecture dominance in
personal computing.
• 1982: Intel releases the 80286 (286) processor, offering increased
performance and capabilities.
• 1985: Intel launches the 386 processor (80386), introducing 32-bit
architecture and enabling multitasking and larger memory
addressing.
• 1990s Advancements in Performance:
• 1993: Intel introduces the Pentium processor (80586), bringing
enhanced performance and floating-point arithmetic capabilities.
• Late 1990s: AMD becomes a significant competitor with its K5 and
K6 processors, challenging Intel's dominance.
Central Processing Unit (CPU)
• 2000s Multicore Processors and Mobility:
• 2005: Intel introduces dual-core processors with the Pentium D
and later the Core 2 Duo, focusing on performance and energy
efficiency.
• 2003: AMD launches the Athlon 64, introducing 64-bit processing
to consumer desktops.
• 2010s Integration and Efficiency:
• 2011: Intel releases Sandy Bridge processors, integrating CPU and
GPU on the same die, enhancing multimedia and gaming
performance.
• 2017: AMD launches Ryzen processors, offering competitive
performance against Intel's offerings with multi-core architecture.
• 2020s Continuing Innovation:
• 2020: AMD introduces Ryzen 5000 series processors based on Zen
3 architecture, focusing on gaming and content creation
performance.
• 2021: Intel launches Alder Lake processors, combining high-
performance and efficiency cores for desktop and mobile
platforms.
Central Processing Unit (CPU)
• Components of CPU
• Memory unit
• Control unit
• Arithmatic & Logic unit (ALU)
• Clock speed
• The clock speed of a processor, also known as the CPU clock rate,
denotes how many instructions it can process per second.
• It is measured in gigahertz (GHz), where 1 GHz equals 1 billion
cycles per second.
• For instance, a CPU with a clock speed of 4.0 GHz can execute 4
billion instructions per second.
• Each instruction represents a basic CPU operation, such as data
transfer or mathematical calculation.
• Higher clock speeds enable CPUs to process instructions more
quickly, thereby improving overall performance.
• Analogously, in a factory production line, the clock speed
resembles the speed of a conveyor belt, determining how many
workpieces can be processed within a specified period.
Control Unit of CPU
• The Control Unit (CU) is an essential component of the Central
Processing Unit (CPU), responsible for overseeing the operation of a
computer system.
• Within the CU, circuitry utilizes electrical signals to direct the computer
in executing stored instructions.
• It retrieves instructions from memory, decodes them, and ensures their
execution.
• Consequently, the CU governs and harmonizes the operations of all
computer components.
• The primary role of the Control Unit (CU) is to oversee and manage the
flow of information within the processor.
• Acting as a traffic controller, it ensures efficient transfer of information
and instructions among different components of the computer system.
• The CU orchestrates the sequence in which instructions are executed
and synchronizes activities among various CPU units.
• Unlike other CPU components involved in processing and storing data,
the CU functions as a supervisor, ensuring instructions are executed
correctly and in the intended order.
Control Unit of CPU
• The Control Unit achieves coordination within the CPU through a
series of steps:
• Fetch: The Control Unit retrieves an instruction from the computer's memory
using the program counter (PC), which holds the address of the next instruction.
• Decode: Upon fetching, the Control Unit breaks down the instruction into its
elements, including the operation code (opcode) and operands. Op operands
provide data or memory locations, while the opcode specifies the operation
type.
• Execute: Following decoding, the Control Unit initiates the execution phase. It
coordinates actions among CPU units like the arithmetic logic unit (ALU) to
perform the operation defined by the instruction, involving calculations or data
manipulation.
• Store: After execution, the Control Unit updates registers and flags to reflect the
operation's results. This includes storing outcomes in registers, updating the
program counter, or adjusting status flags (e.g., zero flags, carry flags).
• Repeat: The Control Unit proceeds to fetch the next instruction by incrementing
the program counter. This cycle, known as the fetch-decode-execute cycle,
repeats for each instruction in the program.
• The Memory unit has a capacity of 4096 words, and each word contains 16 bits.
• The Data Register (DR) contains 16 bits which hold the operand read from the memory location.
• The Memory Address Register (MAR) contains 12 bits which hold the address for the memory location.
• The Program Counter (PC) also contains 12 bits which hold the address of the next instruction to be read from
memory after the current instruction is executed.
• The Accumulator (AC) register is a general purpose processing register.
• The instruction read from memory is placed in the Instruction register (IR).
• The Temporary Register (TR) is used for holding the temporary data during the processing.
• The Input Registers (IR) holds the input characters given by the user.
• The Output Registers (OR) holds the output after processing the input data.
Memory - Registers
• Role in Instruction Execution
• Fetching: The CPU fetches instructions from memory into the Instruction Register.
• Decoding: The instruction is decoded, and the relevant data is fetched from
registers if necessary.
• Executing: The CPU performs the operation using the data in registers.
• Storing: The result is either stored back into a register or written to memory.