Intel 80386

































































Intel 80386

KL Intel i386DX.jpg
An Intel 80386DX 16 MHz processor with a gray ceramic heat spreader.

Produced From October 1985 to September 2007[1]
Common manufacturer(s)

  • Intel

  • AMD

  • IBM

Max. CPU clock rate
12 MHz to 40 MHz
Min. feature size 1.5µm to 1µm
Instruction set x86-32
Transistors 275,000
Data width 32 Bit
Address width 32/24 Bit
Socket(s)
  • PGA132
Predecessor Intel 80286
Successor Intel 80486
Co-processor Intel 80387
Package(s)
  • 132-pin PGA, 132-pin PQFP; SX variant: 88-pin PGA, 100-pin BQFP with 0.635mm pitch



Intel A80386DX-20 CPU Die Image




CPU Intel A80386DX-20 from 1988 year Sigma-Sigma no S-Spec no white logo


The Intel 80386, also known as i386 or just 386, is a 32-bit microprocessor introduced in 1985.[2] The first versions had 275,000 transistors[3] and were the CPU of many workstations and high-end personal computers of the time. As the original implementation of the 32-bit extension of the 80286 architecture,[4] the 80386 instruction set, programming model, and binary encodings are still the common denominator for all 32-bit x86 processors, which is termed the i386-architecture, x86, or IA-32, depending on context.


The 32-bit 80386 can correctly execute most code intended for the earlier 16-bit processors such as 8086 and 80286 that were ubiquitous in early PCs. (Following the same tradition, modern 64-bit x86 processors are able to run most programs written for older x86 CPUs, all the way back to the original 16-bit 8086 of 1978.) Over the years, successively newer implementations of the same architecture have become several hundreds of times faster than the original 80386 (and thousands of times faster than the 8086).[5] A 33 MHz 80386 was reportedly measured to operate at about 11.4 MIPS.[6]


The 80386 was introduced in October 1985, while manufacturing of the chips in significant quantities commenced in June 1986.[7][8]Mainboards for 80386-based computer systems were cumbersome and expensive at first, but manufacturing was rationalized upon the 80386's mainstream adoption. The first personal computer to make use of the 80386 was designed and manufactured by Compaq[9] and marked the first time a fundamental component in the IBM PC compatible de facto standard was updated by a company other than IBM.


In May 2006, Intel announced that 80386 production would stop at the end of September 2007.[10] Although it had long been obsolete as a personal computer CPU, Intel and others had continued making the chip for embedded systems. Such systems using an 80386 or one of many derivatives are common in aerospace technology and electronic musical instruments, among others. Some mobile phones also used (later fully static CMOS variants of) the 80386 processor, such as BlackBerry 950[11] and Nokia 9000 Communicator.




Contents






  • 1 Architecture


    • 1.1 Datatypes of 80386




  • 2 Example code


  • 3 Chip variants


    • 3.1 The 80386SX variant


    • 3.2 The i386SL variant




  • 4 Business importance


  • 5 Compatibles


  • 6 Early problems


  • 7 Pin-compatible upgrades


  • 8 Models and variants


    • 8.1 Early 5 V models


      • 8.1.1 80386DX


      • 8.1.2 RapidCAD




    • 8.2 Versions for embedded systems


      • 8.2.1 80376


      • 8.2.2 i386EX, i386EXTB and i386EXTC


      • 8.2.3 i386CXSA and i386SXSA (or i386SXTA)


      • 8.2.4 i386CXSB






  • 9 See also


  • 10 Notes and references


  • 11 External links





Architecture




Block diagram of the i386 microarchitecture






Intel 80386 registers
































































































31
...

15
...

07
...

00

(bit position)

Main registers (8/16/32 bits)
EAX
AX
AL

Accumulator register
EBX
BX
BL

Base register
ECX
CX
CL

Count register
EDX
DX
DL

Data register

Index registers (16/32 bits)
ESI
SI

Source Index
EDI
DI

Destination Index
EBP
BP

Base Pointer
ESP
SP

Stack Pointer

Program counter (16/32 bits)
EIP
IP

Instruction Pointer

Segment selectors (16 bits)
 
CS

Code Segment
 
DS

Data Segment
 
ES

Extra Segment
 
FS

F Segment
 
GS

G Segment
 
SS

Stack Segment















































Status register
 

17

16

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

00

(bit position)
 

V
R
0
N

IOPL

O

D

I

T

S

Z
0

A
0

P
1

C

EFlags


The processor was a significant evolution in the x86 architecture, and extended a long line of processors that stretched back to the Intel 8008. The predecessor of the 80386 was the Intel 80286, a 16-bit processor with a segment-based memory management and protection system. The 80386 added a 32-bit architecture and a paging translation unit, which made it much easier to implement operating systems that used virtual memory. It also offered support for register debugging.


The 80386 featured three operating modes: real mode, protected mode and virtual mode. The protected mode, which debuted in the 286, was extended to allow the 386 to address up to 4 GB of memory. The all new virtual 8086 mode (or VM86) made it possible to run one or more real mode programs in a protected environment, although some programs were not compatible.


The ability for a 386 to be set up to act like it had a flat memory model in protected mode despite the fact that it uses a segmented memory model in all modes would arguably be the most important feature change for the x86 processor family until AMD released x86-64 in 2003.


Several new instructions have been added to 386: BSF, BSR, BT, BTS, BTR, BTC, CDQ, CWDE, LFS, LGS, LSS, MOVSX, MOVZX, SETcc, SHLD, SHRD.


Two new segment registers have been added (FS and GS) for general-purpose programs, single Machine Status Word of 286 grew into eight control registers CR0–CR7. Debug registers DR0–DR7 were added for hardware breakpoints. New forms of MOV instruction are used to access them.


Chief architect in the development of the 80386 was John H. Crawford.[12] He was responsible for extending the 80286 architecture and instruction set to 32-bit, and then led the microprogram development for the 80386 chip.


The 80486 and P5 Pentium line of processors were descendants of the 80386 design.



Datatypes of 80386


The following data types are directly supported and thus implemented by one or more 80386 machine instructions; these data types are briefly described here.[13]:




  • Bit (boolean value), bit field (group of up to 32 bits) and bit string (up to 4 Gbit in length).


  • 8-bit integer (byte), either signed (range −128..127) or unsigned (range 0..255).


  • 16-bit integer, either signed (range −32,768..32,767) or unsigned (range 0..65,535).


  • 32-bit integer, either signed (range −231..231−1) or unsigned (range 0..232−1).


  • 64-bit integer, either signed (range −263..263−1) or unsigned (range 0..264−1).


  • Offset, a 16- or 32-bit displacement referring to a memory location (using any addressing mode).


  • Pointer, a 16-bit selector together with a 16- or 32-bit offset.


  • Character (8-bit character code).


  • String, a sequence of 8-, 16- or 32-bit words (up to 4 Gbit in length).[14]


  • BCD, decimal digits (0..9) represented by unpacked bytes.


  • Packed BCD, two BCD digits in one byte (range 0..99).



Example code


The following 80386 assembly source code is for a subroutine named _strtolower that copies a null-terminated ASCIIZ character string from one location to another, converting all alphabetic characters to lower case. The string is copied one byte (8-bit character) at a time.









The example code uses the EBP (base pointer) register to establish a call frame, an area on the stack that contains all of the parameters and local variables for the execution of the subroutine. This kind of calling convention supports reentrant and recursive code and has been used by Algol-like languages since the late 1950s. A flat memory model is assumed, specifically, that the DS and ES segments address the same region of memory.



Chip variants



The 80386SX variant




A surface-mount version of Intel 80386SX processor in a Compaq Deskpro computer. It is non-upgradable unless hot air circuit board rework is performed





Die of Intel 80386SX




80386SL from 1990


In 1988, Intel introduced the 80386SX, most often referred to as the 386SX, a cut-down version of the 80386 with a 16-bit data bus mainly intended for lower-cost PCs aimed at the home, educational, and small-business markets, while the 386DX would remain the high-end variant used in workstations, servers, and other demanding tasks. The CPU remained fully 32-bit internally, but the 16-bit bus was intended to simplify circuit-board layout and reduce total cost.[15] The 16-bit bus simplified designs but hampered performance. Only 24 pins were connected to the address bus, therefore limiting addressing to 16 MB,[16] but this was not a critical constraint at the time. Performance differences were due not only to differing data-bus widths, but also due to performance-enhancing cache memories often employed on boards using the original chip.


The original 80386 was subsequently renamed 80386DX to avoid confusion. However, Intel subsequently used the "DX" suffix to refer to the floating-point capability of the 80486DX. The 80387SX was an 80387 part that was compatible with the 386SX (i.e. with a 16-bit databus). The 386SX was packaged in a surface-mount QFP and sometimes offered in a socket to allow for an upgrade.



The i386SL variant


The i386SL was introduced as a power-efficient version for laptop computers. The processor offered several power-management options (e.g. SMM), as well as different "sleep" modes to conserve battery power. It also contained support for an external cache of 16 to 64 kB. The extra functions and circuit implementation techniques caused this variant to have over 3 times as many transistors as the i386DX. The i386SL was first available at 20 MHz clock speed,[17] with the 25 MHz model later added.[18]



Business importance


The first company to design and manufacture a PC based on the Intel 80386 was Compaq. By extending the 16/24-bit IBM PC/AT standard into a natively 32-bit computing environment, Compaq became the first third party to implement a major technical hardware advance on the PC platform. IBM was offered use of the 80386, but had manufacturing rights for the earlier 80286. IBM therefore chose to rely on that processor for a couple more years. The early success of the Compaq 386 PC played an important role in legitimizing the PC "clone" industry and in de-emphasizing IBM's role within it.


Prior to the 386, the difficulty of manufacturing microchips and the uncertainty of reliable supply made it desirable that any mass-market semiconductor be multi-sourced, that is, made by two or more manufacturers, the second and subsequent companies manufacturing under license from the originating company. The 386 was for a time (4.7 years) only available from Intel, since Andy Grove, Intel's CEO at the time, made the decision not to encourage other manufacturers to produce the processor as second sources. This decision was ultimately crucial to Intel's success in the market.[citation needed] The 386 was the first significant microprocessor to be single-sourced. Single-sourcing the 386 allowed Intel greater control over its development and substantially greater profits in later years.


AMD introduced its compatible Am386 processor in March 1991 after overcoming legal obstacles, thus ending Intel's 4.7-year monopoly on 386-compatible processors. From 1991 IBM also manufactured 386 chips under license for use only in IBM PCs and boards.



Compatibles




Intel i386 packaged by IBM



  • The AMD Am386SX and Am386DX were almost exact clones of the 80386SX and 80386DX. Legal disputes caused production delays for several years, but AMD's 40 MHz part eventually became very popular with computer enthusiasts as a low-cost and low-power alternative to the 25 MHz 486SX. The power draw was further reduced in the "notebook models" (Am386 DXL/SXL/DXLV/SXLV), which could operate with 3.3 V and were implemented in fully static CMOS circuitry.


  • Chips and Technologies Super386 38600SX and 38600DX were developed using reverse engineering. They sold poorly, due to some technical errors and incompatibilities, as well as their late appearance on the market. They were therefore short-lived products.


  • Cyrix Cx486SLC/Cx486DLC could be (simplistically) described as a kind of 386/486 hybrid chip that included a small amount of on-chip cache. It was popular among computer enthusiasts but did poorly with OEMs. The Cyrix Cx486SLC and Cyrix Cx486DLC processors were pin-compatible with 80386SX and 80386DX respectively. These processors were also manufactured and sold by Texas Instruments.


  • IBM 386SLC and 486SLC/DLC were variants of Intel's design which contained a large amount of on-chip cache (8 kB, and later 16 kB). The agreement with Intel limited their use to IBM's own line of computers and upgrade boards only, so they were not available on the open market.



Early problems


Intel originally intended for the 80386 to debut at 16 MHz. However, due to poor yields, it was instead introduced at 12 MHz.


Early in production, Intel discovered a marginal circuit that could cause a system to return incorrect results from 32-bit multiply operations. Not all of the processors already manufactured were affected, so Intel tested its inventory. Processors that were found to be bug-free were marked with a double sigma (ΣΣ), and affected processors were marked "16 BIT S/W ONLY". These latter processors were sold as good parts, since at the time 32-bit capability was not relevant for most users. Such chips are now extremely rare and became collectible.


The i387 math coprocessor was not ready in time for the introduction of the 80386, and so many of the early 80386 motherboards instead provided a socket and hardware logic to make use of an 80287. In this configuration the FPU would operate asynchronously to the CPU, usually with a clock rate of 10 MHz. The original Compaq Deskpro 386 is an example of such design. However, this was an annoyance to those who depended on floating-point performance, as the performance advantages of the 80387 over the 80287 were significant.




Pin-compatible upgrades




Typical 386 upgrade CPUs from Cyrix and Texas Instruments


Intel later offered a modified version of its 80486DX in 80386 packaging, branded as the Intel RapidCAD. This provided an upgrade path for users with 80386-compatible hardware. The upgrade was a pair of chips that replaced both the 80386 and 80387. Since the 80486DX design contained an FPU, the chip that replaced the 80386 contained the floating-point functionality, and the chip that replaced the 80387 served very little purpose. However, the latter chip was necessary in order to provide the FERR signal to the mainboard and appear to function as a normal floating-point unit.


Third parties offered a wide range of upgrades, for both SX and DX systems. The most popular ones were based on the Cyrix 486DLC/SLC core, which typically offered a substantial speed improvement due to its more efficient instruction pipeline and internal L1 SRAM cache. The cache was usually 1 kB, or sometimes 8 kB in the TI variant. Some of these upgrade chips (such as the 486DRx2/SRx2) were marketed by Cyrix themselves, but they were more commonly found in kits offered by upgrade specialists such as Kingston, Evergreen and Improve-It Technologies. Some of the fastest CPU upgrade modules featured the IBM SLC/DLC family (notable for its 16 kB L1 cache), or even the Intel 486 itself. Many 386 upgrade kits were advertised as being simple drop-in replacements, but often required complicated software to control the cache or clock doubling. Part of the problem was that on most 386 motherboards, the A20 line was controlled entirely by the motherboard with the CPU being unaware, which caused problems on CPUs with internal caches.


Overall, it was very difficult to configure upgrades to produce the results advertised on the packaging, and upgrades were often not very stable or not fully compatible.




Models and variants



Early 5 V models



80386DX




Intel 80386DX, 25 MHz


Original version, released in October 1985.



  • Capable of working with 16- or 32-bit external busses

  • Cache: depends on mainboard

  • Package: PGA-132 or PQFP-132

  • Process: First types CHMOS III, 1.5 µm, later CHMOS IV, 1 µm

  • Die size: 104 mm² (ca. 10 mm × 10 mm) in CHMOS III and 39 mm² (6 mm × 6.5 mm) in CHMOS IV.

  • Transistor count: 275,000[3]

  • Specified max clock: 12 MHz (early models), later 16, 20, 25 and 33 MHz




80386SX 16 MHz



RapidCAD



A specially packaged Intel 486DX and a dummy floating point unit (FPU) designed as pin-compatible replacements for an Intel 80386 processor and 80387 FPU.



Versions for embedded systems



80376



This was an embedded version of the 80386SX which did not support real mode and paging in the MMU.



i386EX, i386EXTB and i386EXTC





Intel i386EXTC, 25 MHz


System and power management and built in peripheral and support functions: Two 82C59A interrupt controllers; Timer, Counter (3 channels); Asynchronous SIO (2 channels); Synchronous SIO (1 channel); Watchdog timer (Hardware/Software); PIO. Usable with 80387SX or i387SL FPUs.



  • Data/address bus: 16 / 26 bits

  • Package: PQFP-132, SQFP-144 and PGA-168

  • Process: CHMOS V, 0.8 µm

  • Specified max clock:

    • i386EX: 16 MHz @2.7~3.3 volt or 20 MHz @3.0~3.6 volt or 25 MHz @4.5~5.5 volt

    • i386EXTB: 20 MHz @2.7~3.6 volt or 25 MHz @3.0~3.6 volt

    • i386EXTC: 25 MHz @4.5~5.5 volt or 33 MHz @4.5~5.5 volt





i386CXSA and i386SXSA (or i386SXTA)




Intel i386CXSA, 25 MHz


Transparent power management mode, integrated MMU and TTL compatible inputs (only 386SXSA). Usable with i387SX or i387SL FPUs.



  • Data/address bus: 16 / 26 bits (24 bits for i386SXSA)

  • Package: BQFP-100

  • Voltage: 4.5~5.5 volt (25 and 33 MHz); 4.75~5.25 volt (40 MHz)

  • Process: CHMOS V, 0.8 µm

  • Specified max clock: 25, 33, 40 MHz



i386CXSB


Transparent power management mode and integrated MMU. Usable with i387SX or i387SL FPUs.



  • Data/address bus: 16 / 26 bits

  • Package: BQFP-100

  • Voltage: 3.0 volt (16 MHz) or 3.3 volt (25 MHz)

  • Process: CHMOS V, 0.8 µm

  • Specified max clock: 16, 25 MHz



See also


  • List of Intel microprocessors



Notes and references





  1. ^ [1].


  2. ^ More precise: The 80386 architecture was presented in detail in 1984. Samples were produced in 1985 (possibly late 1984) with mass production and delivery of a final version starting in June 1986.


  3. ^ ab mit.edu—The Future of FPGAs (Cornell) October 11, 2012


  4. ^ Which itself was an extension of the 8086-architecture with advanced memory management functions and significantly better performance.


  5. ^ Not counting the advances in the performance of corresponding x87 implementations. These are measured in tens of thousands of times, compared to the original 8087, or hundreds of thousands of times compared to software implementations of floating point on the 8086.


  6. ^ "Intel Architecure Programming and Information". intel80386.com. Retrieved March 15, 2018..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  7. ^ Forbes, Jim (January 27, 1986). "Development of 386 Accelerating". InfoWorld. Vol. 8 no. 4. InfoWorld Media Group. p. 5. ISSN 0199-6649. Introduced October 1985, production chip in June 1986.


  8. ^ Ranney, Elizabeth (September 1, 1986). "ALR Hopes to Beat Completion With Fall Release of 386 Line". InfoWorld. Vol. 8 no. 35. InfoWorld Media Group. p. 5. ISSN 0199-6649. The first 80386 computers were released around October 1986.


  9. ^ "CRN". June 27, 2009. Retrieved March 15, 2018 – via archive.org.


  10. ^ "Intel cashes in ancient chips".


  11. ^ "RIM BlackBerry 950 Review - The Gadgeteer". the-gadgeteer.com. February 26, 2001. Retrieved March 15, 2018.


  12. ^ "Intel Fellow—John H. Crawford". Intel.com. August 16, 2010. Retrieved September 17, 2010.


  13. ^ A. K. Ray, K. M. Bhurchandi, “Advanced microprocessors and peripherals”.


  14. ^ El-ayat, K. A.; Agarwal, R. K. (December 1985). "The Intel 80386 - Architecture And Implementation". IEEE Micro. 5 (6): 4–22. doi:10.1109/mm.1985.304507. ISSN 0272-1732.


  15. ^ This was a similar approach to that used by Intel with the 8088, a derivative of the Intel 8086, that was used in the original IBM PC.


  16. ^ The 16 MB limit was similar to that of the 68000, a comparable processor.


  17. ^ "Chronology of Microprocessors (1990-1992)". Islandnet.com. Retrieved September 17, 2010.


  18. ^ Mueller, Scott. "Microprocessor Types and Specifications > P3 (386) Third-Generation Processors". InformIT. Retrieved September 17, 2010.




External links



  • Intel 80386 Programmer's Reference Manual 1986

  • Intel 80386 processor family

  • Intel 231746-001 Introduction to the 80386 Apr86 (April 1986) and Including the 80386 Data Sheet Intel 231630-002 80386 HIGH PERFORMANCE 32-BIT MICROPROCESSOR WITH INTEGRATED MEMORY MANAGEMENT—Data Sheet for 80386-12 and 80386-16

  • 1988 Intel Microprocessors and Peripheral Handbook Volume 1 Microprocessor including 80386 HIGH PERFORMANCE 32-BIT CHMOS MICROPROCESSOR WITH INTEGRATED MEMORY MANAGEMENT October 1987 Order Number: 231630-004

  • 1989 Intel Microprocessor and Peripheral Handbook Vol 1 Microprocessor including 386™ MICROPROCESSOR HIGH PERFORMANCE 32-BIT CHMOS MICROPROCESSOR WITH INTEGRATED MEMORY MANAGEMENT November 1988 Order Number: 231630-005

  • Detailed list of early 80386 steppings (revisions)










這個網誌中的熱門文章

12.7 cm/40 Type 89 naval gun

Rikitea

University of Vienna