1 |
37 |
wfjm |
-- $Id: sys_conf_sim.vhd 641 2015-02-01 22:12:15Z mueller $
|
2 |
|
|
--
|
3 |
|
|
-- Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
4 |
|
|
--
|
5 |
|
|
-- This program is free software; you may redistribute and/or modify it under
|
6 |
|
|
-- the terms of the GNU General Public License as published by the Free
|
7 |
|
|
-- Software Foundation, either version 2, or at your option any later version.
|
8 |
|
|
--
|
9 |
|
|
-- This program is distributed in the hope that it will be useful, but
|
10 |
|
|
-- WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
11 |
|
|
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
12 |
|
|
-- for complete details.
|
13 |
|
|
--
|
14 |
|
|
------------------------------------------------------------------------------
|
15 |
|
|
-- Package Name: sys_conf
|
16 |
|
|
-- Description: Definitions for tb_nexys4_dummy (for simulation)
|
17 |
|
|
--
|
18 |
|
|
-- Dependencies: -
|
19 |
|
|
-- Tool versions: ise 14.5-14.7; viv 2014.4; ghdl 0.29-0.31
|
20 |
|
|
-- Revision History:
|
21 |
|
|
-- Date Rev Version Comment
|
22 |
|
|
-- 2012-09-21 534 1.0 Initial version
|
23 |
|
|
------------------------------------------------------------------------------
|
24 |
|
|
|
25 |
|
|
library ieee;
|
26 |
|
|
use ieee.std_logic_1164.all;
|
27 |
|
|
|
28 |
|
|
use work.slvtypes.all;
|
29 |
|
|
|
30 |
|
|
package sys_conf is
|
31 |
|
|
|
32 |
|
|
constant sys_conf_clksys_vcodivide : positive := 1;
|
33 |
|
|
constant sys_conf_clksys_vcomultiply : positive := 8; -- vco 800 MHz
|
34 |
|
|
constant sys_conf_clksys_outdivide : positive := 10; -- sys 80 MHz
|
35 |
|
|
constant sys_conf_clksys_gentype : string := "MMCM";
|
36 |
|
|
constant sys_conf_clkser_vcodivide : positive := 1;
|
37 |
|
|
constant sys_conf_clkser_vcomultiply : positive := 12; -- vco 1200 MHz
|
38 |
|
|
constant sys_conf_clkser_outdivide : positive := 10; -- sys 120 MHz
|
39 |
|
|
constant sys_conf_clkser_gentype : string := "MMCM";
|
40 |
|
|
|
41 |
|
|
-- derived constants
|
42 |
|
|
|
43 |
|
|
constant sys_conf_clksys : integer :=
|
44 |
|
|
((100000000/sys_conf_clksys_vcodivide)*sys_conf_clksys_vcomultiply) /
|
45 |
|
|
sys_conf_clksys_outdivide;
|
46 |
|
|
constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
|
47 |
|
|
|
48 |
|
|
constant sys_conf_clkser : integer :=
|
49 |
|
|
((100000000/sys_conf_clkser_vcodivide)*sys_conf_clkser_vcomultiply) /
|
50 |
|
|
sys_conf_clkser_outdivide;
|
51 |
|
|
constant sys_conf_clkser_mhz : integer := sys_conf_clkser/1000000;
|
52 |
|
|
|
53 |
|
|
end package sys_conf;
|
54 |
|
|
|