OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [rtl/] [sys_gen/] [tst_sram/] [nexys3/] [sys_conf.vhd] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 37 wfjm
-- $Id: sys_conf.vhd 788 2016-07-16 22:23:23Z mueller $
2
--
3
-- Copyright 2011-2016 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_sram_n3 (for synthesis)
17
--
18
-- Dependencies:   -
19
-- Tool versions:  xst 13.1-14.7; ghdl 0.29-0.33
20
-- Revision History: 
21
-- Date         Rev Version  Comment
22
-- 2016-07-10   786   1.2    memctl with page mode, new read1delay
23
-- 2013-10-06   538   1.1    pll support, use clksys_vcodivide ect
24
-- 2011-11-27   433   1.0    Initial version 
25
------------------------------------------------------------------------------
26
 
27
library ieee;
28
use ieee.std_logic_1164.all;
29
 
30
use work.slvtypes.all;
31
use work.nxcramlib.all;
32
 
33
package sys_conf is
34
 
35
  constant sys_conf_clksys_vcodivide   : positive :=   1;
36
  constant sys_conf_clksys_vcomultiply : positive :=   1;   -- dcm  100 MHz
37
  constant sys_conf_clksys_outdivide   : positive :=   1;   -- sys  100 MHz
38
  constant sys_conf_clksys_gentype     : string   := "DCM";
39
 
40
  constant sys_conf_ser2rri_defbaud : integer := 115200;   -- default 115k baud
41
 
42
  -- derived constants
43
 
44
  constant sys_conf_clksys : integer :=
45
    ((100000000/sys_conf_clksys_vcodivide)*sys_conf_clksys_vcomultiply) /
46
    sys_conf_clksys_outdivide;
47
  constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
48
 
49
  constant sys_conf_ser2rri_cdinit : integer :=
50
    (sys_conf_clksys/sys_conf_ser2rri_defbaud)-1;
51
 
52
  constant sys_conf_memctl_read0delay : positive :=
53
              cram_read0delay(sys_conf_clksys_mhz);
54
  constant sys_conf_memctl_read1delay : positive :=
55
              cram_read1delay(sys_conf_clksys_mhz);
56
  constant sys_conf_memctl_writedelay : positive :=
57
              cram_writedelay(sys_conf_clksys_mhz);
58
 
59
end package sys_conf;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.