1 ------------------------------------------------------------------------------- 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2016-05-13 5 -- Last update: 2016-06-09 6 ------------------------------------------------------------------------------- 7 -- Description: UART Baud Rate Generator 8 ------------------------------------------------------------------------------- 9 -- This file is part of 'SLAC Firmware Standard Library'. 10 -- It is subject to the license terms in the LICENSE.txt file found in the 11 -- top-level directory of this distribution and at: 12 -- https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. 13 -- No part of 'SLAC Firmware Standard Library', including this file, 14 -- may be copied, modified, propagated, or distributed except according to 15 -- the terms contained in the LICENSE.txt file. 16 ------------------------------------------------------------------------------- 19 use ieee.std_logic_1164.
all;
24 --! @ingroup protocols_uart 42 type RegType is record 47 constant REG_INIT_C : RegType := ( 51 signal r : RegType := REG_INIT_C;
56 comb :
process (r,
rst)
is 61 v.count := r.count + 1;
63 if (r.count = CLK_DIV_C) then 76 seq :
process (
clk)
is 78 if (rising_edge(clk)) then
BAUD_RATE_Ginteger := 115200
CLK_FREQ_Greal := 125.0E6
MULTIPLIER_Ginteger := 16