1 |
29 |
wfjm |
-- $Id: sys_conf.vhd 649 2015-02-21 21:10:16Z mueller $
|
2 |
21 |
wfjm |
--
|
3 |
|
|
-- Copyright 2012-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 sys_tst_fx2loop_ic_n3 (for synthesis)
|
17 |
|
|
--
|
18 |
|
|
-- Dependencies: -
|
19 |
29 |
wfjm |
-- Tool versions: xst 13.3-14.7; ghdl 0.29-0.31
|
20 |
21 |
wfjm |
-- Revision History:
|
21 |
|
|
-- Date Rev Version Comment
|
22 |
22 |
wfjm |
-- 2013-10-06 538 1.2 pll support, use clksys_vcodivide ect
|
23 |
21 |
wfjm |
-- 2012-04-24 510 1.1 use 3/2 clock-> 150 MHz sysclk
|
24 |
|
|
-- 2012-04-09 461 1.0 Initial version
|
25 |
|
|
------------------------------------------------------------------------------
|
26 |
|
|
|
27 |
|
|
library ieee;
|
28 |
|
|
use ieee.std_logic_1164.all;
|
29 |
|
|
|
30 |
|
|
use work.slvtypes.all;
|
31 |
|
|
|
32 |
|
|
package sys_conf is
|
33 |
|
|
|
34 |
22 |
wfjm |
constant sys_conf_clksys_vcodivide : positive := 2;
|
35 |
|
|
constant sys_conf_clksys_vcomultiply : positive := 3; -- dcm 150 MHz
|
36 |
|
|
constant sys_conf_clksys_outdivide : positive := 1; -- sys 150 MHz
|
37 |
|
|
constant sys_conf_clksys_gentype : string := "DCM";
|
38 |
21 |
wfjm |
|
39 |
|
|
constant sys_conf_fx2_type : string := "ic2";
|
40 |
|
|
|
41 |
|
|
-- dummy values defs for generic parameters of as controller
|
42 |
|
|
constant sys_conf_fx2_rdpwldelay : positive := 1;
|
43 |
|
|
constant sys_conf_fx2_rdpwhdelay : positive := 1;
|
44 |
|
|
constant sys_conf_fx2_wrpwldelay : positive := 1;
|
45 |
|
|
constant sys_conf_fx2_wrpwhdelay : positive := 1;
|
46 |
|
|
constant sys_conf_fx2_flagdelay : positive := 1;
|
47 |
|
|
|
48 |
|
|
-- pktend timer setting
|
49 |
|
|
-- petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec (normal operation)
|
50 |
|
|
constant sys_conf_fx2_petowidth : positive := 10;
|
51 |
|
|
|
52 |
|
|
constant sys_conf_fx2_ccwidth : positive := 5;
|
53 |
|
|
|
54 |
|
|
constant sys_conf_hio_debounce : boolean := true; -- instantiate debouncers
|
55 |
|
|
|
56 |
|
|
-- derived constants
|
57 |
|
|
|
58 |
|
|
constant sys_conf_clksys : integer :=
|
59 |
22 |
wfjm |
((100000000/sys_conf_clksys_vcodivide)*sys_conf_clksys_vcomultiply) /
|
60 |
|
|
sys_conf_clksys_outdivide;
|
61 |
21 |
wfjm |
constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
|
62 |
|
|
|
63 |
|
|
end package sys_conf;
|