1 |
31 |
wfjm |
-- $Id: sys_conf.vhd 683 2015-05-17 21:54:35Z mueller $
|
2 |
29 |
wfjm |
--
|
3 |
|
|
-- Copyright 2015- 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_w11a_b3 (for synthesis)
|
17 |
|
|
--
|
18 |
|
|
-- Dependencies: -
|
19 |
|
|
-- Tool versions: viv 2014.4; ghdl 0.31
|
20 |
|
|
-- Revision History:
|
21 |
|
|
-- Date Rev Version Comment
|
22 |
30 |
wfjm |
-- 2015-03-14 658 1.1 add sys_conf_ibd_* definitions
|
23 |
29 |
wfjm |
-- 2015-02-08 644 1.0 Initial version (derived from _n4 version)
|
24 |
|
|
------------------------------------------------------------------------------
|
25 |
|
|
|
26 |
|
|
library ieee;
|
27 |
|
|
use ieee.std_logic_1164.all;
|
28 |
|
|
|
29 |
|
|
use work.slvtypes.all;
|
30 |
|
|
|
31 |
|
|
package sys_conf is
|
32 |
|
|
|
33 |
30 |
wfjm |
-- configure clocks --------------------------------------------------------
|
34 |
29 |
wfjm |
constant sys_conf_clksys_vcodivide : positive := 1;
|
35 |
|
|
constant sys_conf_clksys_vcomultiply : positive := 8; -- vco 800 MHz
|
36 |
|
|
constant sys_conf_clksys_outdivide : positive := 10; -- sys 80 MHz
|
37 |
|
|
constant sys_conf_clksys_gentype : string := "MMCM";
|
38 |
|
|
-- single clock design, clkser = clksys
|
39 |
|
|
constant sys_conf_clkser_vcodivide : positive := sys_conf_clksys_vcodivide;
|
40 |
|
|
constant sys_conf_clkser_vcomultiply : positive := sys_conf_clksys_vcomultiply;
|
41 |
|
|
constant sys_conf_clkser_outdivide : positive := sys_conf_clksys_outdivide;
|
42 |
|
|
constant sys_conf_clkser_gentype : string := sys_conf_clksys_gentype;
|
43 |
|
|
|
44 |
30 |
wfjm |
-- configure rlink and hio interfaces --------------------------------------
|
45 |
29 |
wfjm |
constant sys_conf_ser2rri_defbaud : integer := 115200; -- default 115k baud
|
46 |
|
|
constant sys_conf_hio_debounce : boolean := true; -- instantiate debouncers
|
47 |
|
|
|
48 |
30 |
wfjm |
-- configure memory controller ---------------------------------------------
|
49 |
29 |
wfjm |
constant sys_conf_memctl_mawidth : positive := 4;
|
50 |
|
|
constant sys_conf_memctl_nblock : positive := 11;
|
51 |
|
|
|
52 |
30 |
wfjm |
-- configure debug and monitoring units ------------------------------------
|
53 |
|
|
constant sys_conf_rbmon_awidth : integer := 0; -- no rbmon to save BRAMs
|
54 |
|
|
constant sys_conf_ibmon_awidth : integer := 0; -- no ibmon to save BRAMs
|
55 |
|
|
|
56 |
|
|
-- configure w11 cpu core --------------------------------------------------
|
57 |
29 |
wfjm |
-- sys_conf_mem_losize is highest 64 byte MMU block number
|
58 |
|
|
-- the bram_memcnt uses 4*4kB memory blocks => 1 MEM block = 256 MMU blocks
|
59 |
|
|
constant sys_conf_mem_losize : integer := 256*sys_conf_memctl_nblock-1;
|
60 |
|
|
|
61 |
|
|
constant sys_conf_cache_fmiss : slbit := '0'; -- cache enabled
|
62 |
|
|
|
63 |
30 |
wfjm |
-- configure w11 system devices --------------------------------------------
|
64 |
|
|
-- configure character and communication devices
|
65 |
|
|
constant sys_conf_ibd_dl11_1 : boolean := true; -- 2nd DL11
|
66 |
|
|
constant sys_conf_ibd_pc11 : boolean := true; -- PC11
|
67 |
|
|
constant sys_conf_ibd_lp11 : boolean := true; -- LP11
|
68 |
29 |
wfjm |
|
69 |
30 |
wfjm |
-- configure mass storage devices
|
70 |
|
|
constant sys_conf_ibd_rk11 : boolean := true; -- RK11
|
71 |
|
|
constant sys_conf_ibd_rl11 : boolean := true; -- RL11
|
72 |
|
|
constant sys_conf_ibd_rhrp : boolean := true; -- RHRP
|
73 |
31 |
wfjm |
constant sys_conf_ibd_tm11 : boolean := true; -- TM11
|
74 |
30 |
wfjm |
|
75 |
|
|
-- configure other devices
|
76 |
|
|
constant sys_conf_ibd_iist : boolean := true; -- IIST
|
77 |
|
|
|
78 |
|
|
-- derived constants =======================================================
|
79 |
29 |
wfjm |
constant sys_conf_clksys : integer :=
|
80 |
|
|
((100000000/sys_conf_clksys_vcodivide)*sys_conf_clksys_vcomultiply) /
|
81 |
|
|
sys_conf_clksys_outdivide;
|
82 |
|
|
constant sys_conf_clksys_mhz : integer := sys_conf_clksys/1000000;
|
83 |
|
|
|
84 |
|
|
constant sys_conf_clkser : integer :=
|
85 |
|
|
((100000000/sys_conf_clkser_vcodivide)*sys_conf_clkser_vcomultiply) /
|
86 |
|
|
sys_conf_clkser_outdivide;
|
87 |
|
|
constant sys_conf_clkser_mhz : integer := sys_conf_clkser/1000000;
|
88 |
|
|
|
89 |
|
|
constant sys_conf_ser2rri_cdinit : integer :=
|
90 |
|
|
(sys_conf_clkser/sys_conf_ser2rri_defbaud)-1;
|
91 |
|
|
|
92 |
|
|
end package sys_conf;
|