Introduction To Microprocessors (NIT)
Introduction To Microprocessors (NIT)
Architecture
and
Introduction to Microprocessors
Presented by
Er. Irfan Rasool
Exploring Computer Organization and Architecture
Advantages:
● Simplicity: The design is straightforward, making it easier to understand and
implement.
● Flexibility: Programs can be easily modified and executed by the CPU.
● Uniformity: A single memory space simplifies the architecture and the design of
compilers and operating systems.
Disadvantages:
● Von Neumann Bottleneck: The shared bus for data and instructions can become a
performance bottleneck, as the CPU must wait for data or instructions to be
transferred from memory.
● Sequential Processing: The architecture inherently supports sequential execution,
which can limit performance in tasks requiring parallelism.
Basic Components of Microcomputer(Harvard
Architecture)
Separate Connection of Memory and I/O Devices with CPU
Basic Computer Structure
Central Processing Unit Memory Input/Output (I/O)
(CPU) Devices
The brain of the computer, the Memory stores data and I/O devices allow the computer
CPU executes instructions, instructions that the CPU needs to interact with the outside
performs calculations, and to access quickly. There are two world. This includes everything
manages the flow of data. It main types: RAM (Random from keyboards and mice for
contains the Arithmetic Logic Access Memory) for temporary user input to monitors and
Unit (ALU) and the Control Unit data and storage devices like printers for output, as well as
(CU) which work together to hard drives or SSDs for network cards for
Addressing Modes
2
Addressing modes determine how the CPU accesses data in memory. Common addressing
modes include register addressing, immediate addressing, direct addressing, and indirect
addressing.
Data Types
3
The ISA specifies the data types that the CPU can handle. These can include integers,
floating-point numbers, characters, and even more complex data structures like arrays and
structures.
Instruction Formats
4
Instructions are stored in memory in a specific format. This format defines how the opcode,
operands, and other necessary information are encoded within each instruction.
Arithmetic Logic Unit (ALU)
Arithmetic Operations
1
The ALU performs basic arithmetic operations like addition, subtraction,
multiplication, and division. These operations are essential for calculations, data
manipulation, and program execution.
Logical Operations
2
The ALU can also perform logical operations such as AND, OR, XOR, and NOT. These
operations are used for bit-level manipulation, comparisons, and decision making
within programs.
Comparison Operations
4
The ALU can compare data values, determining if they are equal, greater than, or less
than. This capability is crucial for conditional branching and decision-making within
programs.
Control Unit (CU)
Instruction Fetch
The CU fetches instructions from memory and decodes them to determine the
operation to be performed.
Operand Fetch
The CU fetches the operands required for the instruction from memory or
registers.
Execution
The CU controls the ALU to execute the instruction and generate the result.
Result Storage
The CU stores the result of the operation in memory or registers.
Memory Systems
Cache Memory
A small, fast memory that stores frequently accessed data, improving
performance by reducing the time to access data from slower main memory.
Clusters
A collection of interconnected computers working together as a single system,
distributing tasks across multiple machines for increased processing power.
Grid Computing
Cloud Computing
A model for delivering computing services over the internet, including storage,
processing, and software, allowing users to access resources on demand.
Interrupts and Exception Handling
Interrupt Request
1
An interrupt signal is generated by a device or an event, interrupting the normal flow
of execution.
Interrupt Handler
2
The CPU saves its current state and jumps to a specific interrupt handler routine
designed to address the interrupt.
Interrupt Processing
3
The interrupt handler performs actions to address the cause of the interrupt, such as
handling I/O requests or recovering from an error.
Return to Execution
4
The interrupt handler restores the CPU's state and returns control to the interrupted
program.
Computer Security
Malware Cyberattacks
Harmful software designed to disrupt computer Malicious attempts to compromise computer systems,
operations, steal data, or gain unauthorized access. It networks, or data. These can include hacking, phishing,
can include viruses, worms, and Trojan horses. denial-of-service attacks, and ransomware.
But We Have to Focus on
Microprocessor Only
Processor
Different
Types of
Processors
Processor
Installation
Understanding
Processor
and
Microprocessor
Processor: The Heart of Computing
A processor is a general term for any device that interprets and executes instructions. It
processes data by performing calculations and operations as dictated by a computer program.
Function: The processor is responsible for executing instructions from software, performing
operations such as arithmetic, logic, control, and input/output operations.
The processor is the brain of a computer, responsible for interpreting instructions, executing
commands, and controlling the flow of information within the system.
● General-purpose Computing
○ Central Processing Units (CPUs)
● Graphics and Parallel Processing
○ Graphics Processing Units (GPUs)
● Signal Processing
○ Digital Signal Processors (DSPs)
● ASICs
● FPGAs
Microprocessor: The Single-Chip Revolution
A Microprocessor is a specific type of processor that incorporates the functions of a CPU on a single integrated circuit (IC).
Functions:
● It performs all the tasks of a CPU, including fetching, decoding, and executing instructions .
● Microprocessors are the brain of computers and many other electronic devices.
● Single-Chip Integration
○ All CPU functions on a single IC
Parallel Processing
Multiple cores can handle different tasks
Multicore Processor: Unleashing Parallel
Processing
A Multicore Processor is simply a processor containing multiple cores integrated into a single chip.
The presence of these multiple cores allows for parallel processing, where different tasks are executed
simultaneously across the cores, boosting overall system performance.
Functions:
● A multicore processor can perform multiple operations simultaneously by dividing tasks among its
cores.
● Better multitasking, parallel processing, and improved performance in multi-threaded applications.
● Multicore processors are essential for demanding applications like gaming, video editing, and scientific
simulations, where efficient multitasking is crucial.
Microcomputer:
A system incorporating a CPU and associated hardware whose purpose is to manipulate
data. It allows the execution of instructions, enabling the microprocessor to communicate
with external devices.
Microcontroller:
A chip that consists of a microprocessor, memory, and input/output ports, typically used in
applications where size and cost need to be minimized.
Microprocessor Vs Features Microcontrollers Microprocessors
Microcontroller Integrations
Microcontrollers integrate
CPU, memory and I/O ports
Microprocessors require external
components such as memory
onto a single chip. and additional peripherals.
Irfan Rasool
Microprocessor
Microprocessor
o A microprocessor is a highly integrated electronic component that functions as the
central processing unit (CPU) within a computer or electronic device.
o A microprocessor serves as the brain of a computer or electronic device.
o It processes instructions, performs calculations, and manages data within a system.
• Functions:
o Executes instructions from computer programs.
o Performs arithmetic and logic operations.
o Manages input and output operations.
• Key Characteristics:
o Compact and integrated on a single chip.
o Process data in binary form (0s and 1s).
o Operates at high speeds, measured in gigahertz (GHz).
• Components:
o Arithmetic Logic Unit (ALU): Performs mathematical and logical operations.
o Control Unit: Manages the flow of data and instructions within the processor.
o Registers: Small, fast storage locations for data and instructions.
Microprocessor
• Central Processing Unit (CPU):
o The microprocessor is often referred to as the CPU, emphasizing its central role in processing data
and executing instructions.
o It acts as the primary decision-maker and controller in a computer or electronic device.
• Integration:
o Microprocessors are designed to be highly compact and integrated onto a single silicon chip,
consolidating various components essential for processing.
o This integration enables efficient communication and coordination between different parts of the
processor.
• Instruction Execution:
o The microprocessor interprets and executes instructions provided by software programs.
o These instructions are typically in the form of binary code, representing a series of 0s and 1s that the
processor can understand.
• Arithmetic and Logic Operations:
o The microprocessor is equipped with an Arithmetic Logic Unit (ALU), which performs mathematical
computations (arithmetic) and decision-making processes (logic).
o These operations form the basis for all computational tasks performed by the microprocessor.
Microprocessor
• Integration:
o Microprocessors are designed to be highly compact and integrated onto a single silicon chip,
consolidating various components essential for processing.
o This integration enables efficient communication and coordination between different parts of the
processor.
• Instruction Execution:
o The microprocessor interprets and executes instructions provided by software programs.
o These instructions are typically in the form of binary code, representing a series of 0s and 1s that the
processor can understand.
• Arithmetic and Logic Operations:
o The microprocessor is equipped with an Arithmetic Logic Unit (ALU), which performs mathematical
computations (arithmetic) and decision-making processes (logic).
o These operations form the basis for all computational tasks performed by the microprocessor.
Microprocessor
• Data Management:
o Microprocessors use registers, which are small, high-speed storage locations, to temporarily store
data and intermediate results during processing.
o Efficient data management is crucial for the seamless execution of instructions.
• Binary Processing:
o Microprocessors process data in binary form, where information is represented using combinations of
0s and 1s.
o The binary system facilitates electronic storage, transmission, and manipulation of data within the
processor.
• Speed:
o Microprocessors operate at high speeds, measured in gigahertz (GHz), enabling them to quickly
process large volumes of data and execute instructions in a short amount of time.
Microprocessor Applications
• Computers and Laptops:
o Microprocessors serve as the central processing unit (CPU) in computers and laptops,
executing instructions from operating systems and applications.
• Smartphones and Tablets:
o In mobile devices, microprocessors power the entire system, handling tasks such as
running apps, managing connectivity, and processing user input.
• Embedded Systems:
o Microprocessors are extensively used in embedded systems, where they control specific
functions in devices such as washing machines, refrigerators, and automotive systems.
Microprocessor Applications
• Home Appliances:
o Microprocessors are integrated into various household appliances like microwaves,
ovens, and refrigerators, enhancing functionality and automation.
• Telecommunications:
o Microprocessors play a crucial role in telecommunications equipment, including routers,
switches, and base stations, facilitating data transmission and communication.
• Digital Cameras and Imaging Devices:
o Microprocessors handle image processing tasks in digital cameras, improving image
quality and enabling features such as autofocus and image stabilization.
• Medical Devices:
o In healthcare, microprocessors are used in devices like medical imaging equipment,
patient monitoring systems, and diagnostic instruments.
• Automotive Systems:
o In vehicles, microprocessors control engine functions, manage safety systems, and
operate entertainment and navigation systems.
Microprocessor Applications
• Networking Equipment:
o Microprocessors are employed in networking devices such as routers, switches, and
modems to manage data traffic and ensure efficient communication between devices.
• Industrial Automation:
o Microprocessors play a critical role in industrial automation systems, controlling
machinery, monitoring processes, and optimizing production efficiency.
• Aerospace and Defense Systems:
o Microprocessors are used in avionics, navigation systems, radar systems, and other critical
applications in aerospace and defense.
• Consumer Electronics:
o Various consumer electronics, including televisions, DVD players, and audio systems,
utilize microprocessors for signal processing and control functions.
• Wearable Devices:
o Microprocessors power wearable devices like smartwatches and fitness trackers,
processing sensor data and providing real-time feedback to users.
Microprocessor Applications
• Internet of Things (IoT) Devices:
o Microprocessors are integral to IoT devices, enabling them to collect, process, and
transmit data for smart home systems, industrial IoT, and more.
• Gaming Consoles:
o Microprocessors drive the processing power of gaming consoles, enabling realistic
graphics, complex calculations, and seamless gameplay.
Evolution of Microprocessors
• Transistor was invented in 1948 (23 December 1947 in Bell lab). IC was invented in 1958 (Fair
Child Semiconductors) By Texas Instruments J Kilby. The first microprocessor was invented by
INTEL(INTegrated ELectronics).
• Size of the microprocessor – 4 bit
Name Year of Invention Clock speed Number of transistors Inst. per sec
Name Year of Invention Clock speed Number of transistors Inst. per sec
Name Year of Invention Clock speed Number of transistors Inst. per sec
Name Year of Invention Clock speed Number of transistors Inst. per sec
Name Year of Invention Clock speed Number of transistors Inst. per sec
• Ongoing Research:
o Increasing the number of on-chip functions.
o Improving memory speed, I/O devices, and overall processing power.
o Development of multi-core processors for parallel computing.
• Trends:
o Energy-efficient designs.
o Integration of AI capabilities and specialized processing units (GPUs, TPUs).
Types of Microprocessors
• Complex instruction set microprocessor (CISC)
o The processors are designed to minimize the number of instructions per program and
ignore the number of cycles per instruction.
o The compiler is used to translate a high-level language to assembly-level language
because the length of code is relatively short and
o an extra RAM is used to store the instructions.
o These microprocessor can perform complex mathematical calculations in a single
command.
o Example: IBM 370/168, VAX 11/780, Intel x86 CPUs, AMD.
Any Questions