SlideShare a Scribd company logo
A K H I L A P D A S
A S S I S TA N T P R O F E S S O R
D E PA RT M E N T O F E C E
A RYA N E T I N S T I T U T E O F T E C H N O L O G Y
PA L A K K A D
MICROPROCESSOR BASED
DESIGN
MODULE I
80386, 80486 & PENTIUM PROCESSOR
OVERVIEW
ECE , ARYANET INSTITUTE OF TECHNOLOGY
2
80386 MICROPROCESSOR
80386: OVERVIEW
 First 32-bit microprocessor in the x86 family released in 1986
 32-bit ALU, 32-bit Registers, 32-bit Data Bus, 32-bit Address
Bus
 Maximum physical memory 4 Gb
 Packaging: 132 pin PGA(Pin Grid Array)
 Three Modes of Operation:
 Real mode
 Protected virtual address mode(PVAM)
 Virtual 8086 mode(V86 mode)
ECE , ARYANET INSTITUTE OF TECHNOLOGY
3
PINS AND SIGNALS
ECE , ARYANET INSTITUTE OF TECHNOLOGY
4
HARDWARE FEATURES
HARDWARE FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
5
HARDWARE FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
6
SIGNAL DESCRIPTION
 D0-D31: 32 pins for data transfer. It can access byte, word or double
word from memory or I/O device
 W/𝑹: The write/read output distinguishes the write and read cycles
from one another.
 D/𝑪: This data/control output pin distinguishes between a data transfer
cycle from a machine control cycle like interrupt acknowledge.
 M/𝐈𝐎: This output pin differentiates between the memory and I/O
cycles.
 𝐋𝐎𝐂𝐊: This output pin enables the CPU to prevent the other bus
masters from gaining the control of the system bus. Asserted low by
LOCK prefix instructions.
ECE , ARYANET INSTITUTE OF TECHNOLOGY
7
SIGNAL DESCRIPTION
 RESET: A high at this input pin suspends the current operation and
restart the execution from the starting location.
 𝐀𝐃𝐒: The address status output pin indicates that the address is output
by the processor. The 80386 does not have any ALE signals and so this
signals may be used for latching the address to external latches.
 𝐑𝐄𝐀𝐃𝐘: The ready signals indicates to the CPU that the previous bus
cycle has been terminated and the bus is ready for the next cycle.
 𝑩𝑺𝟏𝟔: The bus size 16 input pin allows the interfacing of 16 bit
devices with the 32 bit wide 80386 data bus. If 0, 16-bit data bus is
selected.
ECE , ARYANET INSTITUTE OF TECHNOLOGY
8
SIGNAL DESCRIPTION
 HOLD: The bus hold input pin enables the other bus masters to gain
control of the system bus if it is asserted.
 HLDA: The bus hold acknowledge output indicates that a valid bus
hold request has been received and the bus has been relinquished by
the CPU.
 𝐁𝐔𝐒𝐘: The busy input signal indicates to the CPU that the coprocessor
is busy with the allocated task.
 PEREQ: Request from co-processor to relinquish control of bus so that
co-processor gets a direct connection
 𝐍𝐀: The next address input pin, if activated(logic 0),processor outputs
the address of next instruction/data. It allows address pipelining, during
80386 bus cycles
ECE , ARYANET INSTITUTE OF TECHNOLOGY
9
SIGNAL DESCRIPTION
 𝐄𝐑𝐑𝐎𝐑: The error input pin indicates to the CPU that the
coprocessor has encountered an error while executing its
instruction.
 INTR: This interrupt pin is a maskable interrupt request, that can
be masked using the IF of the flag register.
 NMI: Non maskable interrupt request
 VCC: These are system power supply lines.
 VSS: These are return lines for the power supply.
 N/C : No connection pins are expected to be left open while
connecting the 80386 in the circuit.
ECE , ARYANET INSTITUTE OF TECHNOLOGY
10
MODES OF OPERATION
SEGMENTATION
PAGING
ECE , ARYANET INSTITUTE OF TECHNOLOGY
11
MEMORY MANAGEMENT
MEMORY MANAGEMENT-OVERVIEW
ECE , ARYANET INSTITUTE OF TECHNOLOGY
12
 80386 has both segmentation and paging.
 80386 transforms logical address into physical address in
two steps
 Segment translation: logical address is converted to linear address.
This is done by segmentation unit.
 Page translation: linear address is converted to physical address. This
step is optional and is done by paging unit
Segmentation
mechanism
Paging
mechanism
selector
offset
Linear address Physical address
MODES OF OPERATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
13
 Real address mode
 Protected virtual address mode
 Virtual 8086 mode
REAL ADDRESS MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
14
 80386 enters real address mode when it is reset.
 Works as fast 8086 with 32-bit registers.
 Uses 20-bit address to access 1MB of physical memory
space
 Segment register is left shifted 4 times and offset is added.
 The size of segments are 64KB and can be overlapped.
 Hence 32 bit offset value should be less than 0000FFFFh
 Paging unit is disabled.
REAL ADDRESS MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
15
OFFSET
SEGMENT
SELECTOR
0000
SEGMENT BASE
64 KB
PROTECTED VIRTUAL ADDRESS MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
16
 Protection Enable (PE) bit in control register CR0 is set to enter into PVAM.
 Large address space
 4GB of physical memory space
 64TB of virtual memory space
 Contents of segment registers are used as selectors to address descriptors
 Descriptors contain segment limit, base address and access rights bits of the
segment
 Offset is added with segment base address to calculate linear address
 This linear address is used as physical address if paging is disabled
 Else paging unit converts it into physical address
PROTECTED VIRTUAL ADDRESS MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
17
c
c
c
c
SELECTOR OFFSET
MEMORY OPERAND
SEGMENT BASE ADDRESS
SEGMENT LIMIT
UP TO
4 GB
SELECTED
SEGMENT
Protected Mode Addressing Without Paging Unit
48/32–BIT POINTER
c
c
031 / 1547 / 31
SELECTOR OFFSET
ACCESS RIGHT
LIMIT
BASE ADDRESS
SEGMENT DESCRIPTOR
+
PROTECTED VIRTUAL ADDRESS MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
18
VIRTUAL 8086 MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
19
 In its protected mode of operation, 80386DX provides a virtual
8086 operating environment to execute the 8086 programs.
 Processor can switch from PVAM to V86 by setting VM bit in the
EFLAG register to logic 1.
 The real mode can also be used to execute the 8086 programs
along with the capabilities of 80386, like protection and a few
additional instructions.
 Once the 80386 enters the protected mode from the real mode, it
cannot return back to the real mode without a reset operation.
 Thus, the virtual 8086 mode of operation of 80386, offers an
advantage of executing 8086 programs while in protected mode.
VIRTUAL 8086 MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
20
 The address forming mechanism in virtual 8086 mode is
exactly identical with that of 8086 real mode.
 In virtual mode, 8086 can address 1Mbytes of physical
memory that may be anywhere in the 4Gbytes address space
of the protected mode of 80386.
 In virtual mode, the paging mechanism and protection
capabilities are available at the service of the programmers.
 The 80386 supports multiprogramming, hence more than
one programmer may be use the CPU at a time.
VIRTUAL 8086 MODE
ECE , ARYANET INSTITUTE OF TECHNOLOGY
21
 Paging unit may not be necessarily enabled in virtual
mode, but may be needed to run the 8086 programs
which require more than 1Mbyte of memory for
memory management function.
 In virtual mode, the paging unit allows only 256 pages,
each of 4Kbytes size.
 Each of the pages may be located anywhere in the
maximum 4Gbytes physical memory.
SEGMENTATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
22
 Segment register contains 16-bit selector as shown below:
 RPL: Requested privilege level of the segment
 TI: Table indicator.
 If 0, use Global Descriptor Table
 If 1, use Local Descriptor Table
 INDEX: select descriptor entry in table
INDEX TI RPL
012315
SEGMENTATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
23
 A descriptor table is an array of 8K descriptors
 Each descriptor is 8 byte
 Hence size of descriptor table is 8K X 8= 64KB
 GDT contains global descriptors common to all the tasks. There
will be only 1 GDT in a system
 LDT contains descriptors specific to a particular task. There will be
as many LDTs as there are application tasks
 Base address of descriptor table will be in corresponding descriptor
table register (GDTR or LDTR)
 Using segment selector & descriptor table register, corresponding
descriptor is chosen
SEGMENTATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
24
SEGMENTATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
25
 Descriptor(8 byte) contains segment limit, access rights
and base address(32-bit) of a particular segment
 The base address is used to locate the data segment
 Offset mentioned in the instruction is added with this base
address to get the physical address of the operand.
SEGMENTATION
ECE , ARYANET INSTITUTE OF TECHNOLOGY
26
PAGING
ECE , ARYANET INSTITUTE OF TECHNOLOGY
27
 In paging concept, each segment is composed of
numerous pages each of 4KB.
 The base address of each page is stored in a page table.
There will be many such page tables.
 The base address of page table and other details (page
descriptor) will be in a page directory.
 The base address of current page directory will be in CR3
register
PAGING
ECE , ARYANET INSTITUTE OF TECHNOLOGY
28
 Using segmentation, a 32-bit linear address is generated.
PAGING
ECE , ARYANET INSTITUTE OF TECHNOLOGY
29
 Using this linear address, an operand from a page is
selected as shown below:
PAGING
ECE , ARYANET INSTITUTE OF TECHNOLOGY
30
 CR3 register contains the base address of current page
directory. Using DIR in linear address, a corresponding
page descriptor is selected.
 Page descriptor contains base address of page table. The
PAGE field of linear address is used to select the
corresponding page table entry.
 The page table entry contains the base address of the page
we are looking for. The OFFSET field in the linear
address is used to locate the operand in physical memory.
FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
31
80486 MICROPROCESSOR
80486: FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
32
 32-bit processor introduced by INTEL in 1989
 168 pin PGA package
 1st processor with inbuilt Floating Point Unit(FPU) i.e, co-
processor 80487 is inbuilt within 80486 chip.
 8 KB on-chip cache was added.
 On-chip cache is L1 cache
 Off-chip cache is L2 cache
 Clock doubling was provided.
 Internal clock frequency is twice that of external clock
 5-stage pipelining
 PF(Pre-Fetch), D1(Decode 1), D2(Decode 2), EX(EXecute) and WB(Write
Back)
80486: FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
33
 Support burst mode transfer.
 Transferring multiple bytes of data across bus in 1 long memory
cycle
 Boundary Scan Test and on-line parity check were
introduced to make it more susceptible to fault-tolerant
architectures.
 New instructions were introduced such as:
 BSWAP: Byte Swap
 XADD: eXchange and ADD
FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
34
PENTIUM
PENTIUM: FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
35
 32-bit processor released by INTEL in 1993
 32 bit address bus and 64 bit data bus
 Data width is doubled, hence double the amount of data can be
sent/received from/to memory
 Superscalar architecture
 5-stage pipelining
 Two integer execution units-U & Vpipes
 U pipe handles more complex operations
 Faster FPU
 8-stage pipelining
 Upto 10X speed for common operations like ADD, MULTIPLY and LOAD
PENTIUM: FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
36
 Branch prediction unit
 Used to prevent pipeline stalling
 Technique called speculative execution is implemented
 One branch is taken and executed while branch condition is
evaluated
 If speculative execution had taken the correct branch, all is good.
Otherwise pipeline is flushed
 2 types of branch prediction- static & dynamic
 In static prediction, loop condition is repeated, since loop’s exit
condition is false in most cases.
 Dynamic prediction relies on past history of branching.
PENTIUM: FEATURES
ECE , ARYANET INSTITUTE OF TECHNOLOGY
37
 Separate data & instruction cache
 Each cache is 8KB in size with 32-byte line size
 Allows 2MB & 4MB page sizes
 System management mode
 Power dissipation is reduced by switching off all peripherals and
even the system when it is not in use.
END OF MODULE 1
ECE , ARYANET INSTITUTE OF TECHNOLOGY
38
THANK YOU

More Related Content

PPT
Microprocessor 80386
yash sawarkar
 
PPT
80486 microprocessor
Mihika Shah
 
PPT
Memory mgmt 80386
Akshay Nagpurkar
 
PPTX
Addressing mode of 80286 microprocessor
pal bhumit
 
PPT
Address translation-mechanism-of-80386 by aniket bhute
Aniket Bhute
 
PPT
80386 microprocessor
Jerin Sebastian
 
PDF
Addressing modes of 80386
PDFSHARE
 
PPTX
Segments
aviban
 
Microprocessor 80386
yash sawarkar
 
80486 microprocessor
Mihika Shah
 
Memory mgmt 80386
Akshay Nagpurkar
 
Addressing mode of 80286 microprocessor
pal bhumit
 
Address translation-mechanism-of-80386 by aniket bhute
Aniket Bhute
 
80386 microprocessor
Jerin Sebastian
 
Addressing modes of 80386
PDFSHARE
 
Segments
aviban
 

What's hot (20)

PPTX
Intel® 80386 microprocessor registers
Neel Shah
 
PPTX
80386 processor
Rasmi M
 
PPTX
80386 & 80486
RakeshKumarSharma46
 
PPTX
Comparison of pentium processor with 80386 and 80486
Tech_MX
 
PDF
Introduction to 80386 microprocessor
Shehrevar Davierwala
 
PPTX
Memory Segmentation of 8086
Nikhil Kumar
 
PPTX
Evolution of microprocessors and 80486 Microprocessor.
Ritwik MG
 
PPTX
Register of 80386
aviban
 
PPTX
Salient featurs of 80386
aviban
 
PPTX
80386 Architecture
Rohit Choudhury
 
PDF
Cs14 406 mod1
Akhila Rahul
 
PPTX
Interfacing memory with 8086 microprocessor
Vikas Gupta
 
DOCX
8086 pin diagram description
Akhil Singal
 
PPTX
Protected mode memory addressing 8086
University of Gujrat, Pakistan
 
DOCX
8086 Architecture
Farkhanda Kiran
 
PPTX
Pentium processor
Pranjali Deshmukh
 
PPT
8086 micro processor
Poojith Chowdhary
 
PPTX
INTEL 80386 MICROPROCESSOR
Annies Minu
 
PPT
8086
Ravi Anand
 
Intel® 80386 microprocessor registers
Neel Shah
 
80386 processor
Rasmi M
 
80386 & 80486
RakeshKumarSharma46
 
Comparison of pentium processor with 80386 and 80486
Tech_MX
 
Introduction to 80386 microprocessor
Shehrevar Davierwala
 
Memory Segmentation of 8086
Nikhil Kumar
 
Evolution of microprocessors and 80486 Microprocessor.
Ritwik MG
 
Register of 80386
aviban
 
Salient featurs of 80386
aviban
 
80386 Architecture
Rohit Choudhury
 
Cs14 406 mod1
Akhila Rahul
 
Interfacing memory with 8086 microprocessor
Vikas Gupta
 
8086 pin diagram description
Akhil Singal
 
Protected mode memory addressing 8086
University of Gujrat, Pakistan
 
8086 Architecture
Farkhanda Kiran
 
Pentium processor
Pranjali Deshmukh
 
8086 micro processor
Poojith Chowdhary
 
INTEL 80386 MICROPROCESSOR
Annies Minu
 
Ad

Similar to Cs14 406 80386-mod1 (20)

PDF
Microprocessor Unit-1( Introduction to 80386 Microprocessors)Second Year ppt
Shikha712235
 
PDF
80386 Basic Programming Model and Application
GilbeysJhonLadion2
 
PDF
Intel 80486 Microprocessor
Darpan Dekivadiya
 
PPTX
32- bit Microprocessor-Indtel 80386.pptx
Yuvraj994432
 
PPTX
Microprocessor Unit -1 SE computer-II.pptx
akshathsingh2003
 
PPTX
Microprocessor 8086
Gopikrishna Madanan
 
PDF
Microprocessor
Vijay Kannamalla
 
PDF
Introduction to 80386
Shehrevar Davierwala
 
PPTX
Lecture1_Introductionby vu eee dept.pptx
ahr6999
 
PPT
ADVANCED MICROPROCESSORS featuers, block diagram and register organization.ppt
NaganarasaiahGoud
 
PDF
Microprocessor 8086 nitin_p
nitinahire15
 
PDF
Microprocessor 8086 8087_nitin ahire
Nitin Ahire
 
PDF
Module 1 8086
Deepak John
 
PPT
Architecture of 80386(www.munnuz.co.cc)
muneer.k
 
PDF
80386_AKRay.pdf study computer programme
deepparmar73
 
PPT
The 80386 80486
Ancy Varghese
 
PPT
Students corner131
Satti286
 
DOC
3 organization of intel 8086
ELIMENG
 
PDF
Management of system software
AryaChandran13
 
PDF
8086 microprocessor
SManjula2
 
Microprocessor Unit-1( Introduction to 80386 Microprocessors)Second Year ppt
Shikha712235
 
80386 Basic Programming Model and Application
GilbeysJhonLadion2
 
Intel 80486 Microprocessor
Darpan Dekivadiya
 
32- bit Microprocessor-Indtel 80386.pptx
Yuvraj994432
 
Microprocessor Unit -1 SE computer-II.pptx
akshathsingh2003
 
Microprocessor 8086
Gopikrishna Madanan
 
Microprocessor
Vijay Kannamalla
 
Introduction to 80386
Shehrevar Davierwala
 
Lecture1_Introductionby vu eee dept.pptx
ahr6999
 
ADVANCED MICROPROCESSORS featuers, block diagram and register organization.ppt
NaganarasaiahGoud
 
Microprocessor 8086 nitin_p
nitinahire15
 
Microprocessor 8086 8087_nitin ahire
Nitin Ahire
 
Module 1 8086
Deepak John
 
Architecture of 80386(www.munnuz.co.cc)
muneer.k
 
80386_AKRay.pdf study computer programme
deepparmar73
 
The 80386 80486
Ancy Varghese
 
Students corner131
Satti286
 
3 organization of intel 8086
ELIMENG
 
Management of system software
AryaChandran13
 
8086 microprocessor
SManjula2
 
Ad

Recently uploaded (20)

PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Information Retrieval and Extraction - Module 7
premSankar19
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Inventory management chapter in automation and robotics.
atisht0104
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 

Cs14 406 80386-mod1

  • 1. A K H I L A P D A S A S S I S TA N T P R O F E S S O R D E PA RT M E N T O F E C E A RYA N E T I N S T I T U T E O F T E C H N O L O G Y PA L A K K A D MICROPROCESSOR BASED DESIGN MODULE I 80386, 80486 & PENTIUM PROCESSOR
  • 2. OVERVIEW ECE , ARYANET INSTITUTE OF TECHNOLOGY 2 80386 MICROPROCESSOR
  • 3. 80386: OVERVIEW  First 32-bit microprocessor in the x86 family released in 1986  32-bit ALU, 32-bit Registers, 32-bit Data Bus, 32-bit Address Bus  Maximum physical memory 4 Gb  Packaging: 132 pin PGA(Pin Grid Array)  Three Modes of Operation:  Real mode  Protected virtual address mode(PVAM)  Virtual 8086 mode(V86 mode) ECE , ARYANET INSTITUTE OF TECHNOLOGY 3
  • 4. PINS AND SIGNALS ECE , ARYANET INSTITUTE OF TECHNOLOGY 4 HARDWARE FEATURES
  • 5. HARDWARE FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 5
  • 6. HARDWARE FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 6
  • 7. SIGNAL DESCRIPTION  D0-D31: 32 pins for data transfer. It can access byte, word or double word from memory or I/O device  W/𝑹: The write/read output distinguishes the write and read cycles from one another.  D/𝑪: This data/control output pin distinguishes between a data transfer cycle from a machine control cycle like interrupt acknowledge.  M/𝐈𝐎: This output pin differentiates between the memory and I/O cycles.  𝐋𝐎𝐂𝐊: This output pin enables the CPU to prevent the other bus masters from gaining the control of the system bus. Asserted low by LOCK prefix instructions. ECE , ARYANET INSTITUTE OF TECHNOLOGY 7
  • 8. SIGNAL DESCRIPTION  RESET: A high at this input pin suspends the current operation and restart the execution from the starting location.  𝐀𝐃𝐒: The address status output pin indicates that the address is output by the processor. The 80386 does not have any ALE signals and so this signals may be used for latching the address to external latches.  𝐑𝐄𝐀𝐃𝐘: The ready signals indicates to the CPU that the previous bus cycle has been terminated and the bus is ready for the next cycle.  𝑩𝑺𝟏𝟔: The bus size 16 input pin allows the interfacing of 16 bit devices with the 32 bit wide 80386 data bus. If 0, 16-bit data bus is selected. ECE , ARYANET INSTITUTE OF TECHNOLOGY 8
  • 9. SIGNAL DESCRIPTION  HOLD: The bus hold input pin enables the other bus masters to gain control of the system bus if it is asserted.  HLDA: The bus hold acknowledge output indicates that a valid bus hold request has been received and the bus has been relinquished by the CPU.  𝐁𝐔𝐒𝐘: The busy input signal indicates to the CPU that the coprocessor is busy with the allocated task.  PEREQ: Request from co-processor to relinquish control of bus so that co-processor gets a direct connection  𝐍𝐀: The next address input pin, if activated(logic 0),processor outputs the address of next instruction/data. It allows address pipelining, during 80386 bus cycles ECE , ARYANET INSTITUTE OF TECHNOLOGY 9
  • 10. SIGNAL DESCRIPTION  𝐄𝐑𝐑𝐎𝐑: The error input pin indicates to the CPU that the coprocessor has encountered an error while executing its instruction.  INTR: This interrupt pin is a maskable interrupt request, that can be masked using the IF of the flag register.  NMI: Non maskable interrupt request  VCC: These are system power supply lines.  VSS: These are return lines for the power supply.  N/C : No connection pins are expected to be left open while connecting the 80386 in the circuit. ECE , ARYANET INSTITUTE OF TECHNOLOGY 10
  • 11. MODES OF OPERATION SEGMENTATION PAGING ECE , ARYANET INSTITUTE OF TECHNOLOGY 11 MEMORY MANAGEMENT
  • 12. MEMORY MANAGEMENT-OVERVIEW ECE , ARYANET INSTITUTE OF TECHNOLOGY 12  80386 has both segmentation and paging.  80386 transforms logical address into physical address in two steps  Segment translation: logical address is converted to linear address. This is done by segmentation unit.  Page translation: linear address is converted to physical address. This step is optional and is done by paging unit Segmentation mechanism Paging mechanism selector offset Linear address Physical address
  • 13. MODES OF OPERATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 13  Real address mode  Protected virtual address mode  Virtual 8086 mode
  • 14. REAL ADDRESS MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 14  80386 enters real address mode when it is reset.  Works as fast 8086 with 32-bit registers.  Uses 20-bit address to access 1MB of physical memory space  Segment register is left shifted 4 times and offset is added.  The size of segments are 64KB and can be overlapped.  Hence 32 bit offset value should be less than 0000FFFFh  Paging unit is disabled.
  • 15. REAL ADDRESS MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 15 OFFSET SEGMENT SELECTOR 0000 SEGMENT BASE 64 KB
  • 16. PROTECTED VIRTUAL ADDRESS MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 16  Protection Enable (PE) bit in control register CR0 is set to enter into PVAM.  Large address space  4GB of physical memory space  64TB of virtual memory space  Contents of segment registers are used as selectors to address descriptors  Descriptors contain segment limit, base address and access rights bits of the segment  Offset is added with segment base address to calculate linear address  This linear address is used as physical address if paging is disabled  Else paging unit converts it into physical address
  • 17. PROTECTED VIRTUAL ADDRESS MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 17 c c c c SELECTOR OFFSET MEMORY OPERAND SEGMENT BASE ADDRESS SEGMENT LIMIT UP TO 4 GB SELECTED SEGMENT Protected Mode Addressing Without Paging Unit 48/32–BIT POINTER c c 031 / 1547 / 31 SELECTOR OFFSET ACCESS RIGHT LIMIT BASE ADDRESS SEGMENT DESCRIPTOR +
  • 18. PROTECTED VIRTUAL ADDRESS MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 18
  • 19. VIRTUAL 8086 MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 19  In its protected mode of operation, 80386DX provides a virtual 8086 operating environment to execute the 8086 programs.  Processor can switch from PVAM to V86 by setting VM bit in the EFLAG register to logic 1.  The real mode can also be used to execute the 8086 programs along with the capabilities of 80386, like protection and a few additional instructions.  Once the 80386 enters the protected mode from the real mode, it cannot return back to the real mode without a reset operation.  Thus, the virtual 8086 mode of operation of 80386, offers an advantage of executing 8086 programs while in protected mode.
  • 20. VIRTUAL 8086 MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 20  The address forming mechanism in virtual 8086 mode is exactly identical with that of 8086 real mode.  In virtual mode, 8086 can address 1Mbytes of physical memory that may be anywhere in the 4Gbytes address space of the protected mode of 80386.  In virtual mode, the paging mechanism and protection capabilities are available at the service of the programmers.  The 80386 supports multiprogramming, hence more than one programmer may be use the CPU at a time.
  • 21. VIRTUAL 8086 MODE ECE , ARYANET INSTITUTE OF TECHNOLOGY 21  Paging unit may not be necessarily enabled in virtual mode, but may be needed to run the 8086 programs which require more than 1Mbyte of memory for memory management function.  In virtual mode, the paging unit allows only 256 pages, each of 4Kbytes size.  Each of the pages may be located anywhere in the maximum 4Gbytes physical memory.
  • 22. SEGMENTATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 22  Segment register contains 16-bit selector as shown below:  RPL: Requested privilege level of the segment  TI: Table indicator.  If 0, use Global Descriptor Table  If 1, use Local Descriptor Table  INDEX: select descriptor entry in table INDEX TI RPL 012315
  • 23. SEGMENTATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 23  A descriptor table is an array of 8K descriptors  Each descriptor is 8 byte  Hence size of descriptor table is 8K X 8= 64KB  GDT contains global descriptors common to all the tasks. There will be only 1 GDT in a system  LDT contains descriptors specific to a particular task. There will be as many LDTs as there are application tasks  Base address of descriptor table will be in corresponding descriptor table register (GDTR or LDTR)  Using segment selector & descriptor table register, corresponding descriptor is chosen
  • 24. SEGMENTATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 24
  • 25. SEGMENTATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 25  Descriptor(8 byte) contains segment limit, access rights and base address(32-bit) of a particular segment  The base address is used to locate the data segment  Offset mentioned in the instruction is added with this base address to get the physical address of the operand.
  • 26. SEGMENTATION ECE , ARYANET INSTITUTE OF TECHNOLOGY 26
  • 27. PAGING ECE , ARYANET INSTITUTE OF TECHNOLOGY 27  In paging concept, each segment is composed of numerous pages each of 4KB.  The base address of each page is stored in a page table. There will be many such page tables.  The base address of page table and other details (page descriptor) will be in a page directory.  The base address of current page directory will be in CR3 register
  • 28. PAGING ECE , ARYANET INSTITUTE OF TECHNOLOGY 28  Using segmentation, a 32-bit linear address is generated.
  • 29. PAGING ECE , ARYANET INSTITUTE OF TECHNOLOGY 29  Using this linear address, an operand from a page is selected as shown below:
  • 30. PAGING ECE , ARYANET INSTITUTE OF TECHNOLOGY 30  CR3 register contains the base address of current page directory. Using DIR in linear address, a corresponding page descriptor is selected.  Page descriptor contains base address of page table. The PAGE field of linear address is used to select the corresponding page table entry.  The page table entry contains the base address of the page we are looking for. The OFFSET field in the linear address is used to locate the operand in physical memory.
  • 31. FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 31 80486 MICROPROCESSOR
  • 32. 80486: FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 32  32-bit processor introduced by INTEL in 1989  168 pin PGA package  1st processor with inbuilt Floating Point Unit(FPU) i.e, co- processor 80487 is inbuilt within 80486 chip.  8 KB on-chip cache was added.  On-chip cache is L1 cache  Off-chip cache is L2 cache  Clock doubling was provided.  Internal clock frequency is twice that of external clock  5-stage pipelining  PF(Pre-Fetch), D1(Decode 1), D2(Decode 2), EX(EXecute) and WB(Write Back)
  • 33. 80486: FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 33  Support burst mode transfer.  Transferring multiple bytes of data across bus in 1 long memory cycle  Boundary Scan Test and on-line parity check were introduced to make it more susceptible to fault-tolerant architectures.  New instructions were introduced such as:  BSWAP: Byte Swap  XADD: eXchange and ADD
  • 34. FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 34 PENTIUM
  • 35. PENTIUM: FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 35  32-bit processor released by INTEL in 1993  32 bit address bus and 64 bit data bus  Data width is doubled, hence double the amount of data can be sent/received from/to memory  Superscalar architecture  5-stage pipelining  Two integer execution units-U & Vpipes  U pipe handles more complex operations  Faster FPU  8-stage pipelining  Upto 10X speed for common operations like ADD, MULTIPLY and LOAD
  • 36. PENTIUM: FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 36  Branch prediction unit  Used to prevent pipeline stalling  Technique called speculative execution is implemented  One branch is taken and executed while branch condition is evaluated  If speculative execution had taken the correct branch, all is good. Otherwise pipeline is flushed  2 types of branch prediction- static & dynamic  In static prediction, loop condition is repeated, since loop’s exit condition is false in most cases.  Dynamic prediction relies on past history of branching.
  • 37. PENTIUM: FEATURES ECE , ARYANET INSTITUTE OF TECHNOLOGY 37  Separate data & instruction cache  Each cache is 8KB in size with 32-byte line size  Allows 2MB & 4MB page sizes  System management mode  Power dissipation is reduced by switching off all peripherals and even the system when it is not in use.
  • 38. END OF MODULE 1 ECE , ARYANET INSTITUTE OF TECHNOLOGY 38 THANK YOU