UNIT-VII Advanced Micro Processors Introduction to 80286

Slides:



Advertisements
Similar presentations
Memory Management Unit
Advertisements

MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
FEATURES OF 80386: Two versions of are commonly available: 1) 80386DX
The Microprocessor and its Architecture
Unit 4 Chapter-1 Multitasking. The Task State Segment.
Intel MP.
Microprocessors system architectures – IA32 real and virtual-8086 mode Jakub Yaghob.
Vacuum tubes Transistor 1948 ICs 1960s Microprocessors 1970s.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
UNIT 2 Memory Management Unit and Segment Description and Paging
Intel
Intel MP (32-bit microprocessor) Designed to overcome the limits of its predecessor while maintaining the software compatibility with the.
Introduction of Intel Processors
Architecture of The Internal Architecture of is divided into 3 sections. Central processing unit Memory management unit Bus interface unit.
Introduction First 32 bit Processor in Intel Architecture. Full 32 bit processor family Sixth member of 8086 Family SX.
Virtual 8086 Mode  The supports execution of one or more 8086, 8088, 80186, or programs in an protected-mode environment.  An 8086.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
80386DX. Features of 80386DX It supports 8/16/32 bit data operands It has 32-bit internal registers It supports 32-bit data bus and 32-bit non-multiplexed.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
80386DX. Programming Model The basic programming model consists of the following aspects: – Registers – Instruction Set – Addressing Modes – Data Types.
INTRODUCTION TO INTEL X-86 FAMILY
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Information Security - 2. Other Registers EFLAGS – 32 Bit Register CFPFAFZFSFTFIFDFOFIO PL IO PL NTRFVM Bits 1,3,5,15,22-31 are RESERVED. 18: AC, 19:VIF,
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Internal Programming Architecture or Model
Intel 8086 MICROPROCESSOR ARCHITECTURE
contains 8086 processor and several additional functional chips: –clock generator –2 independent DMA channels –PIC –3 programmable 16-bit.
The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Chapter Overview General Concepts IA-32 Processor Architecture
Microprocessor Architecture
32- bit Microprocessor-Intel 80386
Protection in Virtual Mode
An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from.
80486 Microprocessor The 32-bit is the next evolutionary step up from the One of the most obvious feature included in a is a built.
MICROPROCESSOR BASED SYSTEM DESIGN
Difference between Microprocessor and Microcontroller
UNIT Architecture M.Brindha AP/EIE
Introduction to the processor and its pin configuration
COURSE OUTCOMES OF Microprocessor and programming
8086 Microprocessor.
Interrupts – (Chapter 12)
Computer Organization & Assembly Language Chapter 3
Basic Microprocessor Architecture
contains 8086 processor and several additional functional chips: clock generator 2 independent DMA channels PIC 3 programmable 16-bit timers.
Intel 8088 (8086) Microprocessor Structure
..
Microcomputer & Interfacing Lecture 1
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
8086 Features It is a 16 bit μp. It is manufactured with H-MOS technology has a 20 bit address bus can access up to 220 memory locations ( 1 MB)
Introduction to Pentium Processor
Chapter 2: The Microprocessor and its Architecture
Introduction to Assembly Language
Operating Modes UQ: State and explain the operating modes of X86 family of processors. Show the mode transition diagram highlighting important features.(10.
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date: /19/2018.
Intel 8088 (8086) Microprocessor Structure
Morgan Kaufmann Publishers Computer Organization and Assembly Language
CS 301 Fall 2002 Computer Organization
Introduction to Advanced Processors
The Microprocessor & Its Architecture
Assembly Language (CSW 353)
CNET 315 Microprocessor & Assembly Language
REGISTER ORGANIZATION OF 80386
First Generation 32–Bit microprocessor
8086 microprocessior PIN OUT DIAGRAM OF  Power supply and frequency signals  It uses 5V DC supply at V CC pin 40, and uses ground at V SS pin.
Presentation transcript:

UNIT-VII Advanced Micro Processors Introduction to 80286 Salient Features of 80386 Real and Protected Mode Segmentation & Paging Salient Features of Pentium Overview of RISC Processors.

Features of 80286 80286 16 bit µp 16 Mbytes physical memory Multi-user Multitasking OS User protection Virtual memory management

80286 Architecture The bus unit – BU Performs all memory and i/o reads and writes, pre-fetches instruction bytes and controls transfer of data to and from processor extension devices such as the 80287 math coprocessor. The instruction unit – IU IU fully decodes up to three pre-fetched instructions and holds them in a queue, where the execution unit can access them. Instructions in the pipeline The execution unit – EU Machine Status Word (MSW) register The address unit – AU AU computes the physical addresses that will be sent out to memory or I/O by the BU. Real address mode protected virtual address mode CS, DS, SS, ES registers

Fig 7.1 Intel 80286 architecture

Register organization Eight 16-bit GPRs AX, BX, CX, DX, BP, SP, SI, DI Four 16-bit segment regs. DS, CS, SS, ES. Status and control reg. Flag reg. Instruction pointer (IP)

Fig 7.2 Machine status word 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 O – Overflow Flag TS – Task switch D – Direction EM – Emulate processor extension I – Interrupt Flag MP – Monitor processor extension T – Trap Flag PE – Protection enable S – Sign Flag NT – Nested task flag Z – Zero Flag IO Ac – Auxiliary Carry Flag PL P – Parity Flag Cy – Carry Flag X – Not used X NT IO PL O D I T S Z Ac P Cy TS EM MP PE Fig 7.2 Machine status word I/O privilege level

Interrupts of 80286 Divide error exception - 0 Single step interrupt - 1 NMI interrupt - 2 Break-point interrupt - 3 INTO detected overflow exception - 4 BOUND range exceeded exception – 5 Invalid opcode exception - 6 Processor extension not available - 7(ESC or WAIT)exception Inter reserved, do not use - 8-15 Processor extension error interrupt - 16 (ESC or WAIT)Inter reserved, do not use - 17-31 User Defined - 32-255

Maskable Interrupt INTR Non-maskable Interrupt NMI Single Step Interrupt Interrupt Priorities Order Interrupt Instruction exception Single step NMI Processor extension segment overrun INTR INT instruction

80286 Real Address Mode Operation After the 80286 is reset, it starts executing in its real address mode. MS-DOS systems operates in Real Address Mode In this mode 80286 can address up to 1MB of physical memory. Interrupt Vector Table of the 80286 is located in the first 1KB of memory. (from address 00000h to 003FFh ). The addresses from FFFF0h to FFFFFh are reserved for system initialization. Functions performed in this mode: It initializes the IP and other registers of 80286 Initializes the peripheral Enables interrupts Sets up descriptor tables Prepares for entering the protected virtual address mode.

Protected Virtual Address Mode Operation (PVAM) The 80286 is able to address 1Gbyte if virtual memory per task. Swapping Unswapping Program is divides into Segments or pages Segments or pages have been associated with a data structure called as a descriptor. Descriptor contains segment base address, segment limit, segment type, privilege level, segment availability in physical memory, descriptor type and segment use by another task. Descriptor table.

Descriptors and Their Types Special types of descriptors which are used to carry out additional functions like Transfer of control Task switching Data segment descriptors System segment descriptors Store system data and execution state of a task for multitasking system. Gate descriptors The gate descriptors control the access to entry points of the code to be executed. Interrupt descriptors These are used to store task gates, interrupt gates and trap gates. Segment descriptor cache registers: 6-Byte format Local and Global descriptor table: LDTs & GDTs are 8K array.

Privilege The 80286 supports a four level hierarchical privilege mechanism to control the access to descriptors to prevent unwanted access to any of the code or data segments. Unintentional interference in the higher privilege level tasks. (level 0 is the most privilege level while level 4 is the least) The privilege levels provide protection within a task.

Protection The 80286 supports three basic mechanisms to provide protection: Restricted use of segments (segment load check): This is accomplished with the help of read/write privileges. The segment usages are restricted by classifying the corresponding descriptors under LDT and GDT. Restricted Accesses to Segment (operation reference check): This is accomplished using descriptor usages limitations and the rules of privilege check Privileged Instructions or Operations (privileged instruction check): These are to be executed or carried out at certain privilege levels determined by current privilege level (CPL) and I/O privilege level (IOPL) as defined by the flag register.

Special Operations Processor reset and initialization The processor is reset by applying a high on RESET input that terminates all execution and internal bus activities till RESET remains high. Task switch operation A no. of task allocation strategies like FCFS, STF, Time sharing, etc. In case of time sharing, the CPU’s time is divided into equal duration slices. The switch-over operation from one task to another is called as task switch operation. This operation is carried out using a JMP or CALL to a new segment of the new task. Pointer testing instructions The pointer testing instructions of 80286 use the memory management hardware to verify whether the loaded selector value refers to a valid segment without generating any exception.

Protected mode initialization The initialization of protected mode is carried out in real mode by setting the internal registers of 80286 suitably. To enter into protected mode, 80286 executes LMSW (load MSW) instruction that set PE flag. How to enter protected mode? The execution of instruction LIDT (load interrupt descriptor table base) prepares the 80286 for protected virtual address mode. Then the PE flag of MSW is set to enter the PVAM, using the LMSW instruction. Halt This instruction stops program execution and prevents the CPU from restarting, till it is interrupted or RESET is asserted. If the CPU is interrupted in the HALT state, the execution starts from the next instruction after HLT.

80286 Bus Interface The I/O devices are also addressed using even and odd address banks technique, using A0 and BHE. The 80286 bus cycles are of six types Memory read Memory write I/O read I/O write Interrupt acknowledge Halt. The 80286 bus at a particular instant may be in either of these four states: Idle state (Ti) Perform command state (Tc) Send status state (Tc) Hold state (TH)

80386 µp 32-bit µp 4 GB physical memory 16K - segment size Page size – 4KB 8 debug registers DR0-DR7 80386 has an on-chip address translation 80386DX 132 pins, 20MHz, 33MHz 80386SX 16-bit data bus 24-bit address bus

Fig 7.3 Architecture of 80386

1. Central Processing Unit (CPU) Execution Unit 8 – General Purpose Registers 8 – Special Purpose Registers Instruction Unit 16-byte instruction code queue 3-byte instruction decoded queue The barrel shifter increases the speed of all shift and rotate operations

2. Memory Management Unit (MMU) Segment Unit 4-GB size of segment Segment and offset for relocability SU provides a 4 level protection mechanism for protection and isolating the system’s code and data. Page Unit Each segment is further divided into pages 4KB- page size Page Unit works under Segment Unit It converts linear address into physical address 3. Bus Control Unit (BCU) Bus control unit had a prioritizer to resolve the priority of the various bus requests.

Fig 7.4 Register organization of 80386

Fig 7.5 FLAG Register VM Flag : If this is set, 80386 enters the virtual 8086 mode within the protected mode RF-Resume flag : This is used with the debug register breakpoints, i.e. any debug fault is ignored during the instruction cycle.

Modes REAL MODE After reset FFFF FFF0h under the RAM Interrupt Vector table – 0000 003FFh -- 1KB PROTECED MODE 4-GB --- PA 64-TB --- virtual memory/task

Fig 7.6 Physical address formation in Real Mode of 80386

Fig 7.7 Physical Address formation in Protected mode

Fig 7.8 Paging operation in Virtual mode

Fig 7.9 Paging unit enabled in protected mode

Pentium Processor The Pentium processor has 237 pins, arranged in a pin grid array (PGA) 64 pins are data pins --- D0-D63 8 pins are parity --- DP0-DP7 Parity errors are indicated by these pins Address bus (with parity check bit) --- A3-A31 BE0-BE7: are used to select the eight memory banks to accomplish an 8-byte data transfer

Fig 7.10 Pentium CPU Architecture

Fig 7.11 Superscalar Organization

RISC Processors RISC: Reduced Instruction Set Computer CISC : complex instructions Increase in processor die size Consumes more power and silicon Needs more cooling arrangement. RISC: Small, highly optimized set of instructions Every instruction is executed in a single clock after it is fetched and decoded. Very fast execution Less power consumption

The Advantages of RISC RISC instructions, being simple, can be hard-wired Processor can work at a high clock frequency and thus yields higher speed. On-chip MMU, Floating point arithmetic units. Chip cost is low More devises can place on chip Compilers produce more efficient codes in RISC µp Loading and decoding of instructions in a RISC processor is simple and fast.

Design issues of RISC processor Register Windowing Massive Pipelining Single cycle instruction execution Some RISC processors 1. MIPS 2. Sun Ultra SPARC