OpenCores
URL https://opencores.org/ocsvn/openverifla/openverifla/trunk

Subversion Repositories openverifla

[/] [openverifla/] [trunk/] [openverifla_2.4/] [vhdl/] [verifla/] [inc_of_verifla.vhd] - Blame information for rev 46

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 46 laurentiud
--library IEEE;
2
--use IEEE.STD_LOGIC_1164.ALL;
3
--use IEEE.NUMERIC_STD.ALL;
4
--use ieee.std_logic_arith.all;  
5
--use ieee.std_logic_unsigned.all;
6
 
7
---------------------------------------------------------------------------
8
 
9
package inc_of_verifla is
10
 
11
constant CLOCK_FREQUENCY: integer := 50000000;
12
constant BAUDRATE: integer := 115200;
13
 
14
constant T2_div_T1_div_2: integer := (CLOCK_FREQUENCY / (BAUDRATE * 16 * 2));
15
-- Assert: BAUD_COUNTER_SIZE >= log2(T2_div_T1_div_2) bits
16
constant BAUD_COUNTER_SIZE: integer := 15;
17
 
18
-- 1s ... 50000000 T1
19
-- 1bit ... 16 T2
20
-- 1s .. 115200 bits
21
-- =>
22
-- 1s .. 115200 * 16 T2
23
--
24
-- T2 = 5000000 T1 / (115200 * 16) = T1 * 50000000 / (115200 * 16)
25
 
26
end inc_of_verifla;
27
 
28
package body inc_of_verifla is
29
 
30
end inc_of_verifla;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.