SlideShare a Scribd company logo
Intel 8087 Math-Coprocessor
DEPARTMENT OF BIOMEDICAL ENGINEERING , KUET
Course teachers:
Monika Gope
Assistant Professor
Institute of Information and
Communication Technology
Fazla Rabbi Mashrur
1515020
A PRESENTATION ON
Presented by:
1
01
Introduction
▪ 8087 was the first math coprocessor for 16-bit
processors designed by Intel
▪ It was built to pair with 8086 and 8088.
▪ The purpose of 8087 was to speed up the
computations involving floating point
calculations.
▪ Addition, subtraction, multiplication and division
of simple numbers is not the coprocessor’s job.
▪ It does all the calculations involving floating
point numbers like scientific calculations and
algebraic functions.
Introduction
▪ By having a coprocessor, which performs all the calculations, it can
free up a lot of CPU’s time.
▪ This would allow the CPU to focus all of its resources on the other
functions it has to perform.
▪ This increases the overall speed and performance of the entire
system.
▪ This coprocessor introduced about 60 new instructions available to
the programmer.
Data Type
▪ Binary Integer
▪ Word integer16 bitsDW(Define Word)
▪ Short integer 32 bitsDD(Define DoubleWord)
▪ Long Integer 64 bitsDQ(Define Quadword)
Cont.
Packed Decimal Numbers
▪ Packed Decimal80 bitsDT(Define TenBytes)
Cont.
Real Numbers
▪ Short real32 bitsDD(Define DoubleWord)
▪ Long Real 64 bitsDD(Define QuadWord)
▪ Temporary Real 80 bitsDT(Define TenBytes)
Single bit Precision
The single precision floating point unit is a packet of 32 bits,
divided into three sections one bit, eight bits, and twenty-three bits
Cont.
Let’s convert and learn
Pick a decimal number : 43.625
Binary of this number is :101011.101
represent it in floating point notation :1.01011101 * 25
Cont.
Sign Field
The first section is one bit long, and is the sign bit. It is either 0 or 1; 0
indicates that the number is positive, 1 negative. The number
1.01011101 * 25 is positive, so this field would have a value of 0.
Cont.
Exponent Field
The second section is eight bits long. In our 1.01011101 x 25 number,
the eight-bit exponent field would have a decimal value of 5 + 127 =
132. In binary this is 10000100.
Cont.
Mantissa Field
The third section is twenty-three bits long, and serves as the
"mantissa." (The mantissa is sometimes called the significand.) The
mantissa is merely the "other stuff" to the left of the 2aterm in our
binary number represented in scientific notation. In our 1.01011101
* 25 number and our mantissa for our number would in fact be
01011101000000000000000.
Internal Architecture
▪ 8087 coprocessor is designed to operate with 8086
microprocessor.
▪ The microprocessor and coprocessor can execute their respective
instructions simultaneously.
▪ Microprocessor interprets and executes the normal instruction set
and the coprocessor interprets and executes only the coprocessor
instructions.
Cont.
Cont.
▪ The internal structure of 8087 coprocessor is divided into two
major sections:
▪ Control Unit (CU)
▪ Numerical Execution Unit (NEU)
Control Unit (CU)
▪ It interfaces coprocessor to the microprocessor system bus.
▪ It also synchronize the operation of the coprocessor and the
microprocessor.
▪ This unit has a Control Word, Status Word and Data Buffer.
▪ If an instruction is ESC instruction, then coprocessor executes it.
▪ If not, then microprocessor executes.
Numeric Execution Unit (NEU)
▪ This unit is responsible for executing all coprocessor instructions.
▪ It has an 8 register stack that holds the operands for instructions
and result of instructions.
▪ The stack contains 8 registers that are 80-bits wide.
▪ Numeric data is transferred inside the coprocessor in two parts:
▪ 64-bit mantissa bus
▪ 16-bit exponent bus
Status Register
Cont.
▪ Status Register tells the overall status of 8087 coprocessor.
▪ It is a 16-bit register.
▪ It is accessed by executing the FSTSW instruction.
▪ This instruction stores the contents of status register into memory.
▪ Once the status is stored in memory, the bit positions of the status
register can be examined.
Cont.
▪ Busy: It indicates that the coprocessor is busy executing the task.
▪ Condition Codes (C0-C3): They indicate various conditions about the
coprocessor.
▪ Top of Stack: It indicates a register as top of stack register, out of
the eight stack registers.
▪ Exception Flag: It is set if any of the exception flag bits (SF, PR, UF,
OF, ZD, DN, IO) are set.
Cont.
▪ Stack Fault: It is not available in 8087. It is active only in 80387
and above.
▪ Precision: It indicates that the result has exceeded the selected
precision.
▪ Underflow: It tells if the result is too small to fit in a register.
▪ Overflow: It tells if the result is too large to fit in a register.
Cont.
▪ Zero Divide: It indicates that you try to divide a non-zero value by
zero.
▪ Denormalized: It indicates that at least one of the operand is de-
normalized.
▪ Invalid Operation: It indicates an invalid operation.
Control Register
20-Nov-1022
www.eazynot
es.com
Control Register
▪ Control Register controls the operating modes of 8087.
▪ It is also a 16-bit register.
▪ It performs rounding control and precision control.
▪ It is also used to do masking and unmasking of the
exception bits that correspond to the rightmost six bits of
the status register.
▪ FLDCW instruction is used to load the value into control
register.
20-Nov-1023
www.eazynot
es.com
Control Register
▪ Rounding Control: It determines the type of rounding
or truncating to be done.
▪ Precision Control: It sets the precision of the result.
▪ Exception Masks: It determines that whether an error
effects the exception bits in the status register.
▪ If it is one, then the corresponding error is ignored.
▪ If it is zero and the corresponding error occurs, then it
generates an interrupt, and the corresponding bit in
status register is set.
24
Tag Register
▪ Tag Register is used to indicate the contents of each
register in the stack.
▪ There are total 8 tags (Tag 0 to Tag 7) in this register
and each tag uses 2 bits to represent a value.
▪ Therefore, it is a 16-bit register.
20-Nov-1025
www.eazynot
es.com
Tag Values:
00 = Valid
01 = Zero
10 = Invalid
11 = Empty
TAG 7 TAG 6 TAG 5 TAG 4 TAG 3 TAG 2 TAG 1 TAG 0
Pin Diagram of 8087
20-Nov-1026
www.eazynot
es.com
8
0
8
7
GND
GND
CLK
NC
NC
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
AD8
AD9
AD10
AD11
AD12
AD13
AD14
VCC
AD15
A16/S3
A17/S4
A18/S5
A19/S6
BHE/S7
RQ/GT1
INT
RQ/GT0
NC
NC
S2
S1
S0
QS0
QS1
BUSY
READY
RESET
Interfacing of 8086 and 8087
▪ 8087 can be connected with CPU only in
max.mode,i.e when MN/MX pin is grounded.
▪ In max. mode, all control signals are derived using a
bus controller.
▪ 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 QS0 and QS1 lines may be directly connected to
corresponding pins in case of 8086/88 based
systems.
20-Nov-1027
www.eazynot
es.com
Cont.
▪ The Request/Grant signal RQ/GT0 of 8087 is connected to
RQ/GT1 of 8086.
▪ The clock pin of 8087 connected with CPU 8086/88 clock i/p.
▪ The interrupt o/p of 8087 is routed to 8086/88 via a
programmable interrupt controller.
▪ The pins AD0-AD15,BHE/S7,RESET,A19/S6-A16/S3 r
connected to corresponding pins of 8086
▪ BUSY signal 8087 is connected to TEST pin of 8086.
Cont.
▪ Interrupt o/p 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.
▪ SYNCHRONIZATION must be established between the processor
and coprocessor in

More Related Content

What's hot

8155 PPI
8155 PPI8155 PPI
8155 PPI
ShivamSood22
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
Avin Mathew
 
Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
tamilnesaner
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
80386
8038680386
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
KanchanPatil34
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
SIRILsam
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086
Estiak Khan
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
vishalgohel12195
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
Gaurav Verma
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
swaminath kanhere
 
Digital counter
Digital counter Digital counter
Digital counter
Bhaskar Kumar Jha
 
Special of 80386 registers
Special of 80386 registersSpecial of 80386 registers
Special of 80386 registers
Tanmoy Mazumder
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
Kashyap Shah
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
deval patel
 
Advanced microprocessor
Advanced microprocessorAdvanced microprocessor
Advanced microprocessor
Shehrevar Davierwala
 
DRAM
DRAMDRAM
Pentium processor
Pentium processorPentium processor
Pentium processor
Pranjali Deshmukh
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 

What's hot (20)

8155 PPI
8155 PPI8155 PPI
8155 PPI
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
 
8086 modes
8086 modes8086 modes
8086 modes
 
80386
8038680386
80386
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Microprocessor ppt
Microprocessor pptMicroprocessor ppt
Microprocessor ppt
 
Digital counter
Digital counter Digital counter
Digital counter
 
Special of 80386 registers
Special of 80386 registersSpecial of 80386 registers
Special of 80386 registers
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
Advanced microprocessor
Advanced microprocessorAdvanced microprocessor
Advanced microprocessor
 
DRAM
DRAMDRAM
DRAM
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 

Similar to Math coprocessor 8087

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
MalligaarjunanN
 
Lab manual mp
Lab manual mpLab manual mp
Lab manual mp
HarshitParkar6677
 
8085 microprocessor(1)
8085 microprocessor(1)8085 microprocessor(1)
8085 microprocessor(1)Reevu Pal
 
Math Co-processor 8087
Math Co-processor 8087Math Co-processor 8087
Math Co-processor 8087
Prothoma Diteeya
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
Futura infotech
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
Velalar College of Engineering and Technology
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers iiKumar Kumar
 
MicrocontrollersII.ppt
MicrocontrollersII.pptMicrocontrollersII.ppt
MicrocontrollersII.ppt
SatheeshMECE
 
introduction to Microcontrollers 8051.ppt
introduction to Microcontrollers 8051.pptintroduction to Microcontrollers 8051.ppt
introduction to Microcontrollers 8051.ppt
jaychoudhary37
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
Mani Kandan K
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
gomathy S
 
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
vtunotesbysree
 
Pin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptxPin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptx
YashArya40
 
Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 Microprocessor
Muthusamy Arumugam
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
Koteswari Kasireddy
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Waleed Khan
 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
Rishikesh Bhavsar
 
8087 COPROCESSOR connection with 8086 and other processors
8087 COPROCESSOR connection with 8086 and other processors8087 COPROCESSOR connection with 8086 and other processors
8087 COPROCESSOR connection with 8086 and other processors
DrVikasMahor
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
Nitish Nagar
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086ELIMENG
 

Similar to Math coprocessor 8087 (20)

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
 
Lab manual mp
Lab manual mpLab manual mp
Lab manual mp
 
8085 microprocessor(1)
8085 microprocessor(1)8085 microprocessor(1)
8085 microprocessor(1)
 
Math Co-processor 8087
Math Co-processor 8087Math Co-processor 8087
Math Co-processor 8087
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers ii
 
MicrocontrollersII.ppt
MicrocontrollersII.pptMicrocontrollersII.ppt
MicrocontrollersII.ppt
 
introduction to Microcontrollers 8051.ppt
introduction to Microcontrollers 8051.pptintroduction to Microcontrollers 8051.ppt
introduction to Microcontrollers 8051.ppt
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
VTU 4TH SEM CSE MICROPROCESSORS SOLVED PAPERS OF JUNE-2014 & JUNE-2015
 
Pin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptxPin Diagram and block diagram 8085 .pptx
Pin Diagram and block diagram 8085 .pptx
 
Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 Microprocessor
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
 
8087 COPROCESSOR connection with 8086 and other processors
8087 COPROCESSOR connection with 8086 and other processors8087 COPROCESSOR connection with 8086 and other processors
8087 COPROCESSOR connection with 8086 and other processors
 
8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar8086 Microprocessor by Nitish Nagar
8086 Microprocessor by Nitish Nagar
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
 

Recently uploaded

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 

Recently uploaded (20)

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 

Math coprocessor 8087

  • 1. Intel 8087 Math-Coprocessor DEPARTMENT OF BIOMEDICAL ENGINEERING , KUET Course teachers: Monika Gope Assistant Professor Institute of Information and Communication Technology Fazla Rabbi Mashrur 1515020 A PRESENTATION ON Presented by: 1 01
  • 2. Introduction ▪ 8087 was the first math coprocessor for 16-bit processors designed by Intel ▪ It was built to pair with 8086 and 8088. ▪ The purpose of 8087 was to speed up the computations involving floating point calculations. ▪ Addition, subtraction, multiplication and division of simple numbers is not the coprocessor’s job. ▪ It does all the calculations involving floating point numbers like scientific calculations and algebraic functions.
  • 3. Introduction ▪ By having a coprocessor, which performs all the calculations, it can free up a lot of CPU’s time. ▪ This would allow the CPU to focus all of its resources on the other functions it has to perform. ▪ This increases the overall speed and performance of the entire system. ▪ This coprocessor introduced about 60 new instructions available to the programmer.
  • 4. Data Type ▪ Binary Integer ▪ Word integer16 bitsDW(Define Word) ▪ Short integer 32 bitsDD(Define DoubleWord) ▪ Long Integer 64 bitsDQ(Define Quadword)
  • 5. Cont. Packed Decimal Numbers ▪ Packed Decimal80 bitsDT(Define TenBytes)
  • 6. Cont. Real Numbers ▪ Short real32 bitsDD(Define DoubleWord) ▪ Long Real 64 bitsDD(Define QuadWord) ▪ Temporary Real 80 bitsDT(Define TenBytes)
  • 7. Single bit Precision The single precision floating point unit is a packet of 32 bits, divided into three sections one bit, eight bits, and twenty-three bits
  • 8. Cont. Let’s convert and learn Pick a decimal number : 43.625 Binary of this number is :101011.101 represent it in floating point notation :1.01011101 * 25
  • 9. Cont. Sign Field The first section is one bit long, and is the sign bit. It is either 0 or 1; 0 indicates that the number is positive, 1 negative. The number 1.01011101 * 25 is positive, so this field would have a value of 0.
  • 10. Cont. Exponent Field The second section is eight bits long. In our 1.01011101 x 25 number, the eight-bit exponent field would have a decimal value of 5 + 127 = 132. In binary this is 10000100.
  • 11. Cont. Mantissa Field The third section is twenty-three bits long, and serves as the "mantissa." (The mantissa is sometimes called the significand.) The mantissa is merely the "other stuff" to the left of the 2aterm in our binary number represented in scientific notation. In our 1.01011101 * 25 number and our mantissa for our number would in fact be 01011101000000000000000.
  • 12. Internal Architecture ▪ 8087 coprocessor is designed to operate with 8086 microprocessor. ▪ The microprocessor and coprocessor can execute their respective instructions simultaneously. ▪ Microprocessor interprets and executes the normal instruction set and the coprocessor interprets and executes only the coprocessor instructions.
  • 13. Cont.
  • 14. Cont. ▪ The internal structure of 8087 coprocessor is divided into two major sections: ▪ Control Unit (CU) ▪ Numerical Execution Unit (NEU)
  • 15. Control Unit (CU) ▪ It interfaces coprocessor to the microprocessor system bus. ▪ It also synchronize the operation of the coprocessor and the microprocessor. ▪ This unit has a Control Word, Status Word and Data Buffer. ▪ If an instruction is ESC instruction, then coprocessor executes it. ▪ If not, then microprocessor executes.
  • 16. Numeric Execution Unit (NEU) ▪ This unit is responsible for executing all coprocessor instructions. ▪ It has an 8 register stack that holds the operands for instructions and result of instructions. ▪ The stack contains 8 registers that are 80-bits wide. ▪ Numeric data is transferred inside the coprocessor in two parts: ▪ 64-bit mantissa bus ▪ 16-bit exponent bus
  • 18. Cont. ▪ Status Register tells the overall status of 8087 coprocessor. ▪ It is a 16-bit register. ▪ It is accessed by executing the FSTSW instruction. ▪ This instruction stores the contents of status register into memory. ▪ Once the status is stored in memory, the bit positions of the status register can be examined.
  • 19. Cont. ▪ Busy: It indicates that the coprocessor is busy executing the task. ▪ Condition Codes (C0-C3): They indicate various conditions about the coprocessor. ▪ Top of Stack: It indicates a register as top of stack register, out of the eight stack registers. ▪ Exception Flag: It is set if any of the exception flag bits (SF, PR, UF, OF, ZD, DN, IO) are set.
  • 20. Cont. ▪ Stack Fault: It is not available in 8087. It is active only in 80387 and above. ▪ Precision: It indicates that the result has exceeded the selected precision. ▪ Underflow: It tells if the result is too small to fit in a register. ▪ Overflow: It tells if the result is too large to fit in a register.
  • 21. Cont. ▪ Zero Divide: It indicates that you try to divide a non-zero value by zero. ▪ Denormalized: It indicates that at least one of the operand is de- normalized. ▪ Invalid Operation: It indicates an invalid operation.
  • 23. Control Register ▪ Control Register controls the operating modes of 8087. ▪ It is also a 16-bit register. ▪ It performs rounding control and precision control. ▪ It is also used to do masking and unmasking of the exception bits that correspond to the rightmost six bits of the status register. ▪ FLDCW instruction is used to load the value into control register. 20-Nov-1023 www.eazynot es.com
  • 24. Control Register ▪ Rounding Control: It determines the type of rounding or truncating to be done. ▪ Precision Control: It sets the precision of the result. ▪ Exception Masks: It determines that whether an error effects the exception bits in the status register. ▪ If it is one, then the corresponding error is ignored. ▪ If it is zero and the corresponding error occurs, then it generates an interrupt, and the corresponding bit in status register is set. 24
  • 25. Tag Register ▪ Tag Register is used to indicate the contents of each register in the stack. ▪ There are total 8 tags (Tag 0 to Tag 7) in this register and each tag uses 2 bits to represent a value. ▪ Therefore, it is a 16-bit register. 20-Nov-1025 www.eazynot es.com Tag Values: 00 = Valid 01 = Zero 10 = Invalid 11 = Empty TAG 7 TAG 6 TAG 5 TAG 4 TAG 3 TAG 2 TAG 1 TAG 0
  • 26. Pin Diagram of 8087 20-Nov-1026 www.eazynot es.com 8 0 8 7 GND GND CLK NC NC AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 AD8 AD9 AD10 AD11 AD12 AD13 AD14 VCC AD15 A16/S3 A17/S4 A18/S5 A19/S6 BHE/S7 RQ/GT1 INT RQ/GT0 NC NC S2 S1 S0 QS0 QS1 BUSY READY RESET
  • 27. Interfacing of 8086 and 8087 ▪ 8087 can be connected with CPU only in max.mode,i.e when MN/MX pin is grounded. ▪ In max. mode, all control signals are derived using a bus controller. ▪ 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 QS0 and QS1 lines may be directly connected to corresponding pins in case of 8086/88 based systems. 20-Nov-1027 www.eazynot es.com
  • 28. Cont. ▪ The Request/Grant signal RQ/GT0 of 8087 is connected to RQ/GT1 of 8086. ▪ The clock pin of 8087 connected with CPU 8086/88 clock i/p. ▪ The interrupt o/p of 8087 is routed to 8086/88 via a programmable interrupt controller. ▪ The pins AD0-AD15,BHE/S7,RESET,A19/S6-A16/S3 r connected to corresponding pins of 8086 ▪ BUSY signal 8087 is connected to TEST pin of 8086.
  • 29. Cont. ▪ Interrupt o/p 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. ▪ SYNCHRONIZATION must be established between the processor and coprocessor in