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

Back to eFEX documentation
Delay.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 Delay is
17  generic (delay : integer := 1
18  );
19 
20  port (
21  CLK : in std_logic;
22  IN_Word : in DataWord;
23  OUT_Word : out DataWord
24  );
25 end Delay;
26 
28 architecture Behavioral of Delay is
29 
30  signal DelayedWord : DataWords(delay downto 0) := (others => (others => '0'));
31 
32 begin
33 
34  dalay_proc : process (CLK)
35  begin
36  if rising_edge(CLK) then
37  DelayedWord(DelayedWord'high) <= IN_Word;
38  DelayedWord(DelayedWord'high-1 downto 0) <= DelayedWord(DelayedWord'high downto 1);
39  end if;
40  end process;
41 
42  OUT_Word <= DelayedWord(0);
43 end Behavioral;
Core of the electromagnetic algorithm.
Definition: Delay.vhd:28
Daly for data word format.
Definition: Delay.vhd:16