00001 --**************************************************************
00002 --* *
00003 --* The source code for the ATLAS BCM "AAA" FPGA is made *
00004 --* available via the GNU General Public License (GPL) *
00005 --* unless otherwise stated below. *
00006 --* *
00007 --* In case of problems/questions/bug reports etc. please *
00008 --* contact michael.niegl@cern.ch *
00009 --* *
00010 --**************************************************************
00011
00012 --**************************************************************
00013 --* *
00014 --* $Source: /local/reps/bcmfpga/bcm_aaa/bcm_aaa/div/edge_fal.vhd,v $
00015 --* $Revision: 1.1.2.3 $ *
00016 --* $Name: dev $ *
00017 --* $Author: mniegl $ *
00018 --* $Date: 2008/11/03 17:57:45 $ *
00019
00020
00021 --* *
00022 --**************************************************************
00023
00024 library ieee;
00025
00026 use ieee.std_logic_1164.all;
00027
00028 use ieee.std_logic_arith.all;
00029
00030 use ieee.std_logic_unsigned.all;
00031
00032
00033
00034
00035 entity edge_fal is
00036 port (CLK : in ;
00037 A : in ;
00038 PULSE : out );
00039 end edge_fal;
00040
00041
00042
00043
00044 architecture edge_fal_arc of edge_fal is
00045 signal latch1 : := '0';
00046 signal latch2 : := '0';
00047 begin
00048
00049 latches : process(CLK)
00050 begin
00051 if CLK'event and CLK = '1' then
00052 latch1 <= A;
00053 latch2 <= latch1;
00054 end if;
00055 end process latches;
00056
00057 PULSE <= latch2 and (not latch1);
00058
00059 end edge_fal_arc;