w11 - vhd  0.72
W11 CPU core and support modules
 All Classes Namespaces Files Functions Variables
sys_conf.vhd
Go to the documentation of this file.
1 -- $Id: sys_conf.vhd 649 2015-02-21 21:10:16Z mueller $
2 --
3 -- Copyright 2012- 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_n2 (for synthesis)
17 --
18 -- Dependencies: -
19 -- Tool versions: xst 13.3-14.7; ghdl 0.29-0.31
20 -- Revision History:
21 -- Date Rev Version Comment
22 -- 2012-01-15 453 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_clkfx_divide : positive := 1;
33  constant sys_conf_clkfx_multiply : positive := 2;
34 
35  constant sys_conf_fx2_type : string := "ic2";
36 
37  -- dummy values defs for generic parameters of as controller
38  constant sys_conf_fx2_rdpwldelay : positive := 1;
39  constant sys_conf_fx2_rdpwhdelay : positive := 1;
40  constant sys_conf_fx2_wrpwldelay : positive := 1;
41  constant sys_conf_fx2_wrpwhdelay : positive := 1;
42  constant sys_conf_fx2_flagdelay : positive := 1;
43 
44  -- pktend timer setting
45  -- petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec (normal operation)
46  constant sys_conf_fx2_petowidth : positive := 10;
47 
48  constant sys_conf_fx2_ccwidth : positive := 5;
49 
50  constant sys_conf_hio_debounce : boolean := true; -- instantiate debouncers
51 
52  -- derived constants
53 
54  constant sys_conf_clksys : integer :=
56  constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
57 
58 end package sys_conf;
positive :=1 sys_conf_fx2_rdpwldelay
Definition: sys_conf.vhd:38
positive :=1 sys_conf_fx2_flagdelay
Definition: sys_conf.vhd:42
positive :=1 sys_conf_fx2_wrpwldelay
Definition: sys_conf.vhd:40
string :="ic2" sys_conf_fx2_type
Definition: sys_conf.vhd:35
positive :=5 sys_conf_fx2_ccwidth
Definition: sys_conf.vhd:48
positive :=10 sys_conf_fx2_petowidth
Definition: sys_conf.vhd:46
integer :=(50000000 / sys_conf_clkfx_divide) * sys_conf_clkfx_multiply sys_conf_clksys
Definition: sys_conf.vhd:54
positive :=2 sys_conf_clkfx_multiply
Definition: sys_conf.vhd:33
positive :=1 sys_conf_fx2_wrpwhdelay
Definition: sys_conf.vhd:41
_library_ ieeeieee
Definition: iblib.vhd:30
positive :=1 sys_conf_clkfx_divide
Definition: sys_conf.vhd:32
integer :=sys_conf_clksys / 1000000 sys_conf_clksys_mhz
Definition: sys_conf.vhd:56
boolean :=true sys_conf_hio_debounce
Definition: sys_conf.vhd:50
positive :=1 sys_conf_fx2_rdpwhdelay
Definition: sys_conf.vhd:39