A method of optimizing signal distribution through signal lines which connect a signal supplying source to a plurality of elements which are supplied with a signal from the signal supplying source through the signal lines, the method being utilized when designing a circuit including the signal supplying source and the plurality of elements, the method of optimizing the signal lines within the circuit, comprising:
- a step (S511) of determining whether or not the signal supplying source satisfies a fan-out restriction if the signal supplying source supplies a signal to all of the driven elements which are directly connected to the signal supplying source;
- a step (S514) of dividing the plurality of elements into a plural number of groups so that the fan-out restriction is satisfied in each of the groups and that each of the groups has the same or substantially the same load capacity, when it is determined in the determining step (S511) that the signal supplying source does not satisfy the fan-out restriction;
- and
- a step (S515) of inserting into each of the groups divided at the dividing step (S514), a buffer element having a size which makes the groups of elements satisfy the fan-out restriction;
- wherein
- the buffer element inserted at the buffer inserting step (S515) is regarded as a driven element, and then it is again determined in the determining step (S511) whether or not the signal supplying source satisfies the fan-out restriction if the signal supplying source supplies a signal to all of the driven elements which are directly connected to the signal supplying source, and
- the dividing step (S514) and the buffer inserting step (S515) are repeatedly carried out until the determining step (S511) delivers a determination that the signal supplying source satisfies the fan-out restriction.