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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [rtl/] [sys_gen/] [w11a/] [nexys3/] [tb/] [sys_conf_sim.vhd] - Diff between revs 20 and 22

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 20 Rev 22
Line 1... Line 1...
-- $Id: sys_conf_sim.vhd 509 2013-04-21 20:46:20Z mueller $
-- $Id: sys_conf_sim.vhd 538 2013-10-06 17:21:25Z mueller $
--
--
-- Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
-- Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
--
--
-- This program is free software; you may redistribute and/or modify it under
-- This program is free software; you may redistribute and/or modify it under
-- the terms of the GNU General Public License as published by the Free
-- the terms of the GNU General Public License as published by the Free
Line 14... Line 14...
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Package Name:   sys_conf
-- Package Name:   sys_conf
-- Description:    Definitions for sys_w11a_n3 (for simulation)
-- Description:    Definitions for sys_w11a_n3 (for simulation)
--
--
-- Dependencies:   -
-- Dependencies:   -
-- Tool versions:  xst 13.1; ghdl 0.29
-- Tool versions:  xst 13.1, 14.6; ghdl 0.29
-- Revision History: 
-- Revision History: 
-- Date         Rev Version  Comment
-- Date         Rev Version  Comment
 
-- 2013-10-06   538   1.3    pll support, use clksys_vcodivide ect
-- 2013-04-21   509   1.2    add fx2 settings
-- 2013-04-21   509   1.2    add fx2 settings
-- 2011-11-25   432   1.0    Initial version (cloned from _n3)
-- 2011-11-25   432   1.0    Initial version (cloned from _n3)
------------------------------------------------------------------------------
------------------------------------------------------------------------------
 
 
library ieee;
library ieee;
Line 28... Line 29...
 
 
use work.slvtypes.all;
use work.slvtypes.all;
 
 
package sys_conf is
package sys_conf is
 
 
  constant sys_conf_clkfx_divide : positive   :=  1;
  constant sys_conf_clksys_vcodivide   : positive :=  25;
  constant sys_conf_clkfx_multiply : positive :=  1;   -- no dcm in sim...
  constant sys_conf_clksys_vcomultiply : positive :=  18;   -- dcm   72 MHz
--  constant sys_conf_clkfx_divide : positive   :=   5;
  constant sys_conf_clksys_outdivide   : positive :=   1;   -- sys   72 MHz
--  constant sys_conf_clkfx_multiply : positive :=   4;   -- ==> 80 MHz
  constant sys_conf_clksys_gentype     : string   := "DCM";
 
 
  constant sys_conf_memctl_read0delay : positive := 6;   -- for 100 MHz
  constant sys_conf_memctl_read0delay : positive := 4;   -- for <75 MHz
  constant sys_conf_memctl_read1delay : positive := sys_conf_memctl_read0delay;
  constant sys_conf_memctl_read1delay : positive := sys_conf_memctl_read0delay;
  constant sys_conf_memctl_writedelay : positive := 7;
  constant sys_conf_memctl_writedelay : positive := 5;
 
 
  constant sys_conf_ser2rri_cdinit : integer := 1-1;   -- 1 cycle/bit in sim
  constant sys_conf_ser2rri_cdinit : integer := 1-1;   -- 1 cycle/bit in sim
 
 
  -- fx2 settings: petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec
  -- fx2 settings: petowidth=10 -> 2^10 30 MHz clocks -> ~33 usec
  constant sys_conf_fx2_petowidth  : positive := 10;
  constant sys_conf_fx2_petowidth  : positive := 10;
Line 59... Line 60...
  constant sys_conf_cache_fmiss    : slbit   := '0';     -- cache enabled
  constant sys_conf_cache_fmiss    : slbit   := '0';     -- cache enabled
 
 
  -- derived constants
  -- derived constants
 
 
  constant sys_conf_clksys : integer :=
  constant sys_conf_clksys : integer :=
    (100000000/sys_conf_clkfx_divide)*sys_conf_clkfx_multiply;
    ((100000000/sys_conf_clksys_vcodivide)*sys_conf_clksys_vcomultiply) /
 
    sys_conf_clksys_outdivide;
  constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
  constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
 
 
end package sys_conf;
end package sys_conf;
 
 
-- Note: mem_losize holds 16 MSB of the PA of the addressable memory
-- Note: mem_losize holds 16 MSB of the PA of the addressable memory

powered by: WebSVN 2.1.0

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