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, pulses in the ns 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? Thanks in advance.