what is optical proximity correction
Optical proximity correction, or OPC, is a computational technique that deliberately distorts the pattern on a photomask in precise, calculated ways so that after light diffraction and other optical effects during lithography, the pattern that actually lands on the wafer matches the originally intended design — essentially pre-compensating for the ways light doesn't behave perfectly at extremely small scales.
```flowchart
{
"rows": [
{ "type": "nodes", "items": [
{ "title": "Intended chip pattern designed", "sub": "the shape the design actually calls for", "tone": "neutral" }
]},
{ "type": "arrow" },
{ "type": "group", "title": "Light diffraction distorts the pattern slightly", "items": [
{ "title": "Sharp corners round, thin features shrink", "sub": "unavoidable at extremely small feature sizes", "tone": "orange" }
]},
{ "type": "arrow" },
{ "type": "nodes", "items": [
{ "title": "OPC pre-compensates on the photomask itself", "sub": "so the final wafer pattern matches the original intent", "tone": "green" }
]}
]
}
```
**OPC exists because light doesn't behave perfectly at the extremely small scales modern chip features require, and something has to compensate for that.** At the tiny feature sizes used in modern chips, light diffraction causes patterns to come out slightly distorted from their intended shape — sharp corners round off, closely spaced features can blur together — rather than trying to eliminate these optical effects entirely, OPC calculates exactly how the intended pattern needs to be adjusted on the photomask so that, after diffraction happens, the resulting pattern on the wafer comes out correct.
```svg
```
| Step | What happens |
|---|---|
| Intended design | The chip pattern as originally designed |
| OPC calculation | Software calculates exact mask adjustments needed |
| Adjusted photomask | Mask pattern deliberately differs from the intended shape |
| Final wafer pattern | Diffraction during exposure produces the originally intended shape |
**Calculating OPC adjustments requires enormous computational resources, since every single feature across an entire chip design needs individually tailored correction.** Because the correct adjustment for any given feature depends on exactly which other features surround it, OPC software has to analyze and calculate corrections across the entire chip layout, feature by feature — this computational step has become so demanding that specialized software and substantial computing infrastructure are dedicated specifically to running OPC calculations before a chip design is ready for mask production.
**OPC has become more essential, not less, as chip features have continued shrinking well below the wavelength of the light used to pattern them.** As feature sizes shrink relative to the lithography wavelength, the gap between an intended design and what unadjusted light would actually produce grows larger, making some form of optical correction essential rather than optional — this is one of several computational techniques the industry has relied on to keep extracting usable precision from existing lithography light sources as physical feature sizes continue to shrink.
**OPC is just one of several "computational lithography" techniques that treat manufacturing as a software problem as much as a physical one.** Alongside other techniques for engineering how light behaves during exposure, OPC represents a broader shift toward using extensive computation to correct for physical imperfections in the manufacturing process itself — meaning some of the most important progress in modern chipmaking increasingly comes from software and algorithms just as much as from the physical machines doing the actual patterning.
Read optical proximity correction through a pre-compensation lens: rather than fighting the reality that light bends and distorts patterns at extremely small scales, OPC works with that reality, deliberately distorting the mask in the opposite direction so the two distortions cancel out and the wafer ends up with exactly the pattern the original design intended.