w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
sys_conf.vhd
Go to the documentation of this file.
1-- $Id: sys_conf.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2013-2016 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Package Name: sys_conf
7-- Description: Definitions for sys_tst_sram_n4 (for synthesis)
8--
9-- Dependencies: -
10-- Tool versions: ise 14.5-14.7; viv 2014.4-2016.2; ghdl 0.29-0.33
11-- Revision History:
12-- Date Rev Version Comment
13-- 2016-07-16 788 1.2 use cram_*delay functions to determine delays
14-- 2016-06-18 775 1.1.1 use PLL for clkser_gentype
15-- 2016-03-29 756 1.1 use serport_2clock2 -> define clkser
16-- 2013-09-21 534 1.0 Initial version
17------------------------------------------------------------------------------
18
19library ieee;
20use ieee.std_logic_1164.all;
21
22use work.slvtypes.all;
23use work.nxcramlib.all;
24
25package sys_conf is
26
27 constant sys_conf_clksys_vcodivide : positive := 1;
28 constant sys_conf_clksys_vcomultiply : positive := 1; -- vco --- MHz
29 constant sys_conf_clksys_outdivide : positive := 1; -- sys 100 MHz
30 constant sys_conf_clksys_gentype : string := "MMCM";
31 -- dual clock design, clkser = 120 MHz
32 constant sys_conf_clkser_vcodivide : positive := 1;
33 constant sys_conf_clkser_vcomultiply : positive := 12; -- vco 1200 MHz
34 constant sys_conf_clkser_outdivide : positive := 10; -- sys 120 MHz
35 constant sys_conf_clkser_gentype : string := "PLL";
36
37 constant sys_conf_ser2rri_defbaud : integer := 115200; -- default 115k baud
38
39 -- derived constants
40
41 constant sys_conf_clksys : integer :=
44 constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
45
46 constant sys_conf_clkser : integer :=
49 constant sys_conf_clkser_mhz : integer := sys_conf_clkser/1000000;
50
51 constant sys_conf_ser2rri_cdinit : integer :=
53
54 constant sys_conf_memctl_read0delay : positive :=
55 cram_read0delay(sys_conf_clksys_mhz);
56 constant sys_conf_memctl_read1delay : positive :=
57 cram_read1delay(sys_conf_clksys_mhz);
58 constant sys_conf_memctl_writedelay : positive :=
59 cram_writedelay(sys_conf_clksys_mhz);
60
61end package sys_conf;
positive := 8 sys_conf_clksys_vcomultiply
positive := 10 sys_conf_clkser_outdivide
integer :=(( 100000000/ sys_conf_clksys_vcodivide)* sys_conf_clksys_vcomultiply)/ sys_conf_clksys_outdivide sys_conf_clksys
integer := sys_conf_clkser/ 1000000 sys_conf_clkser_mhz
integer :=( sys_conf_clkser/ sys_conf_ser2rri_defbaud)- 1 sys_conf_ser2rri_cdinit
Definition: sys_conf.vhd:48
integer := sys_conf_clksys/ 1000000 sys_conf_clksys_mhz
positive := 1 sys_conf_clksys_vcodivide
positive := 12 sys_conf_clkser_vcomultiply
positive := cram_writedelay( sys_conf_clksys_mhz ) sys_conf_memctl_writedelay
Definition: sys_conf.vhd:48
positive := 1 sys_conf_clkser_vcodivide
string := "MMCM" sys_conf_clkser_gentype
integer :=(( 100000000/ sys_conf_clkser_vcodivide)* sys_conf_clkser_vcomultiply)/ sys_conf_clkser_outdivide sys_conf_clkser
positive := 10 sys_conf_clksys_outdivide
string := "MMCM" sys_conf_clksys_gentype
integer := 115200 sys_conf_ser2rri_defbaud
Definition: sys_conf.vhd:34
positive := cram_read1delay( sys_conf_clksys_mhz ) sys_conf_memctl_read1delay
Definition: sys_conf.vhd:46
positive := cram_read0delay( sys_conf_clksys_mhz ) sys_conf_memctl_read0delay
Definition: sys_conf.vhd:44