##// END OF EJS Templates
Update APB_TIME_MANAGEMENT :...
Update APB_TIME_MANAGEMENT : If LFR is desynchronized, the LFR is resynchronized only if there is a tick (or soft_tick) and a new TCU The TCU is a vector of 31 bits (30 downto 0). Now, there is a ctrl bit to soft reset the apb_time_management. After a reset (and a soft reset), the APB_TM is desynchronized and the CT value is 0x80000000.

File last commit:

r129:8459a437c1f1 alexis
r336:d05a1ff29f0e (MINI-LFR) WFP_MS-0-1-9 JC
Show More
Clk_Divider2.vhd
36 lines | 685 B | text/x-vhdl | VhdlLexer
-- ClkDivider.vhd
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
entity Clk_Divider2 is
generic(N : integer := 16);
port(
clk_in : in std_logic;
clk_out : out std_logic
);
end entity;
architecture ar_ClkDivider of Clk_Divider2 is
signal cpt : integer range 0 to N/2-1;
signal clk_int : std_logic:='0';
begin
clk_out <= clk_int;
process(clk_in)
begin
if clk_in'event and clk_in = '1' then
if cpt = N/2-1 then
clk_int <= not clk_int;
cpt <= 0;
else
cpt <= cpt + 1;
end if;
end if;
end process;
end ar_ClkDivider;