A semiconductor device fabricated by irradiating a photomask with exposure light, transferring a mask pattern formed in the photomask onto a photoresist formed on a base substrate, and etching the base substrate using an etching mask obtained by developing the photoresist, the photomask being formed by correcting design pattern data including a plurality of design patterns, performing electron beam writing on an electron beam resist formed on a mask blank according to an electron beam writing pattern created on the basis of the corrected design pattern data, and etching the mask blank using an etching mask formed by developing the electron beam resist, wherein the step of correcting design pattern data comprises the substeps of:
- extracting an isolated pattern having an optically isolated portion from the mask pattern;
- and
- providing, in an adjacent pattern extending parallel to the isolated portion of the isolated pattern and having a terminal end, an extended portion extending in a direction along the isolated portion of the isolated pattern and extending from the terminal end next to the isolated portion of the isolated pattern.