0% found this document useful (0 votes)
158 views20 pages

Unit 4 - Microprocessor Fundamental

DELD_AIDS Notes 2024 Pattern

Uploaded by

Shweta borse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views20 pages

Unit 4 - Microprocessor Fundamental

DELD_AIDS Notes 2024 Pattern

Uploaded by

Shweta borse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Shweta K.

Borse

1. Evolution of Intel Microprocessors


1.1 Introduction

Intel has been a pioneer in microprocessor development since 1971. The evolution
of Intel’s microprocessors shows how performance, complexity, and integration

e
have increased over time, from 4-bit processors to multi-core hybrid
architectures.

rs
1.2 Timeline of Intel Microprocessors

Bo
Year Microprocessor Features

1971 Intel 4004 4-bit, first commercial


microprocessor, 740 KHz, used in
calculators
K.
1974 Intel 8080 8-bit, clocked at 2 MHz, used in early
computers
ta

1978 Intel 8086 16-bit, beginning of x86 architecture

1982 Intel 80286 Introduced protected mode and


we

memory management

1985 Intel 80386 32-bit, virtual memory, multitasking


support
Sh

1989 Intel 80486 Integrated FPU, pipelining

1993 Pentium (P5) Superscalar architecture, dual


pipelines, MMX instructions

1995–200 Pentium Pro to Pentium 4 Transition to 64-bit, increased clock


5 speeds

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

2006 Core Architecture (Core Multi-core CPUs, improved


Duo, Core 2 Duo) performance per watt

2010s Core i3/i5/i7/i9 Hyper-threading, Turbo Boost,


integrated GPU

2021 Hybrid Architecture Mix of performance and efficiency


onwards (Alder Lake) cores (big.LITTLE)

e
1.3 Key Trends in Evolution

rs
●​ Increase in word size (from 4-bit to 64-bit)​

Bo
●​ Integration of multiple cores​

●​ Improved power efficiency​


K.
●​ Addition of specialized instructions (SSE, AVX)​

●​ On-chip GPUs and AI accelerators


ta

2. Microprocessor vs Microcontroller
we

2.1 Microprocessor

●​ A microprocessor is a general-purpose CPU.​


Sh

●​ It performs computing tasks and needs external components (RAM, ROM,


I/O) to function.​

●​ Used in desktops, laptops, and servers.​

2.2 Microcontroller
Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ A microcontroller is a compact integrated circuit that includes a CPU, RAM,


ROM, and I/O ports in a single chip.​

●​ Designed for specific control applications.​

●​ Used in embedded systems like home appliances, IoT devices, robots.

e
rs
Bo
K.
2.3 Comparative Table

Feature Microprocessor Microcontroller


ta

Components CPU only CPU + RAM + ROM + I/O

Cost High Low


we

Size Larger (requires more Small (single chip)


components)
Sh

Power High Low


Consumption

Performance High for complex tasks Sufficient for simple control


tasks

Application PCs, servers, smartphones Embedded systems,


automation, IoT

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

3. Intel x86 (Pentium) Architecture

e
rs
Bo
K.
ta
we

3.1 Overview

Pentium processors belong to Intel’s x86 family and are based on CISC (Complex
Instruction Set Computing). They are known for their high performance due to
Sh

complex instruction sets, pipelining, and superscalar execution.

3.2 Architecture Features

●​ Superscalar: Multiple instructions executed per cycle​

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ Instruction Pipelining: Overlapping instruction stages (fetch, decode,


execute)​

●​ Integrated FPU (Floating Point Unit)​

●​ MMX, SSE instructions for multimedia processing​

●​ 32-bit and later 64-bit addressing (with x86_64)​

e
rs
3.3 Key Registers

Register Purpose

Bo
EAX, EBX, ECX, EDX General-purpose

EIP Instruction Pointer (points to next instruction)


K.
ESP Stack Pointer

EBP Base Pointer


ta

EFLAGS Status flags (Zero, Carry, Overflow, etc.)

CS, DS, SS, ES, FS, GS Segment registers (memory segmentation)


we

3.4 Instruction Types


Sh

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ Data Movement: MOV, PUSH, POP, XCHG​

●​ Arithmetic: ADD, SUB, MUL, DIV, INC, DEC​

●​ Logical: AND, OR, XOR, NOT, TEST​

●​ Control Flow: JMP, CALL, RET, JZ, JNZ, LOOP​

e
●​ String Operations: MOVS, LODS, STOS

rs
1. Data Movement Instructions

Bo
These instructions are used to transfer data between registers, memory, or I/O
ports. They do not modify the data but move it from one place to another.

MOV – Move data


K.
Syntax:

MOV destination, source


ta

Description:​
Transfers data from the source operand to the destination operand.
we

Example:

MOV AX, BX ; Copies contents of BX into AX


Sh

Diagram:

Before: AX = ???? BX = 1234h

MOV AX, BX

After: AX = 1234h BX = 1234h

PUSH – Push to Stack

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Syntax:

PUSH source

Description:​
Decreases the stack pointer (SP) by 2 (in 16-bit mode) and stores the source
operand at the new top of the stack.

Example:

e
PUSH AX

rs
Diagram:

Bo
Stack grows downward

Before:
K.
SP -> 1000h

[1000h] = ????
ta

PUSH AX:

SP = SP - 2 = 0FFEh
we

[0FFEh] = AX

POP – Pop from Stack


Sh

Syntax:

POP destination

Description:​
Reads the 16-bit value from the top of the stack into the destination, and then
increments SP by 2.

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Example:

POP BX

Diagram:

[SP] = value

POP BX:

e
BX = [SP]

rs
SP = SP + 2

XCHG – Exchange values

Bo
Syntax:

XCHG operand1, operand2


K.
Description:​
Exchanges the values of two operands (either both registers or one register and
one memory location).
ta

Example:

XCHG AX, BX
we

Diagram:

Before: AX = 1234h, BX = 5678h


Sh

After: AX = 5678h, BX = 1234h

2. Arithmetic Instructions
These instructions perform mathematical operations on data.

ADD – Addition
Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Syntax:

ADD destination, source

Description:​
Adds source to destination, and stores the result in destination.

Example:

e
ADD AX, BX

rs
Diagram:

AX = 0005h, BX = 0003h

Bo
ADD AX, BX

Result: AX = 0008h
K.
SUB – Subtraction

Syntax:
ta

SUB destination, source

Description:​
Subtracts source from destination, and stores the result in destination.
we

Example:

SUB AX, BX
Sh

MUL – Unsigned Multiplication

Syntax:

MUL source

Description:​
Multiplies AL or AX by source. Result is stored in AX or DX:AX.
Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Example (8-bit):

AL = 02h, source = 03h

MUL BL

Result: AX = 0006h

DIV – Unsigned Division

e
Syntax:

rs
DIV source

Bo
Description:​
Divides AX by source. Stores the quotient in AL, and the remainder in AH.

Example:
K.
AX = 0006h, source = 02h

DIV BL
ta

Result: AL = 03h, AH = 00h

INC / DEC – Increment / Decrement


we

Syntax:

INC AX ; AX = AX + 1
Sh

DEC BX ; BX = BX - 1

These affect the flags except the Carry flag.

3. Logical Instructions

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

These operate at the bit level and are often used in conditions, masking, or
testing.

AND – Bitwise AND

Syntax:

AND destination, source

e
Description:​
Performs logical AND operation between each bit of destination and source.

rs
Example:

Bo
AX = 1100 0001b

BX = 1010 1100b

AND AX, BX
K.
Result: AX = 1000 0000b

OR – Bitwise OR
ta

Syntax:
we

OR destination, source

Performs logical OR operation between the bits.


Sh

XOR – Bitwise Exclusive OR

Syntax:

XOR destination, source

Performs logical XOR operation between the bits.

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

NOT – Bitwise Inversion

Syntax:

NOT destination

Description:​
Inverts all bits of the operand.

e
TEST – Logical AND (no result stored)

rs
Syntax:

TEST destination, source

Bo
Description:​
Performs a bitwise AND like AND, but does not store the result — only affects
flags.
K.
Used for condition checks.

4. Control Flow Instructions


ta

These manage how instructions are executed — sequentially or conditionally.


we

JMP – Unconditional Jump

Syntax:
Sh

JMP label

Description:​
Changes instruction pointer to label, causing a jump.

CALL – Call Procedure

Syntax:

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

CALL label

Description:​
Pushes return address on the stack, then jumps to the procedure at label.

RET – Return from Procedure

Syntax:

e
RET

rs
Description:​
Pops return address from the stack and jumps back to that address.

Bo
JZ / JNZ – Conditional Jumps

JZ: Jump if Zero (ZF = 1)​


JNZ: Jump if Not Zero (ZF = 0)
K.
Usage:

CMP AX, BX
ta

JZ EqualLabel

Explanation:
we

●​ CMP subtracts operands and sets flags.​

●​ JZ checks if Zero Flag is set (meaning AX == BX).


Sh

LOOP – Loop with Counter

Syntax:

LOOP label

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Description:​
Decrements CX, and jumps to label if CX is not zero.

Example:

MOV CX, 5

LOOP_START:

e
; Some instructions

rs
LOOP LOOP_START

5. String Operation Instructions

Bo
Used for handling blocks of data stored in memory, typically for string or buffer
processing. They use implicit registers: SI, DI, AX, CX, etc.
K.
MOVS / MOVSB / MOVSW – Move String

Syntax:
ta

MOVSB ; Move byte from [SI] to [DI]

MOVSW ; Move word


we

Description:​
Moves data from [DS:SI] to [ES:DI], then increments or decrements SI and DI
Sh

based on Direction Flag.

LODS / LODSB / LODSW – Load String

Syntax:

LODSB

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

Description:​
Loads byte at [SI] into AL, and adjusts SI.

STOS / STOSB / STOSW – Store String

Syntax:

STOSB

e
Description:​
Stores value from AL to [DI], then adjusts DI.

rs
Note on REP prefix:

Bo
Many of the string instructions are used with REP, which repeats the instruction
CX times.

Example:
K.
MOV CX, 10

REP MOVSB ; Move 10 bytes from [DS:SI] to [ES:DI]


ta

4. ARM Cortex Architecture


we

4.1 Overview

ARM (Advanced RISC Machine) is based on RISC (Reduced Instruction Set


Sh

Computing) principles. It offers high performance with low power consumption,


ideal for mobile and embedded applications.

4.2 RISC Principles

●​ Simple, fixed-length instructions​

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ Load/store architecture (only load and store access memory)​

●​ Fewer addressing modes​

●​ One clock cycle per instruction (ideally)​

4.3 ARM Cortex Families

e
●​ Cortex-A: Application processors (smartphones, tablets)​

rs
●​ Cortex-M: Microcontrollers (IoT, automotive, industrial)​

Bo
●​ Cortex-R: Real-time systems (safety-critical devices)​

4.4 Use in Mobile AI


K.
●​ Supports NEON for SIMD operations​

●​ Efficient for running TensorFlow Lite, ONNX​


ta

●​ Widely used in edge AI applications: object detection, speech processing,


we

face recognition​

4.5 Instruction Set


Sh

●​ ARM (32-bit), Thumb (16-bit), Thumb-2 (mixed)​

●​ Common instructions: MOV, ADD, SUB, CMP, B, LDR, STR​

Diagram:

●​ ARM pipeline stages (Fetch → Decode → Execute → Memory → Write-back)


Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ Comparison between ARM and x86 (RISC vs CISC)

e
rs
Bo
K.
ta
we

5. NVIDIA Jetson Platform


5.1 Overview
Sh

NVIDIA Jetson is a family of embedded computing platforms built for AI at the


edge, combining CPU, GPU, and AI accelerators on a single board.

5.2 Architecture

●​ GPU-based parallel processing​

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ ARM Cortex-A cores as CPUs​

●​ CUDA cores for running deep learning models​

●​ Tensor Cores for accelerated matrix operations​

e
rs
Bo
K.
5.3 Popular Jetson Boards
ta

Model Use Case Specs

Jetson Nano Entry-level AI education Quad-core ARM, 128-core GPU


we

Jetson Robotics, drones 6-core ARM, 384-core Volta GPU


Xavier NX

Jetson AGX Advanced robotics, Up to 12-core ARM, 2048-core


Sh

Orin autonomous systems GPU, Tensor cores

5.4 Applications in Robotics & Edge AI

●​ Real-time inference: object detection, path planning​

●​ Supports ROS (Robot Operating System)​

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

●​ Integration with AI frameworks: TensorFlow, PyTorch, ONNX, OpenCV

6. Simple Code Examples


6.1 Intel x86 Assembly (NASM Syntax)
section .text
global _start

e
rs
_start:
mov eax, 5 ; Load 5 into EAX
add eax, 3 ; Add 3

Bo
mov ebx, eax ; Copy result to EBX
; Exit
mov eax, 1
int 0x80
K.
6.2 ARM Assembly (Keil / GCC)
ta

.global _start

_start:
we

MOV R0, #5 ; Load 5 into R0


ADD R0, R0, #3 ; Add 3
; Exit (platform-dependent)
Sh

6.3 C Code (Cross-platform)


#include <stdio.h>

int main() {
int a = 5, b = 3;
int result = a + b;

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik
Shweta K. Borse

printf("Result: %d\n", result);


return 0;
}

Summary
Topic Core Concepts

e
Evolution of Intel Progression from simple CPUs to hybrid,

rs
Microprocessors multi-core designs

Microprocessor vs CPU-centric vs system-on-chip, cost and power

Bo
Microcontroller tradeoffs

Intel x86 (Pentium) CISC design, complex instructions, multitasking

ARM Cortex RISC design, energy-efficient, optimized for


K.
mobile/embedded AI

NVIDIA Jetson AI edge platform, GPU-based processing for


robotics
ta

Assembly/C Examples Show how


we
Sh

Shweta K. Borse​
R. H. Sapat College Of ENGG. Management Studies and Research, Nashik

You might also like