SlideShare a Scribd company logo
Microprocessor Systems
The Microprocessor & its Architecture
Lecture - 2
Memory
• Storage Device
—Addresses
—Registers
• Major Categories
—Read/Write
Memory (R/W)
—Read-only-
Memory (ROM)
D7 D0
Microprocessor-Based Systems
Microprocessor Architecture
• MPU communicates with Memory and I/O
using the System Bus
—Address bus
– Unidirectional
– Memory and I/O Addresses
—Data bus
– Bidirectional
– Transfers Binary Data and Instructions
—Control lines
– Read and Write timing signals
Software
• Assembly Language
—Machine instructions represented in
mnemonics
—Efficient execution and use of memory
—Machine-specific
MPU-Based Systems
• System hardware
—Discrete components
– Microprocessor, Memory, and I/O
—Components connected by buses
– Address, Data, and Control
• System software
—Group of programs that monitors the functions
of the entire system
MPU-Based System
8086 Microprocessor
• The 8086 is a 16-bit microprocessor
chip designed by Intel corporation
in between early 1976 and mid-1978.
• The release of Intel's 8086
microprocessor in 1978 was a
watershed moment for personal
computing.
Elements of the 8086 MP Architecture
The 80x86 has:
• 16-bit internal data bus
• 20-bit address bus:
– 2^20 = 1,048,576 = 1 Megabyte
• Control bus
• Execution Unit
• Bus Interface Unit
The 8086 Processor Model
• The 8086 CPU logic has been partitioned
into two functional units namely:
• Bus Interface Unit (BIU)
• Execution Unit (EU).
EU & BIU
• The major reason for this separation is to
increase the processing speed of the
processor.
• The BIU has to interact with memory and
I/O devices and fetches the instructions
and data required by the EU.
• EU is responsible for executing the
instructions of the programs and to carry
out the required processing.
EU & BIU
8086 Architecture Diagram
Instruction Queue
• It is of 6 Bytes.
• To increase the execution speed, BIU
fetches as many as six instruction bytes
ahead to time from memory.
• It operates on the principle first in first out
(FIFO).
• Then all bytes are given to EU one by one.
• This pre-fetching operation of BIU may be in
parallel with execution operation of EU.
• It improves the execution speed of the
instruction.
The 8086 Programming Model
Registers
• What are Registers
• The programming model of the 8086
through the Core2 is considered to be
program visible because its registers are
used during application programming and
are specified by the instructions.
CP Lecture-2 The Microprocessor and its Architecture.pptx
Registers of 8086
• General Purpose Registers
• Pointer and Index Registers
• Segment Registers
• Instruction Pointer
• Status Flags
General Purpose Registers
• There are four 16-bit general purpose
registers
• Each of these 16-bit registers is further
subdivided into two 8-bit registers.
General Purpose Registers
• AX Register: AX register is also known as accumulator
register that stores operands for arithmetic operation like
divide, rotate.
— Used to hold an offset.
• BX Register: This register is mainly used as a base
register. It holds the starting base location of a memory
region within a data segment.
• CX Register: It is defined as a counter. It is primarily used
in loop instruction to store loop counter and similar
operations.
• DX Register: DX register is used to contain I/O port
address for I/O instruction.
— Used to hold a portion of the result holds a part of the result from
a multiplication or part of the dividend before a division.
— Bp, di, si, r8 – r15
• Source Index (SI)
—The source index register often (source
index) addresses source string data for
the string instructions
• Destination Index (DI)
—often addresses string destination data for
the string instructions.
• Base Pointer(BP)
—points to a memory location in all versions
of the microprocessor for memory data
transfers.
Special Purpose Registers
• Stack Pointer(SP)
—addresses an area of memory called the stack.
The stack memory (stack pointer) stores
data through this pointer
• Instruction Pointer(IP)
—The instruction pointer, which points to the
next instruction in a program, is used by the
microprocessor to find the next sequential
instruction in a program located within the
code segment.
Special Purpose Registers
• EFLAGS:
—Store the state of various conditions in the
microprocessor.
Summary of Registers
Segment Register
• Code Segment Register (CS),
• Data Segment Register (DS),
• Stack Segment Register (SS),
• Extra Segment Register (ES).
Code Segment
• The code segment is a section of memory
that holds the code (programs and
procedures) used by the microprocessor.
—In real mode, this specifies the start of a 64KB
memory segment.
—DataSegment
– Similar to the CS except this segment holds data.
– Data are accessed in the data segment by an offset
address or the contents of other registers that hold
the offset address.
• Stack segment
—The stack segment defines the area of
memory used for the stack. The stack entry
point is determined by the stack segment and
stack pointer registers. The BP register also
addresses data within the stack segment
– Stack pointer and BP
• Extra Segment
—The extra segment is an additional data
segment that is used by some of the string
instructions to hold destination data.
Segment Register
• A segment register points to the starting
address of a memory segment.
• For Example: The code segment
register points to the starting address of
the code segment.
• The data segment register points to the
starting address of the data segment,
and so on.
• The maximum capacity of a segment
may be up to 64 KB.
Advantages of Memory Segmentation
• It facilitates use of separate memory areas
for program, data and stack.
• It permits a program or its data to be put in
different areas of memory
• In this program can be relocated which is
very useful in multiprogramming i.e.
multitasking becomes easy.
Status Flags
• Status Flags determines the current
state
• They are modified automatically by
CPU after mathematical operations.
This allows to determine the type of
the result.
• 8086 has 16-bit status register. It is
also called Flag Register or Program
Status Word (PSW).
Status Flags
CP Lecture-2 The Microprocessor and its Architecture.pptx
CP Lecture-2 The Microprocessor and its Architecture.pptx
• O(overflow):
— An overflow indicates that the result has exceeded the capacity of the
machine.
• A(auxiliary carry):
— The auxiliary carry holds the carry (half-carry) after addition or the
borrow after subtraction between bit positions 3 and 4 of the result.
CP Lecture-2 The Microprocessor and its Architecture.pptx
• VM(Virtual Mode):
— The VM flag bit selects virtual mode operation in a protected mode
system. A virtual mode system allows multiple DOS memory partitions
that are 1M byte in length to coexist in the memory
CP Lecture-2 The Microprocessor and its Architecture.pptx
8086 Pin Diagram
Figure 2–1 The programming model of the 8086 through
the Core2 microprocessor including the 64-bit extensions.
Multipurpose Registers
• RAX - a 64-bit register (RAX), a 32-bit
register (accumulator) (EAX), a 16-bit
register (AX), or as either of two 8-bit
registers (AH and AL).
• The accumulator is used for instructions such
as multiplication, division, and some of the
adjustment instructions.
• Intel plans to expand the address bus to 52
bits to address 4P (252
~1015
=peta) bytes of
memory.
Address Space (Main Memory: RAM)
• Address bus:16 bit Address Space:64 KBytes
• Address bus:20 bit Address Space:1 Mbytes
• Address bus:32 bit Address Space:4 Gbytes
• Address bus:34 bit Address Space:16GBytes
• Address bus:36 bit Address Space:64GBytes
• Address bus:38 bit Address Space:256GBytes
• Address bus:52 bit Address Space:1015
Bytes

More Related Content

Similar to CP Lecture-2 The Microprocessor and its Architecture.pptx (20)

PPT
8086microprocessor 130821100244-phpapp02
raone1989
 
PPT
8086microprocessor 130821100244-phpapp02
raone1989
 
PPT
8086 micro processor
Poojith Chowdhary
 
PPT
8086microprocessor 130821100244-phpapp02
raone1989
 
PPT
8086microprocessor 130821100244-phpapp02
Murad Mondol
 
PDF
8086 Architecture ppt.pdf
UmamaheswariV4
 
PPTX
Module 1 Computer Organization (2).pptx
earningmoney9595
 
PPTX
8086 microprocessor-architecture-120207111857-phpapp01
destaw belay
 
PPTX
8086 microprocessor-architecture-120207111857-phpapp01
Siva Raman
 
DOCX
8086 archi notes final
HarshitParkar6677
 
DOCX
8086 archi notes final
HarshitParkar6677
 
PDF
8086 Microprocessor
Vijay Kumar
 
PPTX
26677766 8086-microprocessor-architecture-110905125037-phpapp02
Avijeet Negel
 
PPTX
The 8086 microprocessor
Adarsh College, Hingoli
 
PDF
THE 8086 MICROPROCESSOR -architecture, basics
C.Helen Sulochana
 
PPTX
Chapter 2 and 3 8086,8088 architecture and HW specification.pptx
Getnet Tigabie Askale -(GM)
 
PDF
8086 microprocessor and interfacing ppt about all thing pdf
LeulTeshome1
 
PPTX
Presentation on 8086 microprocessor
Diponkor Bala
 
PPTX
Internal Architecture of 8086| msbte sem 4 microprocessor
AKSHAYBHABAD5
 
8086microprocessor 130821100244-phpapp02
raone1989
 
8086microprocessor 130821100244-phpapp02
raone1989
 
8086 micro processor
Poojith Chowdhary
 
8086microprocessor 130821100244-phpapp02
raone1989
 
8086microprocessor 130821100244-phpapp02
Murad Mondol
 
8086 Architecture ppt.pdf
UmamaheswariV4
 
Module 1 Computer Organization (2).pptx
earningmoney9595
 
8086 microprocessor-architecture-120207111857-phpapp01
destaw belay
 
8086 microprocessor-architecture-120207111857-phpapp01
Siva Raman
 
8086 archi notes final
HarshitParkar6677
 
8086 archi notes final
HarshitParkar6677
 
8086 Microprocessor
Vijay Kumar
 
26677766 8086-microprocessor-architecture-110905125037-phpapp02
Avijeet Negel
 
The 8086 microprocessor
Adarsh College, Hingoli
 
THE 8086 MICROPROCESSOR -architecture, basics
C.Helen Sulochana
 
Chapter 2 and 3 8086,8088 architecture and HW specification.pptx
Getnet Tigabie Askale -(GM)
 
8086 microprocessor and interfacing ppt about all thing pdf
LeulTeshome1
 
Presentation on 8086 microprocessor
Diponkor Bala
 
Internal Architecture of 8086| msbte sem 4 microprocessor
AKSHAYBHABAD5
 

Recently uploaded (20)

PPT
Introduction of animal physiology in vertebrates
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PDF
Carbon-richDustInjectedintotheInterstellarMediumbyGalacticWCBinaries Survives...
Sérgio Sacani
 
PPT
Cell cycle,cell cycle checkpoint and control
DrMukeshRameshPimpli
 
PDF
Chemokines and Receptors Overview – Key to Immune Cell Signaling
Benjamin Lewis Lewis
 
PPTX
Akshay tunneling .pptx_20250331_165945_0000.pptx
akshaythaker18
 
PDF
NRRM 330 Dynamic Equlibrium Presentation
Rowan Sales
 
PPT
Human physiology and digestive system
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PDF
Annual report 2024 - Inria - English version.pdf
Inria
 
PDF
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
PPTX
Envenomation AND ANIMAL BITES DETAILS.pptx
HARISH543351
 
PDF
Pharma Part 1.pdf #pharmacology #pharmacology
hikmatyt01
 
PDF
The-Origin- of -Metazoa-vertebrates .ppt
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PPTX
Different formulation of fungicides.pptx
MrRABIRANJAN
 
PPTX
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
PDF
Adding Geochemistry To Understand Recharge Areas - Kinney County, Texas - Jim...
Texas Alliance of Groundwater Districts
 
PPTX
Q1 - W1 - D2 - Models of matter for science.pptx
RyanCudal3
 
PDF
crestacean parasitim non chordates notes
S.B.P.G. COLLEGE BARAGAON VARANASI
 
PPTX
Clinical trial monitoring &safety monitoring in clinical trials.2nd Sem m pha...
Mijamadhu
 
PPTX
mode_of_action_of_fungicides_final[1] (2).pptx
MrRABIRANJAN
 
PPTX
Hypothalamus_nuclei_ structure_functions.pptx
muralinath2
 
Introduction of animal physiology in vertebrates
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Carbon-richDustInjectedintotheInterstellarMediumbyGalacticWCBinaries Survives...
Sérgio Sacani
 
Cell cycle,cell cycle checkpoint and control
DrMukeshRameshPimpli
 
Chemokines and Receptors Overview – Key to Immune Cell Signaling
Benjamin Lewis Lewis
 
Akshay tunneling .pptx_20250331_165945_0000.pptx
akshaythaker18
 
NRRM 330 Dynamic Equlibrium Presentation
Rowan Sales
 
Human physiology and digestive system
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Annual report 2024 - Inria - English version.pdf
Inria
 
Phosphates reveal high pH ocean water on Enceladus
Sérgio Sacani
 
Envenomation AND ANIMAL BITES DETAILS.pptx
HARISH543351
 
Pharma Part 1.pdf #pharmacology #pharmacology
hikmatyt01
 
The-Origin- of -Metazoa-vertebrates .ppt
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Different formulation of fungicides.pptx
MrRABIRANJAN
 
Diagnostic Features of Common Oral Ulcerative Lesions.pptx
Dr Palak borade
 
Adding Geochemistry To Understand Recharge Areas - Kinney County, Texas - Jim...
Texas Alliance of Groundwater Districts
 
Q1 - W1 - D2 - Models of matter for science.pptx
RyanCudal3
 
crestacean parasitim non chordates notes
S.B.P.G. COLLEGE BARAGAON VARANASI
 
Clinical trial monitoring &safety monitoring in clinical trials.2nd Sem m pha...
Mijamadhu
 
mode_of_action_of_fungicides_final[1] (2).pptx
MrRABIRANJAN
 
Hypothalamus_nuclei_ structure_functions.pptx
muralinath2
 
Ad

CP Lecture-2 The Microprocessor and its Architecture.pptx

  • 1. Microprocessor Systems The Microprocessor & its Architecture Lecture - 2
  • 2. Memory • Storage Device —Addresses —Registers • Major Categories —Read/Write Memory (R/W) —Read-only- Memory (ROM) D7 D0
  • 4. Microprocessor Architecture • MPU communicates with Memory and I/O using the System Bus —Address bus – Unidirectional – Memory and I/O Addresses —Data bus – Bidirectional – Transfers Binary Data and Instructions —Control lines – Read and Write timing signals
  • 5. Software • Assembly Language —Machine instructions represented in mnemonics —Efficient execution and use of memory —Machine-specific
  • 6. MPU-Based Systems • System hardware —Discrete components – Microprocessor, Memory, and I/O —Components connected by buses – Address, Data, and Control • System software —Group of programs that monitors the functions of the entire system
  • 8. 8086 Microprocessor • The 8086 is a 16-bit microprocessor chip designed by Intel corporation in between early 1976 and mid-1978. • The release of Intel's 8086 microprocessor in 1978 was a watershed moment for personal computing.
  • 9. Elements of the 8086 MP Architecture The 80x86 has: • 16-bit internal data bus • 20-bit address bus: – 2^20 = 1,048,576 = 1 Megabyte • Control bus • Execution Unit • Bus Interface Unit
  • 10. The 8086 Processor Model • The 8086 CPU logic has been partitioned into two functional units namely: • Bus Interface Unit (BIU) • Execution Unit (EU).
  • 11. EU & BIU • The major reason for this separation is to increase the processing speed of the processor. • The BIU has to interact with memory and I/O devices and fetches the instructions and data required by the EU. • EU is responsible for executing the instructions of the programs and to carry out the required processing.
  • 14. Instruction Queue • It is of 6 Bytes. • To increase the execution speed, BIU fetches as many as six instruction bytes ahead to time from memory. • It operates on the principle first in first out (FIFO). • Then all bytes are given to EU one by one. • This pre-fetching operation of BIU may be in parallel with execution operation of EU. • It improves the execution speed of the instruction.
  • 16. Registers • What are Registers • The programming model of the 8086 through the Core2 is considered to be program visible because its registers are used during application programming and are specified by the instructions.
  • 18. Registers of 8086 • General Purpose Registers • Pointer and Index Registers • Segment Registers • Instruction Pointer • Status Flags
  • 19. General Purpose Registers • There are four 16-bit general purpose registers • Each of these 16-bit registers is further subdivided into two 8-bit registers.
  • 20. General Purpose Registers • AX Register: AX register is also known as accumulator register that stores operands for arithmetic operation like divide, rotate. — Used to hold an offset. • BX Register: This register is mainly used as a base register. It holds the starting base location of a memory region within a data segment. • CX Register: It is defined as a counter. It is primarily used in loop instruction to store loop counter and similar operations. • DX Register: DX register is used to contain I/O port address for I/O instruction. — Used to hold a portion of the result holds a part of the result from a multiplication or part of the dividend before a division. — Bp, di, si, r8 – r15
  • 21. • Source Index (SI) —The source index register often (source index) addresses source string data for the string instructions • Destination Index (DI) —often addresses string destination data for the string instructions. • Base Pointer(BP) —points to a memory location in all versions of the microprocessor for memory data transfers.
  • 22. Special Purpose Registers • Stack Pointer(SP) —addresses an area of memory called the stack. The stack memory (stack pointer) stores data through this pointer • Instruction Pointer(IP) —The instruction pointer, which points to the next instruction in a program, is used by the microprocessor to find the next sequential instruction in a program located within the code segment.
  • 23. Special Purpose Registers • EFLAGS: —Store the state of various conditions in the microprocessor.
  • 25. Segment Register • Code Segment Register (CS), • Data Segment Register (DS), • Stack Segment Register (SS), • Extra Segment Register (ES).
  • 26. Code Segment • The code segment is a section of memory that holds the code (programs and procedures) used by the microprocessor. —In real mode, this specifies the start of a 64KB memory segment. —DataSegment – Similar to the CS except this segment holds data. – Data are accessed in the data segment by an offset address or the contents of other registers that hold the offset address.
  • 27. • Stack segment —The stack segment defines the area of memory used for the stack. The stack entry point is determined by the stack segment and stack pointer registers. The BP register also addresses data within the stack segment – Stack pointer and BP • Extra Segment —The extra segment is an additional data segment that is used by some of the string instructions to hold destination data.
  • 28. Segment Register • A segment register points to the starting address of a memory segment. • For Example: The code segment register points to the starting address of the code segment. • The data segment register points to the starting address of the data segment, and so on. • The maximum capacity of a segment may be up to 64 KB.
  • 29. Advantages of Memory Segmentation • It facilitates use of separate memory areas for program, data and stack. • It permits a program or its data to be put in different areas of memory • In this program can be relocated which is very useful in multiprogramming i.e. multitasking becomes easy.
  • 30. Status Flags • Status Flags determines the current state • They are modified automatically by CPU after mathematical operations. This allows to determine the type of the result. • 8086 has 16-bit status register. It is also called Flag Register or Program Status Word (PSW).
  • 34. • O(overflow): — An overflow indicates that the result has exceeded the capacity of the machine. • A(auxiliary carry): — The auxiliary carry holds the carry (half-carry) after addition or the borrow after subtraction between bit positions 3 and 4 of the result.
  • 36. • VM(Virtual Mode): — The VM flag bit selects virtual mode operation in a protected mode system. A virtual mode system allows multiple DOS memory partitions that are 1M byte in length to coexist in the memory
  • 39. Figure 2–1 The programming model of the 8086 through the Core2 microprocessor including the 64-bit extensions.
  • 40. Multipurpose Registers • RAX - a 64-bit register (RAX), a 32-bit register (accumulator) (EAX), a 16-bit register (AX), or as either of two 8-bit registers (AH and AL). • The accumulator is used for instructions such as multiplication, division, and some of the adjustment instructions. • Intel plans to expand the address bus to 52 bits to address 4P (252 ~1015 =peta) bytes of memory.
  • 41. Address Space (Main Memory: RAM) • Address bus:16 bit Address Space:64 KBytes • Address bus:20 bit Address Space:1 Mbytes • Address bus:32 bit Address Space:4 Gbytes • Address bus:34 bit Address Space:16GBytes • Address bus:36 bit Address Space:64GBytes • Address bus:38 bit Address Space:256GBytes • Address bus:52 bit Address Space:1015 Bytes

Editor's Notes

  • #35: If the current privilege level is higher or more trusted than the IOPL, I/O executes without hindrance. If the IOPL is lower than the current privilege level, an interrupt occurs, causing execution to suspend
  • #37: AC: For Syncronization