The invention provides a method for OPC modeling. The procedure for tuning a
model involves collecting cross-section images and critical dimension measurements
through a matrix of focus and exposure settings. These images would then run through
a pattern recognition system to capture top critical dimensions, bottom critical
dimensions, resist loss, profile and the diffusion effects through focus and exposure.