Monday 18 February 2013

8086 Description


Pin diagram of 8086. The description follows it.

  • The Microprocessor 8086 is a 16-bit CPU available in different clock rates and packaged in a 40 pin CERDIP or plastic package.
  • The 8086 operates in single processor or multiprocessor configuration to achieve high performance. The pins serve a particular function in minimum mode (single processor mode ) and other function in maximum mode configuration (multiprocessor mode ).
  • The 8086 signals can be categorised in three groups. 
    • The first are the signal having common functions in minimum as well as maximum mode.
    • The second are the signals which have special functions for minimum mode 
    • The third are the signals having special functions for maximum mode.
  • The following signal descriptions are common for both modes.
  • AD15-AD0 : These are the time multiplexed memory I/O address and data lines.  
    • Address remains on the lines during T1 state, while the data is available on the data bus during T2, T3, Tw and T4. These lines are active high and float to a tristate during interrupt acknowledge and local bus hold acknowledge cycles.
  • A19/S6,A18/S5,A17/S4,A16/S3 : These are the time multiplexed address and status lines. 
    • During T1 these are the most significant address lines for memory operations. 
    • During I/O operations, these lines are low. 
    • During memory or I/O operations, status information is available on those lines for T2,T3,Tw and T4.  
    • The status of the interrupt enable flag bit is updated at the beginning of each clock cycle.
    • The S4 and S3 combinely indicate which segment register is presently being used for memory accesses as in below fig.
    • These lines float to tri-state off during the local bus hold acknowledge. The status line S6 is always low.
    • The address bit are separated from the status bit using latches controlled by the ALE signal.
S4
S3
Indication
0
0
1
1
0
0
1
0
1
0
1
0
1
0
Alternate Data
Stack
Code or None
Data
Whole word
Upper byte from or to even address
Lower byte from or to even address
  • BHE/S7 : The bus high enable is used to indicate the transfer of data over the higher order ( D15-D8 ) data bus as shown in table. It goes low for the data transfer over D15-D8 and is used to derive chip selects of odd address memory bank or peripherals. BHE is low during T1 for read, write and interrupt acknowledge cycles, whenever a byte is to be transferred on higher byte of data bus. The status information is available during T2, T3 and T4. The signal is active low and tristated during hold. It is low during T1 for the first pulse of the interrupt acknowledge cycle.
  • RD – Read : This signal on low indicates the peripheral that the processor is performing memory or I/O read operation. RD is active low and shows the state for T2, T3, Tw of any read cycle. The signal remains tristated during the hold acknowledge.
  • READY : This is the acknowledgement from the slow device or memory that they have completed the data transfer. The signal made available by the devices is synchronized by the 8284A clock generator to provide ready input to the 8086. the signal is active high.
  • INTR-Interrupt Request : This is a triggered input. This is sampled during the last clock cycles of each instruction to determine the availability of the request. If any interrupt request is pending, the processor enters the interrupt acknowledge cycle. This can be internally masked by resulting the interrupt enable flag. This signal is active high and internally synchronized.
  • TEST : This input is examined by a ‘WAIT’ instruction. If the TEST pin goes low, execution will continue, else the processor remains in an idle state. The input is synchronized internally during each clock cycle on leading edge of clock.
  • CLK- Clock Input : The clock input provides the basic timing for processor operation and bus control activity. Its an asymmetric square wave with 33% duty cycle.
Figure shows the Pin functions of 8086.

The following pin functions are for the minimum mode operation of 8086.
  • M/IO – Memory/IO : This is a status line logically equivalent to S2 in maximum mode. When it is low, it indicates the CPU is having an I/O operation, and when it is high, it indicates that the CPU is having a memory operation. This line becomes active high in the previous T4 and remains active till final T4 of the current cycle. It is tristated during local bus “hold acknowledge “.
  • INTA – Interrupt Acknowledge : This signal is used as a read strobe for interrupt acknowledge cycles. i.e. when it goes low, the processor has accepted the interrupt.
  • ALE – Address Latch Enable : This output signal indicates the availability of the valid address on the address/data lines, and is connected to latch enable input of latches. This signal is active high and is never tristated.
  • DT/R – Data Transmit/Receive: This output is used to decide the direction of data flow through the transreceivers (bidirectional buffers). When the processor sends out data, this signal is high and when the processor is receiving data, this signal is low.
  • DEN – Data Enable : This signal indicates the availability of valid data over the address/data lines. It is used to enable the transreceivers ( bidirectional buffers ) to separate the data from the multiplexed address/data signal. It is active from the middle of T2 until the middle of T4. This is tristated during ‘ hold acknowledge’ cycle.
  • HOLD, HLDA- Acknowledge : When the HOLD line goes high, it indicates to the processor that another master is requesting the bus access. The processor, after receiving the HOLD request, issues the hold acknowledge signal on HLDA pin, in the middle of the next clock cycle after completing the current bus cycle.
  • At the same time, the processor floats the local bus and control lines. When the processor detects the HOLD line low, it lowers the HLDA signal. HOLD is an asynchronous input, and is should be externally synchronized. If the DMA request is made while the CPU is performing a memory or I/O cycle, it will release the local bus during T4 provided :
1.The request occurs on or before T2 state of the current cycle.
2.The current cycle is not operating over the lower byte of a word.
3.The current cycle is not the first acknowledge of an interrupt acknowledge sequence.
4. A Lock instruction is not being executed.
The following pin functions are applicable for maximum mode operation of 8086.
  • S2, S1, S0 – Status Lines : These are the status lines which reflect the type of operation, being carried out by the processor. These become activity during T4 of the previous cycle and active during T1 and T2 of the current bus cycles.
  • LOCK : This output pin indicates that other system bus master will be prevented fromgaining the system bus, while the LOCK signal is low. The LOCK signal is activated by the ‘LOCK’ prefix instruction and remains active until the completion of the next instruction. When the CPU is executing a critical instruction which requires the system bus, the LOCK prefix instruction ensures that other processors connected in the system will not gain the control of the bus.
The 8086, while executing the prefixed instruction, asserts the bus lock signal output, which may be connected to an external bus controller. By prefetching the instruction, there is a considerable speeding up in instruction execution in 8086. This is known as instruction pipelining.
S2
S1
S0
Indication
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Interrupt Acknowledge
Read I/O port
Write I/O port
Halt
Code Access
Read Memory
Write Memory
Passive
  • At the starting the CS:IP is loaded with the required address from which the execution is to be started. Initially, the queue will be empty an the microprocessor starts a fetch operation to bring one byte (the first byte) of instruction code, if the CS:IP address is odd or two bytes at a time, if the CS:IP address is even.
  • The first byte is a complete opcode in case of some instruction (one byte opcode instruction) and is a part of opcode, in case of some instructions ( two byte opcode instructions), the remaining part of code lie in second byte.
  • The second byte is then decoded in continuation with the first byte to decide the instruction length and the number of subsequent bytes to be treated as instruction data. The queue is updated after every byte is read from the queue but the fetch cycle is initiated by BIU only if at least two bytes of the queue are empty and the EU may be concurrently executing the fetched instructions.
  • The next byte after the instruction is completed is again the first opcode byte of the next instruction. A similar procedure is repeated till the complete execution of the program. The fetch operation of the next instruction is overlapped with the execution of the current instruction. As in the architecture, there are two separate units, namely Execution unit and Bus interface unit.
  • While the execution unit is busy in executing an instruction, after it is completely decoded, the bus interface unit may be fetching the bytes of the next instruction from memory, depending upon the queue status.
QS1
QS0
Indication
0
0
1
1
0
1
0
1
No Operation
First Byte of the opcode from the queue
Empty Queue
Subsequent Byte from the Queue
  • RQ/GT0, RQ/GT1 – Request/Grant : These pins are used by the other local bus master in maximum mode, to force the processor to release the local bus at the end of the processor current bus cycle.
  • Each of the pin is bidirectional with RQ/GT0 having higher priority than RQ/GT1. RQ/GT pins have internal pull-up resistors and may be left unconnected. Request/Grant sequence is as follows:
1.A pulse of one clock wide from another bus master requests the bus access to 8086.
2.During T4(current) or T1(next) clock cycle, a pulse one clock wide from 8086 to the requesting master, indicates that the 8086 has allowed the local bus to float and that it will enter the ‘hold acknowledge’ state at next cycle. The CPU bus interface unit is likely to be disconnected from the local bus of the system.
3.A one clock wide pulse from the another master indicates to the 8086 that the hold request is about to end and the 8086 may regain control of the local bus at the next clock cycle. Thus each master to master exchange of the local bus is a sequence of 3 pulses. There must be at least one dead clock cycle after each bus exchange. The request and grant pulses are active low.For the bus request those are received while 8086 is performing memory or I/O cycle, the granting of the bus is governed by the rules as in case of HOLD and HLDA in minimum mode.

How to Write IEEE Project


Sample IEEE Paper for A4 Page Size
First Author#, Second Author*, Third Author#
#First-Third Department, First-Third University
Address

1first.author@first-third.edu
3third.author@first-third.edu
*Second Company
 Address Including Country Name

2second.author@second.com


Abstract— This document gives formatting instructions for authors preparing papers for publication in the Proceedings of an IEEE conference.  The authors must follow the instructions given in the document for the papers to be published.  You can use this document as both an instruction set and as a template into which you can type your own text.

KeywordsInclude at least 5 keywords or phrases
I.      Introduction
This document is a template.  An electronic copy can be downloaded from the conference website.  For questions on paper guidelines, please contact the conference publications committee as indicated on the conference website.  Information about final paper submission is available from the conference website.
II.   Page Layout
An easy way to comply with the conference paper formatting requirements is to use this document as a template and simply type your text into it.
A.    Page Layout
Your paper must use a page size corresponding to A4 which is 210mm (8.27") wide and 297mm (11.69") long.  The margins must be set as follows:
·     Top = 19mm (0.75")
·     Bottom = 43mm (1.69")
·     Left = Right = 14.32mm (0.56")
Your paper must be in two column format with a space of 4.22mm (0.17") between columns.
III. Page Style
All paragraphs must be indented.  All paragraphs must be justified, i.e. both left-justified and right-justified.
A.    Text Font of Entire Document
The entire document should be in Times New Roman or Times font.  Type 3 fonts must not be used.  Other font types may be used if needed for special purposes.
Recommended font sizes are shown in Table 1.
B.    Title and Author Details
Title must be in 24 pt Regular font.  Author name must be in 11 pt Regular font.  Author affiliation must be in 10 pt Italic.  Email address must be in 9 pt Courier Regular font.

TABLE I
Font Sizes for Papers
Font Size
Appearance (in Time New Roman or Times)
Regular
Bold
Italic
8
table caption (in Small Caps),
figure caption,
reference item

reference item (partial)
9
author email address (in Courier),
cell in a table
abstract body
abstract heading (also in Bold)
10
level-1 heading (in Small Caps),
paragraph

level-2 heading,
level-3 heading,
author affiliation
11
author name


24
title



All title and author details must be in single-column format and must be centered.
Every word in a title must be capitalized except for short minor words such as “a”, “an”, “and”, “as”, “at”, “by”, “for”, “from”, “if”, “in”, “into”, “on”, “or”, “of”, “the”, “to”, “with”.
Author details must not show any professional title (e.g. Managing Director), any academic title (e.g. Dr.) or any membership of any professional organization (e.g. Senior Member IEEE).
To avoid confusion, the family name must be written as the last part of each author name (e.g. John A.K. Smith).
Each affiliation must include, at the very least, the name of the company and the name of the country where the author is based (e.g. Causal Productions Pty Ltd, Australia).
Email address is compulsory for the corresponding author.
C.    Section Headings
No more than 3 levels of headings should be used.  All headings must be in 10pt font.  Every word in a heading must be capitalized except for short minor words as listed in Section III-B.
Level-1 Heading:  A level-1 heading must be in Small Caps, centered and numbered using uppercase Roman 
1)  numerals.  For example, see heading “III. Page Style” of this document.  The two level-1 headings which must not be numbered are “Acknowledgment” and “References”.
2)  Level-2 Heading:  A level-2 heading must be in Italic, left-justified and numbered using an uppercase alphabetic letter followed by a period.  For example, see heading “C. Section Headings” above.
3)  Level-3 Heading:  A level-3 heading must be indented,  in Italic and numbered with an Arabic numeral followed by a right parenthesis. The level-3 heading must end with a colon.  The body of the level-3 section immediately follows the level-3 heading in the same paragraph.  For example, this paragraph begins with a level-3 heading.
A.    Figures and Tables
Figures and tables must be centered in the column.  Large figures and tables may span across both columns.  Any table or figure that takes up more than 1 column width must be positioned either at the top or at the bottom of the page.
Graphics may be full color.  All colors will be retained on the CDROM.  Graphics must not use stipple fill patterns because they may not be reproduced properly.  Please use only SOLID FILL colors which contrast well both on screen and on a black-and-white hardcopy, as shown in Fig. 1.

A sample line graph using colors which contrast well both on screen and on a black-and-white hardcopy

·     the colors used in each figure contrast well,
·     the image used in each figure is clear,
·     all text labels in each figure are legible.
B.    Figure Captions
Figures must be numbered using Arabic numerals.  Figure captions must be in 8 pt Regular font.  Captions of a single line (e.g. Fig. 2) must be centered whereas multi-line captions must be justified (e.g. Fig. 1).  Captions with figure numbers must be placed after their associated figures, as shown in     Fig. 1.

C.    Table Captions
Tables must be numbered using uppercase Roman numerals.  Table captions must be centred and in 8 pt Regular font with Small Caps.  Every word in a table caption must be capitalized except for short minor words as listed in Section III-B.  Captions with table numbers must be placed before their associated tables, as shown in Table 1.

D.    Page Numbers, Headers and Footers
Page numbers, headers and footers must not be used.
E.    Links and Bookmarks
All hypertext links and section bookmarks will be removed from papers during the processing of papers for publication.  If you need to refer to an Internet email address or URL in your paper, you must type out the address or URL fully in Regular font.
A.    Table Captions
Tables must be numbered using uppercase Roman numerals.  Table captions must be centred and in 8 pt Regular font with Small Caps.  Every word in a table caption must be capitalized except for short minor words as listed in Section III-B.  Captions with table numbers must be placed before their associated tables, as shown in Table 1.
B.    Page Numbers, Headers and Footers
Page numbers, headers and footers must not be used.
C.    Links and Bookmarks
All hypertext links and section bookmarks will be removed from papers during the processing of papers for publication.  If you need to refer to an Internet email address or URL in your paper, you must type out the address or URL fully in Regular font.

D.    References
The heading of the References section must not be numbered.  All reference items must be in 8 pt font.  Please use Regular and Italic styles to distinguish different fields as shown in the References section.  Number the reference items consecutively in square brackets (e.g. [1]). 
When referring to a reference item, please simply use the reference number, as in [2].  Do not use “Ref. [3]” or “Reference [3]” except at the beginning of a sentence, e.g.  “Reference [3] shows …”.  Multiple references are each numbered with separate brackets (e.g. [2], [3], [4]–[6]).
Examples of reference items of different categories shown in the References section include:
·     example of a book in [1]
·     example of a book in a series in [2]
·     example of a journal article in [3]
·     example of a conference paper in [4]
·     example of a patent in [5]
·     example of a website in [6]
·     example of a web page in [7]
·     example of a databook as a manual in [8]
·     example of a datasheet in [9]
·     example of a master’s thesis in [10]
·     example of a technical report in [11]
·     example of a standard in [12]
I.      Conclusions
The version of this template is V2.  Most of the formatting instructions in this document have been compiled by Causal Productions from the IEEE LaTeX style files.  Causal Productions offers both A4 templates and US Letter templates for LaTeX and Microsoft Word.  The LaTeX templates depend on the official IEEEtran.cls and IEEEtran.bst files, whereas the Microsoft Word templates are self-contained.  Causal Productions has used its best efforts to ensure that the templates have the same appearance.
Acknowledgment
The heading of the Acknowledgment section and the References section must not be numbered.
Causal Productions wishes to acknowledge Michael Shell and other contributors for developing and maintaining the IEEE LaTeX style files which have been used in the preparation of this template.  To see the list of contributors, please refer to the top of file IEEETran.cls in the IEEE LaTeX distribution.
References
[1]        S. M. Metev and V. P. Veiko, Laser Assisted Microtechnology, 2nd ed., R. M. Osgood, Jr., Ed.  Berlin, Germany: Springer-Verlag, 1998.
[2]        J. Breckling, Ed., The Analysis of Directional Time Series: Applications to Wind Speed and Direction, ser. Lecture Notes in Statistics.  Berlin, Germany: Springer, 1989, vol. 61.
[3]        S. Zhang, C. Zhu, J. K. O. Sin, and P. K. T. Mok, “A novel ultrathin elevated channel low-temperature poly-Si TFT,” IEEE Electron Device Lett., vol. 20, pp. 569–571, Nov. 1999.
[4]        M. Wegmuller, J. P. von der Weid, P. Oberson, and N. Gisin, “High resolution fiber distributed measurements with coherent OFDR,” in Proc. ECOC’00, 2000, paper 11.3.4, p. 109.
[5]        R. E. Sorace, V. S. Reinhardt, and S. A. Vaughn, “High-speed digital-to-RF converter,” U.S. Patent 5 668 842, Sept. 16, 1997.
[6]         (2002) The IEEE website. [Online]. Available: http://www.ieee.org/
[7]        M. Shell. (2002) IEEEtran homepage on CTAN. [Online]. Available: http://www.ctan.org/tex-archive/macros/latex/contrib/supported/IEEEtran/
[8]        FLEXChip Signal Processor (MC68175/D), Motorola, 1996.
[9]        “PDCA12-70 data sheet,” Opto Speed SA, Mezzovico, Switzerland.
[10]     A. Karnik, “Performance of TCP congestion control with rate feedback: TCP/ABR and rate adaptive TCP/IP,” M. Eng. thesis, Indian Institute of Science, Bangalore, India, Jan. 1999.
[11]     J. Padhye, V. Firoiu, and D. Towsley, “A stochastic model of TCP Reno congestion avoidance and control,” Univ. of Massachusetts, Amherst, MA, CMPSCI Tech. Rep. 99-02, 1999.
Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specificatio