I need a circuit that compares two periodic pulse signals and outputs a low or high when the frequency of one is higher than the other.
The two input signals are coming from CMOS 74HC devices. The width of the pulses is fixed and in the ns range (so duty cycle is not variable so to speak), and the periodsfrequencies of either of the inputs are anywhere from 20 Hz-20 kHz (audio range).
I prefer to do this entirely with 74HC devices and not some specialized IC if possible. Maybe some such circuit already exists and I don't know to call it?