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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [sys_gen/] [w11a/] [nexys2/] [tb/] [sys_conf_sim.vhd] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 wfjm
-- $Id: sys_conf_sim.vhd 509 2013-04-21 20:46:20Z mueller $
2 2 wfjm
--
3 20 wfjm
-- Copyright 2010-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 2 wfjm
--
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_w11a_n2 (for simulation)
17
--
18
-- Dependencies:   -
19 15 wfjm
-- Tool versions:  xst 11.4, 13.1; ghdl 0.26-0.29
20 2 wfjm
-- Revision History: 
21
-- Date         Rev Version  Comment
22 20 wfjm
-- 2013-04-21   509   1.2    add fx2 settings
23 15 wfjm
-- 2011-11-27   433   1.1.1  use /1*1 to skip dcm in sim, _ssim fails with dcm
24 8 wfjm
-- 2010-11-27   341   1.1    add dcm and memctl related constants (clksys=58)
25 2 wfjm
-- 2010-05-28   295   1.0    Initial version (cloned from _s3)
26
------------------------------------------------------------------------------
27
 
28
library ieee;
29
use ieee.std_logic_1164.all;
30
 
31
use work.slvtypes.all;
32
 
33
package sys_conf is
34
 
35 15 wfjm
  constant sys_conf_clkfx_divide : positive   :=  1;
36
  constant sys_conf_clkfx_multiply : positive :=  1;   -- no dcm in sim...
37
--  constant sys_conf_clkfx_divide : positive   :=  25;
38
--  constant sys_conf_clkfx_multiply : positive :=  28;   -- ==> 56 MHz
39 8 wfjm
 
40
  constant sys_conf_memctl_read0delay : positive := 3;
41
  constant sys_conf_memctl_read1delay : positive := sys_conf_memctl_read0delay;
42
  constant sys_conf_memctl_writedelay : positive := 4;
43
 
44 2 wfjm
  constant sys_conf_ser2rri_cdinit : integer := 1-1;   -- 1 cycle/bit in sim
45 20 wfjm
 
46
  -- fx2 settings: petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec
47
  constant sys_conf_fx2_petowidth  : positive := 10;
48
  constant sys_conf_fx2_ccwidth  : positive := 5;
49 2 wfjm
 
50 8 wfjm
  constant sys_conf_hio_debounce : boolean := false;   -- no debouncers
51
 
52 2 wfjm
  constant sys_conf_bram           : integer :=  0;      -- no bram, use cache
53
  constant sys_conf_bram_awidth    : integer := 14;      -- bram size (16 kB)
54
  constant sys_conf_mem_losize     : integer := 8#167777#; --   4 MByte
55
--constant sys_conf_mem_losize     : integer := 8#003777#; -- 128 kByte (debug)
56
 
57
--  constant sys_conf_bram           : integer :=  1;      --  bram only 
58
--  constant sys_conf_bram_awidth    : integer := 16;      -- bram size (64 kB)
59
--  constant sys_conf_mem_losize     : integer := 8#001777#; -- 64 kByte
60
 
61
  constant sys_conf_cache_fmiss    : slbit   := '0';     -- cache enabled
62
 
63 8 wfjm
  -- derived constants
64
 
65
  constant sys_conf_clksys : integer :=
66
    (50000000/sys_conf_clkfx_divide)*sys_conf_clkfx_multiply;
67
  constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
68
 
69 2 wfjm
end package sys_conf;
70
 
71
-- Note: mem_losize holds 16 MSB of the PA of the addressable memory
72
--        2 211 111 111 110 000 000 000
73
--        1 098 765 432 109 876 543 210
74
--
75
--        0 000 000 011 111 111 000 000  -> 00037777  --> 14bit -->  16 kByte
76
--        0 000 000 111 111 111 000 000  -> 00077777  --> 15bit -->  32 kByte
77
--        0 000 001 111 111 111 000 000  -> 00177777  --> 16bit -->  64 kByte
78
--        0 000 011 111 111 111 000 000  -> 00377777  --> 17bit --> 128 kByte
79
--        0 011 111 111 111 111 000 000  -> 03777777  --> 20bit -->   1 MByte
80
--        1 110 111 111 111 111 000 000  -> 16777777  --> 22bit -->   4 MByte
81
--                                          upper 256 kB excluded for 11/70 UB

powered by: WebSVN 2.1.0

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