eFEX firmware  1.7.3
ATLAS l1-calo - electron and tau feature extraction firmware for eFEX boards

Back to eFEX documentation
DelayWithCarry.vhd
Go to the documentation of this file.
1 
5 --the delay generic
7 
8 library IEEE;
9 use IEEE.STD_LOGIC_1164.all;
10 use IEEE.NUMERIC_STD.all;
11 
12 library work;
13 use work.DataTypes.all;
14 
16 entity DelayWithCarry is
17  generic (delay : integer := 1
18  );
19 
20  port (
21  CLK : in std_logic;
22  IN_Word : in DataWordWithCarry;
23  OUT_Word : out DataWordWithCarry
24  );
25 end DelayWithCarry;
26 
28 architecture Behavioral of DelayWithCarry is
29 
30  signal DelayedWord : DataWordsWithCarry(delay downto 0) := (others => (others => '0'));
31 
32 begin
33 
34  DelayedWord(DelayedWord'high) <= IN_Word;
35 
36  dalay_proc : process (CLK)
37  begin
38  if rising_edge(CLK) then
39  DelayedWord(DelayedWord'high-1 downto 0) <= DelayedWord(DelayedWord'high downto 1);
40  end if;
41  end process;
42 
43  OUT_Word <= DelayedWord(0);
44 end Behavioral;
Core of the electromagnetic algorithm.
Daly for data word format.