To perform an inspection while compensating for delay variations by automatically adjusting a variable delay circuit using a low-speed versatile inspection apparatus, and to achieve cost reduction and improve inspection quality.
A digital circuit 10a comprising a clock operating circuit for outputting a data signal in accordance with input timing of a clock signal is provided with: variable delay circuits 13-1, 13-2 for giving a predetermined delay time to the clock signal or to the data signal; a delay circuit 14a having a delay time that is a predetermined multiple of a period of a test signal; and a data holding circuit for determining whether delay variation of the data signal is earlier or later than a predetermined time by comparing a time obtained by multiplying the period of the test signal by a predetermined factor with the delay time of the delay circuit 14a, and compensating for the delay time of the variable delay circuits 13-1, 13-2 on the basis of the result of the determination.