A method of generating a layout for a semiconductor device array is
provided. A first layout is provided, comprising an active conductive
feature, a boundary area surrounding the active conductive feature, and
an open area other than the active conductive feature and the boundary
area. A plurality of dummy templates of different pattern densities are
provided, each of which comprises a plurality of dummy seeds. A second
layout is generated by adding the dummy seeds on the open area according
to at least one of the dummy templates.