Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

From circuit to silicon

A schematic says what is connected. A layout says where everything physically is: the exact shapes the factory prints on the wafer. This chapter explains how chips are manufactured, how to read a layout, and why layouts must follow design rules.

How a chip is made

A chip is built on a silicon wafer in a sequence of several hundred process steps: oxidation, deposition, implantation, etching, polishing. The steps that make a pattern use photolithography: the wafer is coated with light-sensitive resist, exposed through a mask (a stencil of the pattern), developed, and then etched or implanted only where the resist is open.

Each mask is one layer of your layout. When you draw a rectangle on the poly layer, you are drawing part of the poly mask.

Cross-section of a CMOS inverter built up layer by layer

The animation builds the inverter from the CMOS logic chapter, one mask at a time:

#LayerWhat the fab does with itWhat it is for
1substrate(the starting wafer, p-type)Body of every NMOS
2nwellImplants n-type dopant deep into the substrateBody of the PMOS
3activeDefines where silicon stays exposed; elsewhere thick isolation oxide growsTransistors and substrate contacts
4polyPatterns polysilicon on the thin gate oxideGates (and short wires)
5nplus / pplusImplants n+ or p+ dopant into active not covered by polySources and drains, taps
6contactEtches holes in the oxide above active or poly, fills them with metalConnects metal1 down to silicon
7metal1Patterns the first metal layerLocal wiring
8via1Holes between metal1 and metal2Connects the metal layers
9metal2, metal3 …More metal layersLonger, wider routing and power

Self-aligned gates. Poly is patterned before the source/drain implant, so the gate itself blocks the implant: the source and drain end exactly at the gate edge. This is why, in layout, a transistor is simply poly crossing active. The channel length L is the width of the poly line; the channel width W is the width of the active under it.

Tools > Process Emulation in IC Studio runs a process flow on your own layout and draws the resulting cross-section along any cut line. See Process emulation.

Reading a layout

Rectangles drawn layer by layer, active, poly, contacts and metal, until they form an inverter

A layout is viewed from above, each layer in its own colour and fill pattern. The inverter in top view:

  • Two horizontal strips of active (green): the NMOS at the bottom, the PMOS at the top inside the n-well.
  • A vertical poly line (red) crosses both: it is the shared gate, the input.
  • Contacts (white squares) on the active either side of the gate connect to metal1 (blue): the sources go to the VDD and ground rails, the two drains are joined to form the output.
  • Taps: a p+ contact to the substrate (tied to ground) and an n+ contact to the n-well (tied to VDD) keep the bodies at the right voltage.

The Layout editor page explains each tool. Key facts:

  • Layout coordinates are in database units: 1 dbu = 1 nm in the generic technology, and y points up.
  • Labels on metal name the nets (in, out, vdd), which extraction and LVS use.
  • The Layers panel shows each layer’s GDS number; hover a layer to see its minimum width and spacing.

Design rules

The factory cannot print arbitrarily small or close shapes: light diffracts, masks misalign, etches undercut. Its limits are written as design rules. The most common:

RuleMeaningExample (generic 180 nm)
WidthSmallest size of a shapepoly ≥ 180 nm, metal1 ≥ 230 nm
SpacingSmallest gap between two shapes on one layerpoly ≥ 240 nm, metal1 ≥ 230 nm
EnclosureHow far one layer must extend around anotheractive around a contact ≥ 100 nm
ExtensionHow far poly must stick out beyond active (the “end cap”)so the gate cuts the channel completely
Area, densityMinimum area of a shape; fraction of the chip covered by a layerfor polishing (CMP) uniformity

Shapes that break a rule may still be manufactured, but with a high chance of shorts or opens. A layout must be DRC clean (Design Rule Check) before tape-out.

A spacing violation is marked, the shape is moved and the check comes back clean

IC Studio helps while you draw: DRD shows the spacing halo of a shape being drawn, Magnet snaps shapes to exactly the minimum spacing, and Live DRC marks violations as they appear. See Verification.

LVS: is it the same circuit?

A DRC-clean layout can still be the wrong circuit: a missing contact, two nets accidentally shorted, a transistor of the wrong width. LVS (Layout Versus Schematic) extracts the circuit from the layout (transistors where poly crosses active, nets from connected metal) and compares it with the schematic, device by device and net by net.

The layout and schematic netlists side by side, devices matched one by one

Two clean reports, DRC and LVS, are the minimum for any layout.

Parasitics: the wires are not ideal

In the schematic a wire is a perfect connection. In silicon it is a strip of metal with:

  • resistance: a few hundredths of an ohm per square for metal, several ohms per square for poly (that is why long wires are drawn in metal, not poly);
  • capacitance to the substrate below and to neighbouring wires (tens of aF per µm²);
  • the junction capacitance of every source and drain.

These parasitics slow circuits down. Parasitic extraction (PEX) computes them from the layout and adds them to the netlist, so a post-layout simulation shows the real speed.

Layout wires turn into an RC network of parasitics, and the resimulated waveform is slower

Layout techniques you will see

  • Shared diffusion: two transistors in series or with a common node share one source/drain region, saving area and capacitance. The generated layouts in IC Studio do this automatically.
  • Fingers: a wide transistor is split into several parallel narrow ones side by side, which shortens the gate and reduces drain capacitance.
  • Matching (analog): transistors that must be identical are interleaved (ABBA, common centroid) with dummies at the ends, so process gradients affect them equally. See Schematic-driven layout.
  • Guard rings and taps: rings of substrate or well contacts that collect stray currents and prevent latch-up, a parasitic thyristor in every CMOS process.

Schematic-driven layout

Drawing every rectangle by hand is slow. In schematic-driven layout the tool places the transistors of the schematic as PCells (parameterised cells that draw themselves from W and L), shows the connections still to make as flylines, and routes them.

Schematic devices become PCells in the layout with flylines, which are then routed

That is the flow of the next tutorial.

Try it: open the hand-drawn inverter of the demo:

ic-studio --demo --cell cmos_inverter --workspace layout

Find the active, poly, contacts and metal1 in the Layers panel; hide and show layers with the eye icons. Press Extract in the right panel and click a net in Nets to see which shapes form it. Press Run LVS: this layout has deliberate mistakes; click a difference to zoom to it.

Next: Hands-on: lay out the inverter.