-
Notifications
You must be signed in to change notification settings - Fork 1
/
tb_gps_xo.vhd
executable file
·74 lines (65 loc) · 1.56 KB
/
tb_gps_xo.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 01.09.2022 08:08:47
-- Design Name:
-- Module Name: tb_gps_xo - Behavioral
-- Project Name:
-- Target Devices:
-- Tool Versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity tb_gps_xo is
end tb_gps_xo;
architecture Behavioral of tb_gps_xo is
component gps_xo is
generic (
clk_ext_freq : natural
);
Port ( clk_ext : in STD_LOGIC;
clk : out STD_LOGIC;
pps : in STD_LOGIC;
trim : out STD_LOGIC_VECTOR (15 downto 0);
locked : out STD_LOGIC);
end component;
signal clk_ext : STD_LOGIC;
signal clk : STD_LOGIC;
signal pps : STD_LOGIC := '0';
signal trim : STD_LOGIC_VECTOR (15 downto 0);
signal locked : STD_LOGIC;
begin
process
begin
clk_ext <= '1';
wait for 5 ns;
clk_ext <= '0';
wait for 5 ns;
end process;
process
begin
wait for 100000 ns;
pps <= '1';
wait for 100 ns;
pps <= '0';
end process;
i_gps_xo: gps_xo generic map (
clk_ext_freq => 10000000
) Port map (
clk_ext => clk_ext,
clk => clk,
pps => pps,
trim => trim,
locked => locked
);
end Behavioral;