PoC.misc.FrequencyMeasurement
This module counts 1 second in a reference timer at reference clock. This reference time is used to start and stop a timer at input clock. The counter value is the measured frequency in Hz.
Entity Declaration:
1 port (
2 Reference_Clock : in std_logic;
3 Input_Clock : in std_logic;
4
5 Start : in std_logic;
6 Done : out std_logic;
7 Result : out T_SLV_32
8 );
9end entity;
10
11
12architecture rtl of misc_FrequencyMeasurement is
13 constant TIMEBASE_COUNTER_MAX : positive := TimingToCycles(ite(SIMULATION, 10.0e-6, 1.0), REFERENCE_CLOCK_FREQ);