w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
sys_conf2_sim.vhd
Go to the documentation of this file.
1-- $Id: sys_conf2_sim.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2017- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Package Name: sys_conf
7-- Description: Definitions for sys_tst_serloop2_n4d (for test bench)
8--
9-- Dependencies: -
10-- Tool versions: 2016.2; ghdl 0.33
11-- Revision History:
12-- Date Rev Version Comment
13-- 2017-01-04 838 1.0 Initial version
14------------------------------------------------------------------------------
15
16library ieee;
17use ieee.std_logic_1164.all;
18
19use work.slvtypes.all;
20
21package sys_conf is
22
23 -- in simulation a usec stays to 120 cycles (1.0 usec) and a msec to
24 -- 240 cycles (2 usec). This affects mainly the autobauder. A break will be
25 -- detected after 128 msec periods, this in simulation after 256 usec or
26 -- 30720 cycles. This is compatible with bitrates of 115200 baud or higher
27 -- (115200 <-> 8.68 usec <-> 1040 cycles)
28
29 -- configure clocks --------------------------------------------------------
30 constant sys_conf_clksys_vcodivide : positive := 5; -- f 20 Mhz
31 constant sys_conf_clksys_vcomultiply : positive := 36; -- vco 720 MHz
32 constant sys_conf_clksys_outdivide : positive := 10; -- sys 72 MHz
33 constant sys_conf_clksys_gentype : string := "MMCM";
34
35 constant sys_conf_clksys_msecdiv : integer := 2; -- shortened !!
36
37 constant sys_conf_clkser_vcodivide : positive := 1;
38 constant sys_conf_clkser_vcomultiply : positive := 12; -- vco 1200 MHz
39 constant sys_conf_clkser_outdivide : positive := 10; -- sys 120 MHz
40 constant sys_conf_clkser_gentype : string := "PLL";
41
42 constant sys_conf_clkser_msecdiv : integer := 2; -- shortened !!
43
44 -- configure hio interfaces -----------------------------------------------
45 constant sys_conf_hio_debounce : boolean := false; -- no debouncers
46
47 -- configure serport ------------------------------------------------------
48 constant sys_conf_uart_cdinit : integer := 1-1; -- 1 cycle/bit in sim
49
50 -- derived constants =======================================================
51 constant sys_conf_clksys : integer :=
54 constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
55
56 constant sys_conf_clkser : integer :=
59 constant sys_conf_clkser_mhz : integer := sys_conf_clkser/1000000;
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 := 1000 sys_conf_clkser_msecdiv
Definition: sys_conf2.vhd:36
integer := sys_conf_clksys/ 1000000 sys_conf_clksys_mhz
positive := 1 sys_conf_clksys_vcodivide
positive := 12 sys_conf_clkser_vcomultiply
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
boolean := true sys_conf_hio_debounce
Definition: sys_conf.vhd:33
positive := 10 sys_conf_clksys_outdivide
integer :=( sys_conf_clksys/ sys_conf_uart_defbaud)- 1 sys_conf_uart_cdinit
Definition: sys_conf1.vhd:44
string := "MMCM" sys_conf_clksys_gentype
integer := 1000 sys_conf_clksys_msecdiv
Definition: sys_conf2.vhd:29