The invention discloses a
clock frequency test method, circuit, medium and equipment, and the method comprises the steps: carrying out the frequency division
processing of a to-be-tested
clock signal and a reference
clock signal according to the to-be-tested
clock signal, an input frequency division coefficient A value and an input frequency division coefficient B value, and obtaining the to-be-tested
clock signal after frequency division and the reference
clock signal after frequency division; performing rising edge counting on the to-be-measured clock
signal after frequency division from zero to obtain a count value A, and performing rising edge counting on the reference clock signal after frequency division to obtain a count value B; the count value A is converted into a
Gray code, and after synchronization, the
Gray code is converted into a standard binary code A ';
processing the count value B to obtain a count value B ', taking the standard binary code A' and the count value B 'as a group of
synchronizing signals in a reference clock domain, comparing the values of the
synchronizing signals A' and B 'at the rising edge of each reference clock in the clock domain of the reference clock signal, and outputting a corresponding high level or low level according to the frequency of the clock to be measured and the calibration value.