A method for detecting the presence of side lobes in a full chip layout
having a main pattern designed on a mask includes surrounding the main
pattern with a pattern of polygons or circles. A lithography rule check
is performed and uses the pattern of polygons or circles to search the
main pattern for side lobes. The location of a side lobe is preferably
marked with an error flag.