Further, after a power source terminal position has been determined based on the first to third examples of a method of determining a power source terminal position, it is possible to suitably move the positions of power source terminals along the periphery of the logic-undecided functional block and to move the positions of power source wiring 97 and 98 as shown in FIG. 29.