A method for designing a mask for fabricating an integrated circuit is
provided wherein a mask layout that requires coloring, such as for
alternating phase shift, double-exposure and double-exposure-etch masks,
is organized into uncolored hierarchical design units. Prior to
modification by OPC, each hierarchical design unit is locally colored.
OPC is then performed on the locally colored hierarchical design unit.
The local coloring information for the hierarchically arranged
OPC-modified design unit may be discarded. After OPC modification, the
uncolored OPC-modified design units may be placed within the mask layout,
and the flattened data may be colored. Thus, turnaround time for mask
design is significantly improved since the numerically intensive OPC is
performed on the hierarchical data, avoiding the need to perform OPC on
flattened data, whereas the less intensive global coloring is performed
on flattened data.