Shifters on a phase shifting mask (PSM) can be intelligently assigned
their corresponding phase. Specifically, the phase of a shifter can be
assigned based on simulating the contrast provided by each phase for that
shifter. The higher the contrast, the better the lithographic performance
of the shifter. Therefore, the phase providing the higher contrast can be
selected for that shifter. To facilitate this phase assignment, a
pre-shifter can be placed relative to a feature on the layout. The
pre-shifter can then be divided into a plurality of shifter tiles for
contrast analysis. Model-based data conversion allows for a comprehensive
solution including both phase assignment as well as optical proximity
correction.