A method for checking a length of a wire path between a capacitor and a
via of the PCB design obtains length criteria and information on
capacitors from a database, selects one or more capacitors and pins of
the selected capacitors from the obtained information on capacitors and
selects one of the length criteria, and obtains positions of selected
capacitors and positions of vias corresponding to the positions of
selected capacitors from the database. The method further calculates each
length of a wire path between a selected capacitor and a corresponding
via according to the position of the capacitor and the position of the
via, determines whether each calculated length of a wire path between a
selected capacitor and a corresponding via is acceptable according to a
comparison with the selected length criterion, and outputs check results
of the determining step.