The electronic device includes a plurality of layout regions each
including a plurality of patterns defined by a buried structure buried in
a substrate. For each of the layout regions, in each of the layout
regions, the minimum space between the patterns, and a maximum area
percentage allowed for the patterns in the layout region are defined
based on a size of the layout region. In larger one of the layout
regions, the minimum space between the patterns in the region is set
larger.