Unusual circuits in the Intel 386's standard cell logic
Ken Shirriff · 2025年11月22日
AI 摘要 AI 生成,可能有误
The article examines the standard cell circuitry in the Intel 386 processor, which Intel adopted to meet its schedule by using automated 'place and route' layout software instead of manual transistor layout. The author identifies several unexpected circuits in these automatically generated regions: surprisingly large multiplexers built from CMOS switches, a single 'misplaced' transistor sitting outside the standard cell columns (likely a manual bug fix), and what initially appeared to be inverters but turned out not to be.
I've been studying the standard cell circuitry in the Intel 386 processor recently.
The 386, introduced in 1985, was Intel's most complex processor at the time, containing 285,000 transistors.
Intel's existing design techniques couldn't handle this complexity and the chip began to fall behind schedule.
To meet the schedule, the 386 team started using a technique called standard cell logic.
Instead of laying out each transistor manually, the layout process was performed by a computer.
The idea behind standard cell logic is to create standardized circuits (standard cells) for each type of logic element, such
as an inverter, NAND gate, or latch.
You feed your circuit description into software that selects the necessary cells,
positions these cells into columns, and then routes the wiring between the cells.
This "automatic place and route" process creates the chip layout much faster than manual layout.
However, switching to standard cells was a risky decision since if the software couldn't create a
dense enough layout, the chip couldn't be manufactured.
But in the end, the 386 finished ahead of schedule, an almost unheard-of accomplishment.1
The 386's standard cell circuitry contains a few circuits that I didn't expect.
In this blog post, I'll take a quick look at some of these circuits:
surprisingly large multiplexers, a transistor that doesn't fit into the standard cell layout,
and inverters that turned out not to be inverters.
(If you want more background on standard cells in the 386, see my earlier post,
"Reverse engineering standard cell logic in the Intel 386 processor".)
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要While examining unidentified vintage ICs, the author reverse engineered a chip under a microscope and determined it was the Signetics ST680A from 1965, a quad NAND gate implemented with diode-transistor logic (DTL), part of the first IC family offered in a plastic DIP package. The article explains the chip's construction from bipolar transistors, diodes, and serpentine resistors, as well as how DTL NAND gates operate. Notably, the same silicon die was reused for at least three different chips (the 680A, 670A, and 616A) by applying different metal layers, a cost-saving technique Signetics used for both semi-custom and standard ICs.
AI 摘要This article examines the Intel 8087, a 1980 floating-point coprocessor that dramatically sped up arithmetic in the IBM PC, focusing on how its microcode and circuitry implement floating-point addition and subtraction. By decapping the chip and studying its die, the author explains key components such as the microcode ROM, the 80-bit datapath, the 69-bit integer adder, and the bit shifter. It also walks through the algorithm: aligning exponents by shifting significands, performing integer addition or subtraction, normalizing the result, and handling special cases like zero results, negative outcomes, infinities, and denormalized values.
AI 摘要The author analyzed a mysterious Harris IC labeled 'F1-10-5' and identified it as Harris's 1985 version of the MF10 switched-capacitor filter chip from National Semiconductor. The chip implements analog filters by rapidly switching 72 small polysilicon capacitors in and out of the circuit with CMOS switches, replacing resistors so that filter accuracy depends on stable capacitance ratios and a precise clock frequency rather than on-chip component values. Using a state variable filter design with three op-amps per filter, the chip provides high-pass, band-pass, and low-pass outputs while employing isolation rings, shield layers, and other techniques to suppress clock switching noise.
AI 摘要The article describes how the author reverse-engineered Intel's vintage 8087 floating-point chip—by examining its die and microcode—to explain the algorithm behind its FPTAN tangent instruction. The 8087 combined the CORDIC algorithm (16 iterations using precomputed special angles) with a Padé approximant rational polynomial (3x/(3-x²)) applied to the tiny residual angle, achieving 64-bit accuracy while avoiding a costly division since the instruction returns separate numerator and denominator values. The three-phase process—pseudo-division to determine CORDIC decision bits, rational approximation of the remaining angle, and pseudo-multiplication to apply the rotations—let the chip compute a tangent in 90 microseconds versus 13,000 microseconds on the 8086.
AI 摘要This article examines the microcode of Intel's 8087 floating-point coprocessor, focusing on the FSCALE instruction, which scales a floating-point number by a power of two much faster than a full multiplication. Although FSCALE seems trivial—just adding an integer to the number's exponent—the author, working with the Opcode Collective to reverse-engineer the chip's microcode, finds it uses over 140 micro-instructions and three levels of subroutine calls to handle special cases such as zeros, NaNs, denormals, and overflow/underflow. Along the way, the analysis illustrates key parts of the 8087's datapath, including the shifter, adder, and exponent converter, and reveals a hidden feature of the chip.