Microprocessor 8086 CHAPTER 1 (1) (1) - 1
Microprocessor 8086 CHAPTER 1 (1) (1) - 1
80386 1985 32-bit 4GB real, 64TB 132 20-33 Contains MMU on
virtual 14X14 MHz chip
PGA
80486 1989 32-bit 4GB real, 64TB 168 25-100 Contains MMU,
virtual 17X17 MHz cache and FPU, 1.2
PGA million transistors
Pentium Pro 1995 32-bit 64GB real, 36- 387 150- It is a data flow
bit address bus PGA 200 processor. It contains
MHz second level cache
also,3.3 V
Evolution of Microprocessors
Intel 4004
Intel 8008
Intel 80386.
`
Working of a Microprocessor
There are three steps that a microprocessor follows –
1. Fetch – The instructions are in storage from where the processor fetches them.
2. Decode – It then decodes the instruction to assign the task further.
3. Execute – The assigned tasks undergo execution and reach the output port
`
8086
FEATURES OF 8086
It requires +5v power supply.
It has 20 bit address bus, can access 220 =1MB memory location.
It has instruction queue which is capable of storing 6 instruction bytes from the
memory for faster processing.
CONCEPT OF PIPELINING
▪ Fetching the next instruction while the current instruction executes is known as pipelining
▪ it means When first instruction is getting executed, second one is decoded and third instruction code is
fetched from memory.
▪ It improves speed of operation to great extent.
`
▪ The Bus Interface Unit(BIU) fetches as many as 6 instruction bytes ahead of time from the memory and
these are held for execution unit in the (FIFO) group of registers called QUEUE.
▪ When the EU is ready for the next instruction, it simply reads the instruction from the QUEUE in the BIU.
To get total physical address, put the lower nibble 0H to segment address and add offset address
Draw 8086 architecture block diagram and state the functions of EU and BIU
Main components of BIU ( Bus interface Unit )
1) Address generation Unit :
`
Physical address = Segment address *10H + Offset address
2) Segment Registers :
Function s of BIU:
2) ALU :
3) Flag Registers
• Decodes instructions
• Executes instructions
FLAG REGISTER
Microprocessor 8086 has 16 bit flag register among which 9 bitsare active.
The purpose of flag register is to indicate the status of the processor Depending upon the value of result after any arithmetic and logical operation the flag
STATUS FLAG
2. Auxiliary Flag (AF): Set 1 if carry from lower nibble to upper nibble.
6. Overflow Flag (OF): Set 1 if result is too large to fit in the numbers bits available to
accommodate it.
`
CONTROL FLAGS
Trap flag:
When it is set Single steeping mode is enabled.
Direction Flag:
When it is set, Pointer is in auto decrementing mode in string operations otherwise it is auto incrementing
RISC CISC
1 Uses simple instruction Uses Complex instruction
2 Uses simple addressing mode Uses complex addressing mode
3 Uses instruction of same size Uses instruction of variable size
4 Execution time is almost same for all instruction Execution time is variable as per instruction size
5 Compiler design is simple Compiler design is complex
6 More register-oriented instruction More memory-oriented instruction
7 Total size of program is large Total size of program is small
Physical Address The address given by BIU is 20 bit called as physical address. It is the actual address of the memory location accessed by the microprocessor.
Effective Address:
Effective address or the offset address is the offset for a memory operand. It is an unassigned 16 bit number that gives the operand's distance in bytes from the
beginning of the segment.
when ALE =1 carries A15-A0 : Address (These are low order address bus)
when ALE =0 carries D15 -D0: DATA
A16-A19 / S3 - S6
High order address bus.
These are multiplexed with status signals.
when ALE =1 carries A16-A19 : Address
when ALE =0 carries S3-S6 : Status signals
S4 S3 Function
Extra segment
0 0
access
Stack segment
0 1
access
Code segment
1 0
access
`
Data segment
1 1
access
RD’ :
This is used for read operation.
It is active when low
READY :
This is the acknowledgement from the memory or slow device that they have completed the data
transfer.
when it is high it indicates that devices are ready for data transfer
when it is low it indicates that devices are not ready for data transfer
MN/MX’ : Minimum/Maximum. This pin signal indicates what mode the processor will operate in.
CLK :
This is clock input line
8086 does not have on chip clock generator so that external clock is provided
Clock Frequency for different version of 8086 is from 5MHz to 10 MHz.
RESET:
IT is active high
When it goes high ,microprocessor resets and it clears the flag registers and instruction QUEUE .
`