w11 - vhd 0.794
W11 CPU core and support modules
Loading...
Searching...
No Matches
sys_conf_sim.vhd
Go to the documentation of this file.
1-- $Id: sys_conf_sim.vhd 1181 2019-07-08 17:00:50Z mueller $
2-- SPDX-License-Identifier: GPL-3.0-or-later
3-- Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4--
5------------------------------------------------------------------------------
6-- Package Name: sys_conf
7-- Description: Definitions for sys_tst_serloop_s3 (for test bench)
8--
9-- Dependencies: -
10-- Tool versions: xst 11.4-14.7; ghdl 0.26-0.31
11-- Revision History:
12-- Date Rev Version Comment
13-- 2011-11-05 420 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 is shortened to 12 cycles (0.2 usec) and a msec
24 -- to 60 cycles (1 usec). This affects the pulse generators (usec) and
25 -- mainly the autobauder. A break will be detected after 128 msec periods,
26 -- this in simulation after 128 usec or 6400 cycles. This is compatible with
27 -- bitrates of 115200 baud or higher (115200 <-> 8.68 usec <-> 521 cycles)
28
29 constant sys_conf_clkdiv_usecdiv : integer := 12; -- shortened !
30 constant sys_conf_clkdiv_msecdiv : integer := 5; -- shortened !
31 constant sys_conf_hio_debounce : boolean := false; -- no debouncers
32 constant sys_conf_uart_cdinit : integer := 1-1; -- 1 cycle/bit in sim
33
34end package sys_conf;
integer := 100 sys_conf_clkdiv_usecdiv
Definition: sys_conf1.vhd:29
boolean := true sys_conf_hio_debounce
Definition: sys_conf.vhd:33
integer := 1000 sys_conf_clkdiv_msecdiv
Definition: sys_conf1.vhd:30
integer :=( sys_conf_clksys/ sys_conf_uart_defbaud)- 1 sys_conf_uart_cdinit
Definition: sys_conf1.vhd:44