SlideShare a Scribd company logo
1 of 32
Download to read offline
M. Krishna Kumar MM/M4/LU10/V1/2004 1
Overview
¾ Each processor in the 80x86 family has a corresponding
coprocessor with which it is compatible
¾ Math Coprocessor is known as NPX,NDP,FUP.
Numeric processor extension (NPX),
Numeric data processor (NDP),
Floating point unit (FUP).
M. Krishna Kumar MM/M4/LU10/V1/2004 2
Processors
1. 8086 & 8088
2. 80286
3. 80386DX
4. 80386SX
5. 80486DX
6. 80486SX
Coprocessors
1. 8087
2. 80287,80287XL
3. 80287,80387DX
4. 80387SX
5. It is Inbuilt
6. 80487SX
Compatible Processor and Coprocessor
M. Krishna Kumar MM/M4/LU10/V1/2004 3
Pin Diagram of 8087
20
GND
19
18
CLK
NC
NC
17
16
GND
AD14
AD13
AD12
AD11
AD10
AD9
AD8
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
15
14
13
12
11
1
2
3
4
5
6
7
8
9
10
RESET
READY
BUSY
QS1
Vcc
AD15
A16/S3
A17/S4
A18/S5
_____
BHE/S7
A19/S6
________
RQ/GT1
INT
_______
RQ/GT0
NC
NC _
S2
__
S1
QS0
21
22
23
24
25
26
27
28
29
30
40
39
38
37
36
35
34
33
32
31
__
S0
8087
NPX
(A14)
(A13)
(A12)
(A11)
(A10)
(A9)
(A8)
M. Krishna Kumar MM/M4/LU10/V1/2004 4
Architecture of 8087
™ Control Unit
™ Execution Unit
M. Krishna Kumar MM/M4/LU10/V1/2004 5
8-register stack, each has 80 bits
0
79
Vcc
+5V
0
4 MSB of operand address 0
16 LSB of operand address
Floating point arithmetic module
Status Register 16 bit
Control Register
16 LBS of instruction address
11 LSB of op code
0
4MSB inst address
Bus
tracking
control
logic,
instruction
queue
Ready
Reset
Busy
CLK
INT
QS1-QS0
A19/S6 __ A16/S3
AD15 - AD0
to
____ ____
RQ/GT1
____ ____
RQ/GT0
_____
BHE/S7
vss
TAG
TAG 7
TAG
register
Block Diagram of 8087
M. Krishna Kumar MM/M4/LU10/V1/2004 6
Control word
Control Unit
Status word
8 Register Stack
Tag
word
0
7
Exception
pointer
Addressing
bus tracking
Data
buffer
Exponent
Module
Operand
queue
Micro control
unit
Programm
able shifter
Arithmetic
module
temporary
register
Numeric execution unit
Address
Status
Data
interface
80 Bits
16
16
16
64
68
Exponent bus
Fraction bus
Block Diagram of 8087
M. Krishna Kumar MM/M4/LU10/V1/2004 7
Control Unit
¾ Control unit: To synchronize the operation of the
coprocessor and the processor.
¾ This unit has a Control word and Status word and Data
Buffer
¾ If instruction is an ESCape (coprocessor) instruction,
the coprocessor executes it, if not the microprocessor
executes.
M. Krishna Kumar MM/M4/LU10/V1/2004 8
Status Register (cont..)
• C3-C0 Condition code bits
• TOP Top-of-stack (ST)
• ES Error summary
• PE Precision error
• UE Under flow error
• OE Overflow error
• ZE Zero error
• DE Denormalized error
• IE Invalid error
• B Busy bit
B C3 ST C2 C1 C0 ES PE UE OE ZE DE IE
0
15
M. Krishna Kumar MM/M4/LU10/V1/2004 9
¾ Status register reflects the over all operation of the
coprocessor.
¾ B-Busy bit indicates that coprocessor is busy executing a
task. Busy can be tested by examining the status or by
using the FWAIT instruction. Newer coprocessor
automatically synchronize with the microprocessor, so
busy flag need not be tested before performing additional
coprocessor tasks.
¾ C3-C0 Condition code bits indicates conditions about the
coprocessor.
Status Register (cont..)
M. Krishna Kumar MM/M4/LU10/V1/2004 10
¾ TOP- Top of the stack (ST) bit indicates the current
register address as the top of the stack.
¾ ES-Error summary bit is set if any unmasked error bit (PE,
UE, OE, ZE, DE, or IE) is set. In the 8087 the error
summary is also caused a coprocessor interrupt.
¾ PE- Precision error indicates that the result or operand
executes selected precision.
¾ UE-Under flow error indicates the result is too large to be
represent with the current precision selected by the control
word.
Status Register (cont..)
M. Krishna Kumar MM/M4/LU10/V1/2004 11
¾ OE-Over flow error indicates a result that is too large to be
represented. If this error is masked, the coprocessor
generates infinity for an overflow error.
¾ ZE-A Zero error indicates the divisor was zero while the
dividend is a non-infinity or non-zero number.
¾ DE-Denormalized error indicates at least one of the
operand is denormalized.
¾ IE-Invalid error indicates a stack overflow or underflow,
indeterminate from (0/0,0,-0, etc) or the use of a NAN as
an operand. This flag indicates error such as those
produced by taking the square root of a negative number.
Status Register (contd..)
M. Krishna Kumar MM/M4/LU10/V1/2004 12
Control Register
¾ Control register selects precision, rounding control,
infinity control.
¾ It also masks an unmasks the exception bits that
correspond to the rightmost Six bits of status register.
¾ Instruction FLDCW is used to load the value into the
control register.
M. Krishna Kumar MM/M4/LU10/V1/2004 13
Control Register
DM IM
ZM
OM
UM
PM
PC
RC
IC
0
15
• IC Infinity control
• RC Rounding control
• PC Precision control
• PM Precision control
• UM Underflow mask
• OM Overflow mask
• ZM Division by zero mask
• DM Denormalized operand mask
• IM Invalid operand mask
M. Krishna Kumar MM/M4/LU10/V1/2004 14
¾ IC –Infinity control selects
either affine or projective
infinity. Affine allows
positive and negative
infinity, while projective
assumes infinity
is unsigned.
¾ RC –Rounding control
determines the type of
rounding.
INFINITY CONTROL
0 = Projective
1 = Affine
ROUNDING CONTROL
00=Round to nearest or even
01=Round down towards minus infinity
10=Round up towards plus infinity
11=Chop or truncate towards zero
Control Register (cont..)
M. Krishna Kumar MM/M4/LU10/V1/2004 15
¾ PC- Precision control sets
the precision of he result as
define in table
¾ Exception Masks – It
Determines whether the
error indicated by the
exception affects the error
bit in the status register. If a
logic1 is placed in one of
the exception control bits,
corresponding status register
bit is masked off.
PRECISION CONTROL
00=Single precision (short)
01=Reserved
10=Double precision (long)
11=Extended precision
(temporary)
Control Register
M. Krishna Kumar MM/M4/LU10/V1/2004 16
Numeric Execution Unit
¾ This performs all operations that access and manipulate the
numeric data in the coprocessor’s registers.
¾ Numeric registers in NUE are 80 bits wide.
¾ NUE is able to perform arithmetic, logical and transcendental
operations as well as supply a small number of mathematical
constants from its on-chip ROM.
¾ Numeric data is routed into two parts ways
a 64 bit mantissa bus and
a 16 bit sign/exponent bus.
M. Krishna Kumar MM/M4/LU10/V1/2004 17
Circuit Connection for 8086 – 8087 (cont.)
8086 CPU
8087
8086
BUS
INTER-
FACING
COMPO-
NENTS
INTR
CLK
____ ____
RQ/GT1
QS0
QS1
_______
TEST
BUSY
QS0
QS1
____ _____
RQ/GT0
CLK
INT
CLK
8284A
CLICK
GENERATOR
8259A
PIC
INT
IRn
____ _____
RQ/GT1
Multi
master
System
bus
Multi
master
local
bus
M. Krishna Kumar MM/M4/LU10/V1/2004 18
¾ Multiplexed address-data bus lines are connected directly
from the 8086 to 8087.
¾ The status lines and the queue status lines connected directly
from 8086 to 8087. __ ___
¾ The Request/Grant signal RQ/GT0 of 8087 is connected to
___ ___
RQ/GT1 of 8086. ______
¾ BUSY signal 8087 is connected to TEST pin of 8086.
¾ Interrupt output INT of the 8087 to NMI input of 8086. This
intimates an error condition.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 19
¾ The main purpose of the circuitry between the INT output
of 8087 and the NMI input is to make sure that an NMI
signal is not present upon reset, to make it possible to mask
NMI input and to make it possible for other devices to
cause an NMI interrupt.
¾ BHE pin is connected to the system BHE line to enable the
upper bank of memory.
¾ The RQ/GT1 input is available so that another coprocessor
such as 8089 I/O processor can be connected and function
in parallel with the 8087.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 20
¾ One type of Cooperation between the two processors that you
need to know about it is how the 8087 transfers data between
memory and its internal registers.
¾ When 8086 reads an 8087 instruction that needs data from
memory or wants to send data to memory, the 8086 sends out
the memory address code in the instruction and sends out the
appropriate memory read or memory write signal to transfer a
word of data.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 21
¾ In the case of memory read, the addressed word will be
kept on the data bus by the memory. The 8087 then
simply reads the word of data bus. The 8086 ignores this
word .If the 8087 only needs this one word of data, it can
then go on and executes its instruction.
¾ Some 8087 instructions need to read in or write out up to
80-bit word. For these cases 8086 outputs the address of
the first data word on the address bus and outputs the
appropriate control signal.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 22
¾ The 8087 reads the data word on the data bus by memory or
writes a data word to memory on the data bus. The 8087 grabs
the 20-bit physical address that was output by the 8086.To
transfer additional words it needs to/from memory, the 8087
then takes over the buses from 8086.
¾ To take over the bus, the 8087 sends out a low-going pulse on
___ ____
RQ/GT0 pin. The 8086 responds to this by sending another low
____ ____
going pulse back to the RQ/GT0 pin of 8087 and by floating its
buses.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 23
¾ The 8087 then increments the address it grabbed during the
first transfer and outputs the incremented address on the
address bus. When the 8087 output a memory read or memory
write signal, another data word will be transferred to or from
the 8087.
¾ The 8087 continues the process until it has transferred all the
data words required by the instruction to/from memory.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 24
¾ When the 8087 is using the buses for its data transfer, it
____ ___
sends another low-going pulse out on its RQ/ GT0 pin to
8086 to know it can have the buses back again.
The next type of the synchronization between the host
processor and the coprocessor is that required to make sure the
8086 hast does not attempt to execute the next instruction before
the 8087 has completed an instruction.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 25
¾ Taking one situation, in the case where the 8086 needs the data
produced by the execution of an 8087 instruction to carry out
its next instruction.
¾ In the instruction sequence for example the 8087 must
complete the FSTSW STATUS instruction before the 8086
will have the data it needs to execute the
MOV AX , STATUS instruction.
¾ Without some mechanism to make the 8086 wait until the
8087 completes the FSTSW instruction, the 8086 will go on
and execute the MOV AX , STATUS with erroneous data .
¾ We solve this problem by connecting the 8087 BUSY output
to the TEST pin of the 8086 and putting on the WAIT
instruction in the program.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 26
¾ While 8087 is executing an instruction it asserts its BUSY pin
high. When it is finished with an instruction, the 8087 will
drop its BUSY pin low. Since the BUSY pin from 8087 is
connected to the TEST pin 8086 the processor can check its
pin of 8087 whether it finished it instruction or not.
¾ You place the 8086 WAIT instruction in your program after
the 8087 FSTSW instruction .When 8086 executes the WAIT
instruction it enters an internal loop where it repeatedly checks
the logic level on the TEST input. The 8086 will stay in this
loop until it finds the TEST input asserted low, indicating the
8087 has completed its instruction. The 8086 will then exit the
internal loop, fetch and execute the next instruction.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 27
FSTSW STATUS ;copy 8087 status word to memory
MOV AX, STATUS ;copy status word to AX to check
; bits
( a )
¾ In this set of instructions we are not using WAIT instruction.
Due to this the flow of execution of command will takes place
continuously even though the previous instruction had not
finished it’s completion of its work .so we may lost data .
Example (cont..)
M. Krishna Kumar MM/M4/LU10/V1/2004 28
FSTSW STATUS ;copy 8087 status word to memory
FWAIT ;wait for 8087 to finish before-
; doing next 8086 instruction
MOV AX,STATUS ;copy status word to AX to check
; bits
( b )
¾ In this code we are adding up of FWAIT instruction so that it
will stop the execution of the command until the above
instruction is finishes it’s work .so that you are not loosing
data and after that you will allow to continue the execution of
instructions.
Example (cont..)
M. Krishna Kumar MM/M4/LU10/V1/2004 29
¾ Another case where you need synchronization of the processor
and the coprocessor is the case where a program has several
8087 instructions in sequence.
¾ The 8087 are executed only one instruction at a time so you
have to make sure that 8087 has completed one instruction
before you allow the 8086 to fetch the next 8087 instruction
from memory. ________
¾ Here again you use the BUSY-TEST connection and the
FWAIT instruction to solve the problem. If you are hand
coding, you can just put the 8086 WAIT(FWAIT) instruction
after each instruction to make sure that instruction is
completed before going on to next.
Circuit Connection for 8086 – 8087 (cont.)
M. Krishna Kumar MM/M4/LU10/V1/2004 30
¾ If you are using the assembler which accepts 8087 mnemonics,
the assembler will automatically insert the 8-bit code for the
WAIT instruction ,10011011 binary (9BH), as the first byte of
the code for 8087 instruction.
Circuit Connection for 8086 – 8087
M. Krishna Kumar MM/M4/LU10/V1/2004 31
Interfacing ( cont..)
¾ Multiplexed address-data bus lines are connected directly
from the 8086 to 8087.
¾ The status lines and the queue status lines connected directly
from 8086 to 8087. __ ___
¾ The Request/Grant signal RQ/GT0 of 8087 is connected to
___ __
RQ/GT1 of 8086. ______
¾ BUSY signal 8087 is connected to TEST pin of 8086.
¾ Interrupt output INT of the 8087 to NMI input of 8086. This
intimates an error condition. ______
¾ A WAIT instruction is passed to keep looking at its TEST pin,
until it finds pin Low to indicates that the 8087 has completed
the computation.
M. Krishna Kumar MM/M4/LU10/V1/2004 32
¾ SYNCHRONIZATION must be established between the
processor and coprocessor in two situations.
a) The execution of an ESC instruction that require the
participation of the NUE must not be initiated if the NUE has
not completed the execution of the previous instruction.
b) When a processor instruction accesses a memory
location that is an operand of a previous coprocessor
instruction .In this case CPU must synchronize with NPX to
ensure that it has completed its instruction.
Processor WAIT instruction is provided.
Interfacing

More Related Content

What's hot

Ai 0542 20210411_boarding_pass
Ai 0542 20210411_boarding_passAi 0542 20210411_boarding_pass
Ai 0542 20210411_boarding_passL.Ranjith kumar
 
SRS on airline reservation system
SRS on airline reservation system SRS on airline reservation system
SRS on airline reservation system VikasSingh958
 
Career oppournities after class 10th in commerce stream
Career oppournities after class 10th in commerce streamCareer oppournities after class 10th in commerce stream
Career oppournities after class 10th in commerce streamMohit Agarwal
 
Certificate FOR MAJOR PROJECT
Certificate FOR MAJOR PROJECTCertificate FOR MAJOR PROJECT
Certificate FOR MAJOR PROJECTRohit Roy
 
monika sort resume
monika sort resumemonika sort resume
monika sort resumeMonika Yadav
 
How to make an academic CV for graduate school application?
How to make an academic CV for graduate school application?How to make an academic CV for graduate school application?
How to make an academic CV for graduate school application?Abdullah Saad
 
SE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUSSE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUSnikshaikh786
 
Railway booking & management system
Railway booking & management systemRailway booking & management system
Railway booking & management systemNikhil Raj
 
Final list 119th induction training programme final
Final list 119th induction training programme finalFinal list 119th induction training programme final
Final list 119th induction training programme finalDr. Heera Lal IAS
 
3.Sangameshwar college Solapur Hindi Dept
3.Sangameshwar college  Solapur  Hindi Dept3.Sangameshwar college  Solapur  Hindi Dept
3.Sangameshwar college Solapur Hindi DeptSanghprakash Dudde
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programmingKartik Sharma
 
Career options after b.com
Career options after b.comCareer options after b.com
Career options after b.comchegg india
 
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...Dr. Sreedhar Rao
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Neelam Kapoor
 

What's hot (20)

applied resume for tcs
applied resume for tcsapplied resume for tcs
applied resume for tcs
 
Ai 0542 20210411_boarding_pass
Ai 0542 20210411_boarding_passAi 0542 20210411_boarding_pass
Ai 0542 20210411_boarding_pass
 
SRS on airline reservation system
SRS on airline reservation system SRS on airline reservation system
SRS on airline reservation system
 
Career oppournities after class 10th in commerce stream
Career oppournities after class 10th in commerce streamCareer oppournities after class 10th in commerce stream
Career oppournities after class 10th in commerce stream
 
Project Report Format
Project Report FormatProject Report Format
Project Report Format
 
Certificate FOR MAJOR PROJECT
Certificate FOR MAJOR PROJECTCertificate FOR MAJOR PROJECT
Certificate FOR MAJOR PROJECT
 
Rafiq's Islamic St.2013 CV
Rafiq's Islamic St.2013 CVRafiq's Islamic St.2013 CV
Rafiq's Islamic St.2013 CV
 
monika sort resume
monika sort resumemonika sort resume
monika sort resume
 
How to make an academic CV for graduate school application?
How to make an academic CV for graduate school application?How to make an academic CV for graduate school application?
How to make an academic CV for graduate school application?
 
SE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUSSE-IT MINI PROJECT SYLLABUS
SE-IT MINI PROJECT SYLLABUS
 
Diploma Supplement
Diploma SupplementDiploma Supplement
Diploma Supplement
 
Railway booking & management system
Railway booking & management systemRailway booking & management system
Railway booking & management system
 
Final list 119th induction training programme final
Final list 119th induction training programme finalFinal list 119th induction training programme final
Final list 119th induction training programme final
 
3.Sangameshwar college Solapur Hindi Dept
3.Sangameshwar college  Solapur  Hindi Dept3.Sangameshwar college  Solapur  Hindi Dept
3.Sangameshwar college Solapur Hindi Dept
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programming
 
Career options after b.com
Career options after b.comCareer options after b.com
Career options after b.com
 
NDSU Transcript
NDSU TranscriptNDSU Transcript
NDSU Transcript
 
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...
Assessment & Accreditation Process of NAAC in Revised Accreditation Framework...
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
Protection mode
Protection modeProtection mode
Protection mode
 

Similar to 8087 COPROCESSOR connection with 8086 and other processors

Similar to 8087 COPROCESSOR connection with 8086 and other processors (20)

8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
EE6502 Microprocessor and Microcontroller
EE6502   Microprocessor and MicrocontrollerEE6502   Microprocessor and Microcontroller
EE6502 Microprocessor and Microcontroller
 
C15 lecture note_08(2 in 1)
C15 lecture note_08(2 in 1)C15 lecture note_08(2 in 1)
C15 lecture note_08(2 in 1)
 
Chapter8-mikroprocessor
Chapter8-mikroprocessorChapter8-mikroprocessor
Chapter8-mikroprocessor
 
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptxMAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
 
Microprocessor 8085 Basics
Microprocessor 8085 BasicsMicroprocessor 8085 Basics
Microprocessor 8085 Basics
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf
 
Intel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagramIntel 8086 internal architecture & pin diagram
Intel 8086 internal architecture & pin diagram
 
Lect 5
Lect 5Lect 5
Lect 5
 
Computer Engineering II Year.pdf
Computer Engineering II Year.pdfComputer Engineering II Year.pdf
Computer Engineering II Year.pdf
 
8259 a
8259 a8259 a
8259 a
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
At89 c2051 (3)
At89 c2051 (3)At89 c2051 (3)
At89 c2051 (3)
 
89 c2051
89 c205189 c2051
89 c2051
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
8086 Microprocessor
8086  Microprocessor8086  Microprocessor
8086 Microprocessor
 
8086
80868086
8086
 

More from DrVikasMahor

Automation for KUKA youBot ROS Project.pptx
Automation for KUKA youBot ROS Project.pptxAutomation for KUKA youBot ROS Project.pptx
Automation for KUKA youBot ROS Project.pptxDrVikasMahor
 
UNIT 5 microcontroller 8051 OVERVIEW.pdf
UNIT 5 microcontroller 8051 OVERVIEW.pdfUNIT 5 microcontroller 8051 OVERVIEW.pdf
UNIT 5 microcontroller 8051 OVERVIEW.pdfDrVikasMahor
 
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxembeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxDrVikasMahor
 
architecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxarchitecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxDrVikasMahor
 
POWER AMPLIFIER- introduction to power amplifier.pptx
POWER AMPLIFIER- introduction to power amplifier.pptxPOWER AMPLIFIER- introduction to power amplifier.pptx
POWER AMPLIFIER- introduction to power amplifier.pptxDrVikasMahor
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxDrVikasMahor
 
8086 all instructions combined presentation.pptx
8086 all instructions combined presentation.pptx8086 all instructions combined presentation.pptx
8086 all instructions combined presentation.pptxDrVikasMahor
 
presentation for NEC course to defend for NEP 2020
presentation for NEC course to defend for NEP 2020presentation for NEC course to defend for NEP 2020
presentation for NEC course to defend for NEP 2020DrVikasMahor
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationDrVikasMahor
 
final thesis pptReductions of leakage and ground bounce noise in.ppt
final thesis pptReductions of leakage and ground bounce noise in.pptfinal thesis pptReductions of leakage and ground bounce noise in.ppt
final thesis pptReductions of leakage and ground bounce noise in.pptDrVikasMahor
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac finalDrVikasMahor
 
unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxDrVikasMahor
 
department ppt for students.pptx
department ppt for students.pptxdepartment ppt for students.pptx
department ppt for students.pptxDrVikasMahor
 

More from DrVikasMahor (14)

Automation for KUKA youBot ROS Project.pptx
Automation for KUKA youBot ROS Project.pptxAutomation for KUKA youBot ROS Project.pptx
Automation for KUKA youBot ROS Project.pptx
 
UNIT 5 microcontroller 8051 OVERVIEW.pdf
UNIT 5 microcontroller 8051 OVERVIEW.pdfUNIT 5 microcontroller 8051 OVERVIEW.pdf
UNIT 5 microcontroller 8051 OVERVIEW.pdf
 
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptxembeddedsystemspresentation-140524063909-phpapp01-converted.pptx
embeddedsystemspresentation-140524063909-phpapp01-converted.pptx
 
architecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptxarchitecture of 8086 new Lecture 4new.pptx
architecture of 8086 new Lecture 4new.pptx
 
POWER AMPLIFIER- introduction to power amplifier.pptx
POWER AMPLIFIER- introduction to power amplifier.pptxPOWER AMPLIFIER- introduction to power amplifier.pptx
POWER AMPLIFIER- introduction to power amplifier.pptx
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptx
 
8086 all instructions combined presentation.pptx
8086 all instructions combined presentation.pptx8086 all instructions combined presentation.pptx
8086 all instructions combined presentation.pptx
 
presentation for NEC course to defend for NEP 2020
presentation for NEC course to defend for NEP 2020presentation for NEC course to defend for NEP 2020
presentation for NEC course to defend for NEP 2020
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
 
final thesis pptReductions of leakage and ground bounce noise in.ppt
final thesis pptReductions of leakage and ground bounce noise in.pptfinal thesis pptReductions of leakage and ground bounce noise in.ppt
final thesis pptReductions of leakage and ground bounce noise in.ppt
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
unit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptxunit 2 lect 6 AND 7 8254.pptx
unit 2 lect 6 AND 7 8254.pptx
 
department ppt for students.pptx
department ppt for students.pptxdepartment ppt for students.pptx
department ppt for students.pptx
 
LTspice.ppt
LTspice.pptLTspice.ppt
LTspice.ppt
 

Recently uploaded

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 

Recently uploaded (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 

8087 COPROCESSOR connection with 8086 and other processors

  • 1. M. Krishna Kumar MM/M4/LU10/V1/2004 1 Overview ¾ Each processor in the 80x86 family has a corresponding coprocessor with which it is compatible ¾ Math Coprocessor is known as NPX,NDP,FUP. Numeric processor extension (NPX), Numeric data processor (NDP), Floating point unit (FUP).
  • 2. M. Krishna Kumar MM/M4/LU10/V1/2004 2 Processors 1. 8086 & 8088 2. 80286 3. 80386DX 4. 80386SX 5. 80486DX 6. 80486SX Coprocessors 1. 8087 2. 80287,80287XL 3. 80287,80387DX 4. 80387SX 5. It is Inbuilt 6. 80487SX Compatible Processor and Coprocessor
  • 3. M. Krishna Kumar MM/M4/LU10/V1/2004 3 Pin Diagram of 8087 20 GND 19 18 CLK NC NC 17 16 GND AD14 AD13 AD12 AD11 AD10 AD9 AD8 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 15 14 13 12 11 1 2 3 4 5 6 7 8 9 10 RESET READY BUSY QS1 Vcc AD15 A16/S3 A17/S4 A18/S5 _____ BHE/S7 A19/S6 ________ RQ/GT1 INT _______ RQ/GT0 NC NC _ S2 __ S1 QS0 21 22 23 24 25 26 27 28 29 30 40 39 38 37 36 35 34 33 32 31 __ S0 8087 NPX (A14) (A13) (A12) (A11) (A10) (A9) (A8)
  • 4. M. Krishna Kumar MM/M4/LU10/V1/2004 4 Architecture of 8087 ™ Control Unit ™ Execution Unit
  • 5. M. Krishna Kumar MM/M4/LU10/V1/2004 5 8-register stack, each has 80 bits 0 79 Vcc +5V 0 4 MSB of operand address 0 16 LSB of operand address Floating point arithmetic module Status Register 16 bit Control Register 16 LBS of instruction address 11 LSB of op code 0 4MSB inst address Bus tracking control logic, instruction queue Ready Reset Busy CLK INT QS1-QS0 A19/S6 __ A16/S3 AD15 - AD0 to ____ ____ RQ/GT1 ____ ____ RQ/GT0 _____ BHE/S7 vss TAG TAG 7 TAG register Block Diagram of 8087
  • 6. M. Krishna Kumar MM/M4/LU10/V1/2004 6 Control word Control Unit Status word 8 Register Stack Tag word 0 7 Exception pointer Addressing bus tracking Data buffer Exponent Module Operand queue Micro control unit Programm able shifter Arithmetic module temporary register Numeric execution unit Address Status Data interface 80 Bits 16 16 16 64 68 Exponent bus Fraction bus Block Diagram of 8087
  • 7. M. Krishna Kumar MM/M4/LU10/V1/2004 7 Control Unit ¾ Control unit: To synchronize the operation of the coprocessor and the processor. ¾ This unit has a Control word and Status word and Data Buffer ¾ If instruction is an ESCape (coprocessor) instruction, the coprocessor executes it, if not the microprocessor executes.
  • 8. M. Krishna Kumar MM/M4/LU10/V1/2004 8 Status Register (cont..) • C3-C0 Condition code bits • TOP Top-of-stack (ST) • ES Error summary • PE Precision error • UE Under flow error • OE Overflow error • ZE Zero error • DE Denormalized error • IE Invalid error • B Busy bit B C3 ST C2 C1 C0 ES PE UE OE ZE DE IE 0 15
  • 9. M. Krishna Kumar MM/M4/LU10/V1/2004 9 ¾ Status register reflects the over all operation of the coprocessor. ¾ B-Busy bit indicates that coprocessor is busy executing a task. Busy can be tested by examining the status or by using the FWAIT instruction. Newer coprocessor automatically synchronize with the microprocessor, so busy flag need not be tested before performing additional coprocessor tasks. ¾ C3-C0 Condition code bits indicates conditions about the coprocessor. Status Register (cont..)
  • 10. M. Krishna Kumar MM/M4/LU10/V1/2004 10 ¾ TOP- Top of the stack (ST) bit indicates the current register address as the top of the stack. ¾ ES-Error summary bit is set if any unmasked error bit (PE, UE, OE, ZE, DE, or IE) is set. In the 8087 the error summary is also caused a coprocessor interrupt. ¾ PE- Precision error indicates that the result or operand executes selected precision. ¾ UE-Under flow error indicates the result is too large to be represent with the current precision selected by the control word. Status Register (cont..)
  • 11. M. Krishna Kumar MM/M4/LU10/V1/2004 11 ¾ OE-Over flow error indicates a result that is too large to be represented. If this error is masked, the coprocessor generates infinity for an overflow error. ¾ ZE-A Zero error indicates the divisor was zero while the dividend is a non-infinity or non-zero number. ¾ DE-Denormalized error indicates at least one of the operand is denormalized. ¾ IE-Invalid error indicates a stack overflow or underflow, indeterminate from (0/0,0,-0, etc) or the use of a NAN as an operand. This flag indicates error such as those produced by taking the square root of a negative number. Status Register (contd..)
  • 12. M. Krishna Kumar MM/M4/LU10/V1/2004 12 Control Register ¾ Control register selects precision, rounding control, infinity control. ¾ It also masks an unmasks the exception bits that correspond to the rightmost Six bits of status register. ¾ Instruction FLDCW is used to load the value into the control register.
  • 13. M. Krishna Kumar MM/M4/LU10/V1/2004 13 Control Register DM IM ZM OM UM PM PC RC IC 0 15 • IC Infinity control • RC Rounding control • PC Precision control • PM Precision control • UM Underflow mask • OM Overflow mask • ZM Division by zero mask • DM Denormalized operand mask • IM Invalid operand mask
  • 14. M. Krishna Kumar MM/M4/LU10/V1/2004 14 ¾ IC –Infinity control selects either affine or projective infinity. Affine allows positive and negative infinity, while projective assumes infinity is unsigned. ¾ RC –Rounding control determines the type of rounding. INFINITY CONTROL 0 = Projective 1 = Affine ROUNDING CONTROL 00=Round to nearest or even 01=Round down towards minus infinity 10=Round up towards plus infinity 11=Chop or truncate towards zero Control Register (cont..)
  • 15. M. Krishna Kumar MM/M4/LU10/V1/2004 15 ¾ PC- Precision control sets the precision of he result as define in table ¾ Exception Masks – It Determines whether the error indicated by the exception affects the error bit in the status register. If a logic1 is placed in one of the exception control bits, corresponding status register bit is masked off. PRECISION CONTROL 00=Single precision (short) 01=Reserved 10=Double precision (long) 11=Extended precision (temporary) Control Register
  • 16. M. Krishna Kumar MM/M4/LU10/V1/2004 16 Numeric Execution Unit ¾ This performs all operations that access and manipulate the numeric data in the coprocessor’s registers. ¾ Numeric registers in NUE are 80 bits wide. ¾ NUE is able to perform arithmetic, logical and transcendental operations as well as supply a small number of mathematical constants from its on-chip ROM. ¾ Numeric data is routed into two parts ways a 64 bit mantissa bus and a 16 bit sign/exponent bus.
  • 17. M. Krishna Kumar MM/M4/LU10/V1/2004 17 Circuit Connection for 8086 – 8087 (cont.) 8086 CPU 8087 8086 BUS INTER- FACING COMPO- NENTS INTR CLK ____ ____ RQ/GT1 QS0 QS1 _______ TEST BUSY QS0 QS1 ____ _____ RQ/GT0 CLK INT CLK 8284A CLICK GENERATOR 8259A PIC INT IRn ____ _____ RQ/GT1 Multi master System bus Multi master local bus
  • 18. M. Krishna Kumar MM/M4/LU10/V1/2004 18 ¾ Multiplexed address-data bus lines are connected directly from the 8086 to 8087. ¾ The status lines and the queue status lines connected directly from 8086 to 8087. __ ___ ¾ The Request/Grant signal RQ/GT0 of 8087 is connected to ___ ___ RQ/GT1 of 8086. ______ ¾ BUSY signal 8087 is connected to TEST pin of 8086. ¾ Interrupt output INT of the 8087 to NMI input of 8086. This intimates an error condition. Circuit Connection for 8086 – 8087 (cont.)
  • 19. M. Krishna Kumar MM/M4/LU10/V1/2004 19 ¾ The main purpose of the circuitry between the INT output of 8087 and the NMI input is to make sure that an NMI signal is not present upon reset, to make it possible to mask NMI input and to make it possible for other devices to cause an NMI interrupt. ¾ BHE pin is connected to the system BHE line to enable the upper bank of memory. ¾ The RQ/GT1 input is available so that another coprocessor such as 8089 I/O processor can be connected and function in parallel with the 8087. Circuit Connection for 8086 – 8087 (cont.)
  • 20. M. Krishna Kumar MM/M4/LU10/V1/2004 20 ¾ One type of Cooperation between the two processors that you need to know about it is how the 8087 transfers data between memory and its internal registers. ¾ When 8086 reads an 8087 instruction that needs data from memory or wants to send data to memory, the 8086 sends out the memory address code in the instruction and sends out the appropriate memory read or memory write signal to transfer a word of data. Circuit Connection for 8086 – 8087 (cont.)
  • 21. M. Krishna Kumar MM/M4/LU10/V1/2004 21 ¾ In the case of memory read, the addressed word will be kept on the data bus by the memory. The 8087 then simply reads the word of data bus. The 8086 ignores this word .If the 8087 only needs this one word of data, it can then go on and executes its instruction. ¾ Some 8087 instructions need to read in or write out up to 80-bit word. For these cases 8086 outputs the address of the first data word on the address bus and outputs the appropriate control signal. Circuit Connection for 8086 – 8087 (cont.)
  • 22. M. Krishna Kumar MM/M4/LU10/V1/2004 22 ¾ The 8087 reads the data word on the data bus by memory or writes a data word to memory on the data bus. The 8087 grabs the 20-bit physical address that was output by the 8086.To transfer additional words it needs to/from memory, the 8087 then takes over the buses from 8086. ¾ To take over the bus, the 8087 sends out a low-going pulse on ___ ____ RQ/GT0 pin. The 8086 responds to this by sending another low ____ ____ going pulse back to the RQ/GT0 pin of 8087 and by floating its buses. Circuit Connection for 8086 – 8087 (cont.)
  • 23. M. Krishna Kumar MM/M4/LU10/V1/2004 23 ¾ The 8087 then increments the address it grabbed during the first transfer and outputs the incremented address on the address bus. When the 8087 output a memory read or memory write signal, another data word will be transferred to or from the 8087. ¾ The 8087 continues the process until it has transferred all the data words required by the instruction to/from memory. Circuit Connection for 8086 – 8087 (cont.)
  • 24. M. Krishna Kumar MM/M4/LU10/V1/2004 24 ¾ When the 8087 is using the buses for its data transfer, it ____ ___ sends another low-going pulse out on its RQ/ GT0 pin to 8086 to know it can have the buses back again. The next type of the synchronization between the host processor and the coprocessor is that required to make sure the 8086 hast does not attempt to execute the next instruction before the 8087 has completed an instruction. Circuit Connection for 8086 – 8087 (cont.)
  • 25. M. Krishna Kumar MM/M4/LU10/V1/2004 25 ¾ Taking one situation, in the case where the 8086 needs the data produced by the execution of an 8087 instruction to carry out its next instruction. ¾ In the instruction sequence for example the 8087 must complete the FSTSW STATUS instruction before the 8086 will have the data it needs to execute the MOV AX , STATUS instruction. ¾ Without some mechanism to make the 8086 wait until the 8087 completes the FSTSW instruction, the 8086 will go on and execute the MOV AX , STATUS with erroneous data . ¾ We solve this problem by connecting the 8087 BUSY output to the TEST pin of the 8086 and putting on the WAIT instruction in the program. Circuit Connection for 8086 – 8087 (cont.)
  • 26. M. Krishna Kumar MM/M4/LU10/V1/2004 26 ¾ While 8087 is executing an instruction it asserts its BUSY pin high. When it is finished with an instruction, the 8087 will drop its BUSY pin low. Since the BUSY pin from 8087 is connected to the TEST pin 8086 the processor can check its pin of 8087 whether it finished it instruction or not. ¾ You place the 8086 WAIT instruction in your program after the 8087 FSTSW instruction .When 8086 executes the WAIT instruction it enters an internal loop where it repeatedly checks the logic level on the TEST input. The 8086 will stay in this loop until it finds the TEST input asserted low, indicating the 8087 has completed its instruction. The 8086 will then exit the internal loop, fetch and execute the next instruction. Circuit Connection for 8086 – 8087 (cont.)
  • 27. M. Krishna Kumar MM/M4/LU10/V1/2004 27 FSTSW STATUS ;copy 8087 status word to memory MOV AX, STATUS ;copy status word to AX to check ; bits ( a ) ¾ In this set of instructions we are not using WAIT instruction. Due to this the flow of execution of command will takes place continuously even though the previous instruction had not finished it’s completion of its work .so we may lost data . Example (cont..)
  • 28. M. Krishna Kumar MM/M4/LU10/V1/2004 28 FSTSW STATUS ;copy 8087 status word to memory FWAIT ;wait for 8087 to finish before- ; doing next 8086 instruction MOV AX,STATUS ;copy status word to AX to check ; bits ( b ) ¾ In this code we are adding up of FWAIT instruction so that it will stop the execution of the command until the above instruction is finishes it’s work .so that you are not loosing data and after that you will allow to continue the execution of instructions. Example (cont..)
  • 29. M. Krishna Kumar MM/M4/LU10/V1/2004 29 ¾ Another case where you need synchronization of the processor and the coprocessor is the case where a program has several 8087 instructions in sequence. ¾ The 8087 are executed only one instruction at a time so you have to make sure that 8087 has completed one instruction before you allow the 8086 to fetch the next 8087 instruction from memory. ________ ¾ Here again you use the BUSY-TEST connection and the FWAIT instruction to solve the problem. If you are hand coding, you can just put the 8086 WAIT(FWAIT) instruction after each instruction to make sure that instruction is completed before going on to next. Circuit Connection for 8086 – 8087 (cont.)
  • 30. M. Krishna Kumar MM/M4/LU10/V1/2004 30 ¾ If you are using the assembler which accepts 8087 mnemonics, the assembler will automatically insert the 8-bit code for the WAIT instruction ,10011011 binary (9BH), as the first byte of the code for 8087 instruction. Circuit Connection for 8086 – 8087
  • 31. M. Krishna Kumar MM/M4/LU10/V1/2004 31 Interfacing ( cont..) ¾ Multiplexed address-data bus lines are connected directly from the 8086 to 8087. ¾ The status lines and the queue status lines connected directly from 8086 to 8087. __ ___ ¾ The Request/Grant signal RQ/GT0 of 8087 is connected to ___ __ RQ/GT1 of 8086. ______ ¾ BUSY signal 8087 is connected to TEST pin of 8086. ¾ Interrupt output INT of the 8087 to NMI input of 8086. This intimates an error condition. ______ ¾ A WAIT instruction is passed to keep looking at its TEST pin, until it finds pin Low to indicates that the 8087 has completed the computation.
  • 32. M. Krishna Kumar MM/M4/LU10/V1/2004 32 ¾ SYNCHRONIZATION must be established between the processor and coprocessor in two situations. a) The execution of an ESC instruction that require the participation of the NUE must not be initiated if the NUE has not completed the execution of the previous instruction. b) When a processor instruction accesses a memory location that is an operand of a previous coprocessor instruction .In this case CPU must synchronize with NPX to ensure that it has completed its instruction. Processor WAIT instruction is provided. Interfacing