1 |
22 |
wfjm |
-- $Id: sys_conf.vhd 538 2013-10-06 17:21:25Z mueller $
|
2 |
18 |
wfjm |
--
|
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 sys_tst_rlink_cuff_ic_n3 (for synthesis)
|
17 |
|
|
--
|
18 |
|
|
-- Dependencies: -
|
19 |
22 |
wfjm |
-- Tool versions: xst 13.3, 14.6; ghdl 0.29
|
20 |
18 |
wfjm |
-- Revision History:
|
21 |
|
|
-- Date Rev Version Comment
|
22 |
22 |
wfjm |
-- 2013-10-06 538 1.1 pll support, use clksys_vcodivide ect
|
23 |
18 |
wfjm |
-- 2013-01-04 469 1.0 Initial version
|
24 |
|
|
------------------------------------------------------------------------------
|
25 |
|
|
|
26 |
|
|
library ieee;
|
27 |
|
|
use ieee.std_logic_1164.all;
|
28 |
|
|
|
29 |
|
|
use work.slvtypes.all;
|
30 |
|
|
|
31 |
|
|
package sys_conf is
|
32 |
|
|
|
33 |
22 |
wfjm |
constant sys_conf_clksys_vcodivide : positive := 1;
|
34 |
|
|
constant sys_conf_clksys_vcomultiply : positive := 1; -- dcm 100 MHz
|
35 |
|
|
constant sys_conf_clksys_outdivide : positive := 1; -- sys 100 MHz
|
36 |
|
|
constant sys_conf_clksys_gentype : string := "DCM";
|
37 |
18 |
wfjm |
|
38 |
|
|
constant sys_conf_ser2rri_defbaud : integer := 115200; -- default 115k baud
|
39 |
|
|
constant sys_conf_hio_debounce : boolean := true; -- instantiate debouncers
|
40 |
|
|
|
41 |
|
|
constant sys_conf_fx2_type : string := "ic2";
|
42 |
|
|
|
43 |
|
|
-- dummy values defs for generic parameters of as controller
|
44 |
|
|
constant sys_conf_fx2_rdpwldelay : positive := 1;
|
45 |
|
|
constant sys_conf_fx2_rdpwhdelay : positive := 1;
|
46 |
|
|
constant sys_conf_fx2_wrpwldelay : positive := 1;
|
47 |
|
|
constant sys_conf_fx2_wrpwhdelay : positive := 1;
|
48 |
|
|
constant sys_conf_fx2_flagdelay : positive := 1;
|
49 |
|
|
|
50 |
|
|
-- pktend timer setting
|
51 |
|
|
-- petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec (normal operation)
|
52 |
|
|
constant sys_conf_fx2_petowidth : positive := 10;
|
53 |
|
|
|
54 |
|
|
constant sys_conf_fx2_ccwidth : positive := 5;
|
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 |
18 |
wfjm |
constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
|
62 |
|
|
|
63 |
|
|
constant sys_conf_ser2rri_cdinit : integer :=
|
64 |
|
|
(sys_conf_clksys/sys_conf_ser2rri_defbaud)-1;
|
65 |
|
|
|
66 |
|
|
end package sys_conf;
|