Principle and design of 4-digit decimal frequency meter based on EDA